Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / OBV / Factory / FactoryC_impl.cpp
blob1fede0aa5cc35e86c11f254ecc4c0e9fd906573b
1 #include "FactoryC_impl.h"
3 OBV_FactoryTest::Value2*
4 Value2_init_impl::create_default (CORBA::ULong id)
6 OBV_FactoryTest::Value2* ret_val = 0;
7 ACE_NEW_RETURN (ret_val,
8 Value2_impl,
9 0);
11 if (ret_val)
13 ret_val->id (id);
16 return ret_val;
19 OBV_FactoryTest::Value2*
20 Value2_init_impl::create (
21 CORBA::ULong id,
22 const OBV_FactoryTest::BaseValue::BV_Data & data
25 OBV_FactoryTest::Value2* ret_val = 0;
26 ACE_NEW_RETURN (ret_val,
27 Value2_impl,
28 0);
30 if (ret_val)
32 ret_val->id (id);
33 ret_val->data (data);
36 return ret_val;
39 CORBA::ValueBase *
40 Value2_init_impl::create_for_unmarshal ()
42 OBV_FactoryTest::Value2* ret_val = 0;
43 ACE_NEW_THROW_EX (ret_val,
44 Value2_impl,
45 CORBA::NO_MEMORY ());
47 return ret_val;