Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / OBV / Factory / Factory.idl
blob1fe2ccc8022c88f6cb30fa1996ee9552b5f44c67
1 //
2 // This file contains few valuetypes to show and test basic OBV factory
3 // construct functionality.
4 //
6 module OBV_FactoryTest
9 //
10 // Base valuetype without any ops or factories. Result should be
11 // concrete BaseConcreteValue_init class ready to use.
13 valuetype BaseValue
15 // Nested type to check proper visibility.
16 struct BV_Data
18 unsigned long value;
21 public unsigned long some_data;
25 // Another valuetype w/o ops, etc. Just to check proper inheritance
26 // of OBV_ classes and RefCounter's. Value1_init should be
27 // concrete as well.
29 valuetype Value1 : BaseValue
31 public unsigned long id;
35 // Valuetype with few factories.
37 valuetype Value2 : BaseValue
39 public unsigned long id;
40 public BV_Data data;
42 factory create_default (in unsigned long id);
43 factory create (in unsigned long id,
44 in BV_Data data);
48 // Interface to pass valuetypes.
50 interface Test
52 BaseValue get_base_value ();
53 Value1 get_value1 ();
54 Value2 get_value2 ();
56 // Shutdown the romote ORB
57 oneway void shutdown ();