~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tests/OBV/Factory/Factory.idl

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Factory.idl,v 1.1 2001/12/31 17:08:50 parsons Exp
2
 
 
3
 
//
4
 
// This file contains few valuetypes to show and test basic OBV factory
5
 
// construct functionality.
6
 
//
7
 
 
8
 
module OBV_FactoryTest
9
 
{
10
 
 
11
 
  //
12
 
  // Base valuetype without any ops or factories. Result should be
13
 
  // concrete BaseConcreteValue_init class ready to use. 
14
 
  //
15
 
  valuetype BaseValue
16
 
  {
17
 
    // Nested type to check proper visibility.
18
 
    struct BV_Data
19
 
    {
20
 
      unsigned long value;
21
 
    };
22
 
    
23
 
    public unsigned long some_data;
24
 
  };
25
 
  
26
 
  //
27
 
  // Another valuetype w/o ops, etc. Just to check proper inheritance
28
 
  // of OBV_ classes and RefCounter's. Value1_init should be 
29
 
  // concrete as well.
30
 
  //
31
 
  valuetype Value1 : BaseValue
32
 
  {
33
 
    public unsigned long id;
34
 
  };
35
 
 
36
 
  //
37
 
  // Valuetype with few factories.
38
 
  //
39
 
  valuetype Value2 : BaseValue
40
 
  {
41
 
    public unsigned long id;
42
 
    public BV_Data data;
43
 
    
44
 
    factory create_default (in unsigned long id);
45
 
    factory create (in unsigned long id,
46
 
                    in BV_Data data);
47
 
  };
48
 
 
49
 
  //
50
 
  // Interface to pass valuetypes.
51
 
  //
52
 
  interface Test
53
 
  {
54
 
    BaseValue get_base_value ();
55
 
    Value1 get_value1 ();
56
 
    Value2 get_value2 ();    
57
 
 
58
 
    // Shutdown the romote ORB
59
 
    oneway void shutdown ();
60
 
 
61
 
  };
62
 
 
63
 
};