blob: ee0512b417769ef24009a283c0556af921a6707c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include "FactoryC_impl.h"
ACE_RCSID (Factory,
FactoryC_impl,
"$Id$")
OBV_FactoryTest::Value2*
Value2_init_impl::create_default (CORBA::ULong id)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
OBV_FactoryTest::Value2* ret_val = 0;
ACE_NEW_RETURN (ret_val,
Value2_impl,
0);
if (ret_val)
{
ret_val->id (id);
}
return ret_val;
}
OBV_FactoryTest::Value2*
Value2_init_impl::create (
CORBA::ULong id,
const OBV_FactoryTest::BaseValue::BV_Data & data
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
OBV_FactoryTest::Value2* ret_val = 0;
ACE_NEW_RETURN (ret_val,
Value2_impl,
0);
if (ret_val)
{
ret_val->id (id);
ret_val->data (data);
}
return ret_val;
}
CORBA::ValueBase *
Value2_init_impl::create_for_unmarshal (ACE_ENV_SINGLE_ARG_DECL)
{
OBV_FactoryTest::Value2* ret_val = 0;
ACE_NEW_THROW_EX (ret_val,
Value2_impl,
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (0);
return ret_val;
}
|