PaCO++  0.05
BasicBCIdl.h
Go to the documentation of this file.
1 // This file is generated by omniidl (C++ backend)- omniORB_4_0. Do not edit.
2 #ifndef __BasicBCIdl_hh__
3 #define __BasicBCIdl_hh__
4 
5 #ifndef USE_omniORB_logStream
6 #define USE_omniORB_logStream
7 #endif
8 
9 #ifndef __CORBA_H_EXTERNAL_GUARD__
10 #include <omniORB4/CORBA.h>
11 #endif
12 
13 #ifndef USE_core_stub_in_nt_dll
14 # define USE_core_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
15 #endif
16 #ifndef USE_dyn_stub_in_nt_dll
17 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
18 #endif
19 
20 
21 
22 
23 
24 
25 #ifdef USE_stub_in_nt_dll
26 #ifndef USE_core_stub_in_nt_dll
27 #define USE_core_stub_in_nt_dll
28 #endif
29 #ifndef USE_dyn_stub_in_nt_dll
30 #define USE_dyn_stub_in_nt_dll
31 #endif
32 #endif
33 
34 #ifdef _core_attr
35 # error "A local CPP macro _core_attr has already been defined."
36 #else
37 # ifdef USE_core_stub_in_nt_dll
38 # define _core_attr _OMNIORB_NTDLL_IMPORT
39 # else
40 # define _core_attr
41 # endif
42 #endif
43 
44 #ifdef _dyn_attr
45 # error "A local CPP macro _dyn_attr has already been defined."
46 #else
47 # ifdef USE_dyn_stub_in_nt_dll
48 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
49 # else
50 # define _dyn_attr
51 # endif
52 #endif
53 
54 
55 
56 
57 
58 _CORBA_MODULE BasicBCLib
59 
60 _CORBA_MODULE_BEG
61 
62  class ids_t_var;
63 
64  class ids_t : public _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > {
65  public:
67  inline ids_t() {}
68  inline ids_t(const ids_t& _s)
69  : _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > (_s) {}
70 
71  inline ids_t(_CORBA_ULong _max)
72  : _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > (_max) {}
73  inline ids_t(_CORBA_ULong _max, _CORBA_ULong _len, CORBA::ULong* _val, _CORBA_Boolean _rel=0)
74  : _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > (_max, _len, _val, _rel) {}
75 
76 
77 
78  inline ids_t& operator = (const ids_t& _s) {
79  _CORBA_Unbounded_Sequence_w_FixSizeElement< CORBA::ULong, 4, 4 > ::operator=(_s);
80  return *this;
81  }
82  };
83 
84  class ids_t_out;
85 
86  class ids_t_var {
87  public:
88  inline ids_t_var() : _pd_seq(0) {}
89  inline ids_t_var(ids_t* _s) : _pd_seq(_s) {}
90  inline ids_t_var(const ids_t_var& _s) {
91  if( _s._pd_seq ) _pd_seq = new ids_t(*_s._pd_seq);
92  else _pd_seq = 0;
93  }
94  inline ~ids_t_var() { if( _pd_seq ) delete _pd_seq; }
95 
96  inline ids_t_var& operator = (ids_t* _s) {
97  if( _pd_seq ) delete _pd_seq;
98  _pd_seq = _s;
99  return *this;
100  }
101  inline ids_t_var& operator = (const ids_t_var& _s) {
102  if( _s._pd_seq ) {
103  if( !_pd_seq ) _pd_seq = new ids_t;
104  *_pd_seq = *_s._pd_seq;
105  } else if( _pd_seq ) {
106  delete _pd_seq;
107  _pd_seq = 0;
108  }
109  return *this;
110  }
111  inline CORBA::ULong& operator [] (_CORBA_ULong _s) {
112  return (*_pd_seq)[_s];
113  }
114 
115 
116 
117  inline ids_t* operator -> () { return _pd_seq; }
118 #if defined(__GNUG__)
119  inline operator ids_t& () const { return *_pd_seq; }
120 #else
121  inline operator const ids_t& () const { return *_pd_seq; }
122  inline operator ids_t& () { return *_pd_seq; }
123 #endif
124 
125  inline const ids_t& in() const { return *_pd_seq; }
126  inline ids_t& inout() { return *_pd_seq; }
127  inline ids_t*& out() {
128  if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
129  return _pd_seq;
130  }
131  inline ids_t* _retn() { ids_t* tmp = _pd_seq; _pd_seq = 0; return tmp; }
132 
133  friend class ids_t_out;
134 
135  private:
137  };
138 
139  class ids_t_out {
140  public:
141  inline ids_t_out(ids_t*& _s) : _data(_s) { _data = 0; }
142  inline ids_t_out(ids_t_var& _s)
143  : _data(_s._pd_seq) { _s = (ids_t*) 0; }
144  inline ids_t_out(const ids_t_out& _s) : _data(_s._data) {}
145  inline ids_t_out& operator = (const ids_t_out& _s) {
146  _data = _s._data;
147  return *this;
148  }
149  inline ids_t_out& operator = (ids_t* _s) {
150  _data = _s;
151  return *this;
152  }
153  inline operator ids_t*&() { return _data; }
154  inline ids_t*& ptr() { return _data; }
155  inline ids_t* operator->() { return _data; }
156 
157  inline CORBA::ULong& operator [] (_CORBA_ULong _i) {
158  return (*_data)[_i];
159  }
160 
161 
162 
164 
165  private:
166  ids_t_out();
167  ids_t_out& operator=(const ids_t_var&);
168  };
169 
170  struct BasicBCDescr {
171  typedef _CORBA_ConstrType_Variable_Var<BasicBCDescr> _var_type;
172 
173 
174  CORBA::ULong glen;
175 
176  CORBA::ULong bsz;
177 
179 
180 
181 
182  void operator>>= (cdrStream &) const;
183  void operator<<= (cdrStream &);
184  };
185 
187 
188  typedef _CORBA_ConstrType_Variable_OUT_arg< BasicBCDescr,BasicBCDescr_var > BasicBCDescr_out;
189 
190 _CORBA_MODULE_END
191 
192 
193 
194 _CORBA_MODULE POA_BasicBCLib
195 _CORBA_MODULE_BEG
196 
197 _CORBA_MODULE_END
198 
199 
200 
201 
202 
203 #undef _core_attr
204 #undef _dyn_attr
205 
206 
207 
208 
209 
210 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
211 # undef USE_core_stub_in_nt_dll
212 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
213 #endif
214 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
215 # undef USE_dyn_stub_in_nt_dll
216 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_BasicBCIdl
217 #endif
218 
219 #endif // __BasicBCIdl_hh__
220 
ids_t_out(ids_t_var &_s)
Definition: BasicBCIdl.h:142
ids_t * _pd_seq
Definition: BasicBCIdl.h:136
_CORBA_ConstrType_Variable_OUT_arg< BasicBCDescr, BasicBCDescr_var > BasicBCDescr_out
Definition: BasicBCIdl.h:188
ids_t * _retn()
Definition: BasicBCIdl.h:131
ids_t(_CORBA_ULong _max, _CORBA_ULong _len, CORBA::ULong *_val, _CORBA_Boolean _rel=0)
Definition: BasicBCIdl.h:73
~ids_t_var()
Definition: BasicBCIdl.h:94
ids_t()
Definition: BasicBCIdl.h:67
BasicBCDescr::_var_type BasicBCDescr_var
Definition: BasicBCIdl.h:186
const ids_t & in() const
Definition: BasicBCIdl.h:125
_CORBA_ConstrType_Variable_Var< BasicBCDescr > _var_type
Definition: BasicBCIdl.h:171
ids_t_var(const ids_t_var &_s)
Definition: BasicBCIdl.h:90
ids_t(_CORBA_ULong _max)
Definition: BasicBCIdl.h:71
ids_t & operator=(const ids_t &_s)
Definition: BasicBCIdl.h:78
ids_t *& _data
Definition: BasicBCIdl.h:163
ids_t_out(const ids_t_out &_s)
Definition: BasicBCIdl.h:144
ids_t * operator->()
Definition: BasicBCIdl.h:155
ids_t_var _var_type
Definition: BasicBCIdl.h:66
ids_t & inout()
Definition: BasicBCIdl.h:126
ids_t *& ptr()
Definition: BasicBCIdl.h:154
CORBA::ULong bsz
Definition: BasicBCIdl.h:176
ids_t_out(ids_t *&_s)
Definition: BasicBCIdl.h:141
ids_t(const ids_t &_s)
Definition: BasicBCIdl.h:68
ids_t_var(ids_t *_s)
Definition: BasicBCIdl.h:89
CORBA::ULong glen
Definition: BasicBCIdl.h:174
ids_t *& out()
Definition: BasicBCIdl.h:127