/usr/include/omniORB4/boxes_defs.hh is in libomniorb4-dev 4.2.2-0.8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 | // This file is generated by omniidl (C++ backend)- omniORB_4_2. Do not edit.
#ifndef __boxes_defs_hh__
#define __boxes_defs_hh__
#ifndef __CORBA_mStringValue__
#define __CORBA_mStringValue__
class StringValue;
class StringValue_Helper {
public:
static void add_ref(StringValue*);
static void remove_ref(StringValue*);
static void marshal(StringValue*, cdrStream&);
static StringValue* unmarshal(cdrStream&);
};
typedef _CORBA_Value_Var <StringValue,StringValue_Helper> StringValue_var;
typedef _CORBA_Value_Member <StringValue,StringValue_Helper> StringValue_member;
typedef _CORBA_Value_OUT_arg<StringValue,StringValue_Helper> StringValue_out;
#endif // __CORBA_mStringValue__
class StringValue :
public ::CORBA::DefaultValueRefCountBase
{
public:
typedef StringValue_var _var_type;
inline StringValue()
: _pd_boxed(OMNI_CONST_CAST(char*,_CORBA_String_helper::empty_string))
{}
inline StringValue(const StringValue& _v) :
ValueBase (_v), DefaultValueRefCountBase (_v) {
if (_v._pd_boxed) _pd_boxed = _CORBA_String_helper::dup(_v._pd_boxed);
else _pd_boxed = 0;
}
inline StringValue(char* _v) {
_pd_boxed = _v;
}
inline StringValue(const char* _v) {
if (_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline StringValue(const ::CORBA::String_var& _v) {
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline StringValue(const ::CORBA::String_member& _v) {
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline StringValue(const _CORBA_String_element& _v) {
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline StringValue& operator=(char* _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
_pd_boxed = _v;
return *this;
}
inline StringValue& operator=(const char* _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if (_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline StringValue& operator=(const ::CORBA::String_var& _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline StringValue& operator=(const ::CORBA::String_member& _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline StringValue& operator=(const _CORBA_String_element& _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline const char* _value() const {
return _pd_boxed;
}
inline void _value(char* _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
_pd_boxed = _v;
}
inline void _value(const char* _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if (_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline void _value(const ::CORBA::String_var& _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline void _value(const ::CORBA::String_member& _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline void _value(const _CORBA_String_element& _v) {
_CORBA_String_helper::dealloc(_pd_boxed);
if ((const char*)_v) _pd_boxed = _CORBA_String_helper::dup(_v);
else _pd_boxed = 0;
}
inline char& operator[] (_CORBA_ULong _i) {
if (!_pd_boxed) {
_CORBA_bound_check_error(); // never return
}
return _pd_boxed[_i];
}
inline char operator[] (_CORBA_ULong _i) const {
if (!_pd_boxed) {
_CORBA_bound_check_error(); // never return
}
return _pd_boxed[_i];
}
inline const char* _boxed_in() const {
return _pd_boxed;
}
inline char*& _boxed_inout() {
return _pd_boxed;
}
inline char*& _boxed_out() {
return _pd_boxed;
}
static StringValue* _downcast(::CORBA::ValueBase*);
#ifdef OMNI_HAVE_COVARIANT_RETURNS
virtual StringValue* _copy_value();
#else
virtual ::CORBA::ValueBase* _copy_value();
#endif
// omniORB internal
virtual const char* _NP_repositoryId() const;
virtual const char* _NP_repositoryId(::CORBA::ULong& _hashval) const;
virtual const _omni_ValueIds* _NP_truncatableIds() const;
virtual ::CORBA::Boolean _NP_custom() const;
virtual ::CORBA::Boolean _NP_box() const;
virtual void* _ptrToValue(const char* id);
static void _NP_marshal(StringValue*, cdrStream&);
static StringValue* _NP_unmarshal(cdrStream&);
virtual void _PR_marshal_state(cdrStream&) const;
virtual void _PR_unmarshal_state(cdrStream&);
virtual void _PR_copy_state(StringValue*);
static _core_attr const char* _PD_repoId;
protected:
~StringValue();
private:
StringValue& operator=(const StringValue&);
char* _pd_boxed;
};
_CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_StringValue;
#ifndef __CORBA_mWStringValue__
#define __CORBA_mWStringValue__
class WStringValue;
class WStringValue_Helper {
public:
static void add_ref(WStringValue*);
static void remove_ref(WStringValue*);
static void marshal(WStringValue*, cdrStream&);
static WStringValue* unmarshal(cdrStream&);
};
typedef _CORBA_Value_Var <WStringValue,WStringValue_Helper> WStringValue_var;
typedef _CORBA_Value_Member <WStringValue,WStringValue_Helper> WStringValue_member;
typedef _CORBA_Value_OUT_arg<WStringValue,WStringValue_Helper> WStringValue_out;
#endif // __CORBA_mWStringValue__
class WStringValue :
public ::CORBA::DefaultValueRefCountBase
{
public:
typedef WStringValue_var _var_type;
inline WStringValue()
: _pd_boxed(OMNI_CONST_CAST(::CORBA::WChar*,_CORBA_WString_helper::empty_wstring))
{}
inline WStringValue(const WStringValue& _v) :
ValueBase (_v), DefaultValueRefCountBase (_v) {
if (_v._pd_boxed) _pd_boxed = _CORBA_WString_helper::dup(_v._pd_boxed);
else _pd_boxed = 0;
}
inline WStringValue(::CORBA::WChar* _v) {
_pd_boxed = _v;
}
inline WStringValue(const ::CORBA::WChar* _v) {
if (_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline WStringValue(const ::CORBA::WString_var& _v) {
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline WStringValue(const ::CORBA::WString_member& _v) {
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline WStringValue(const _CORBA_WString_element& _v) {
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline WStringValue& operator=(::CORBA::WChar* _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
_pd_boxed = _v;
return *this;
}
inline WStringValue& operator=(const ::CORBA::WChar* _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if (_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline WStringValue& operator=(const ::CORBA::WString_var& _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline WStringValue& operator=(const ::CORBA::WString_member& _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline WStringValue& operator=(const _CORBA_WString_element& _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
return *this;
}
inline const ::CORBA::WChar* _value() const {
return _pd_boxed;
}
inline void _value(::CORBA::WChar* _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
_pd_boxed = _v;
}
inline void _value(const ::CORBA::WChar* _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if (_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline void _value(const ::CORBA::WString_var& _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline void _value(const ::CORBA::WString_member& _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline void _value(const _CORBA_WString_element& _v) {
_CORBA_WString_helper::dealloc(_pd_boxed);
if ((const ::CORBA::WChar*)_v) _pd_boxed = _CORBA_WString_helper::dup(_v);
else _pd_boxed = 0;
}
inline ::CORBA::WChar& operator[] (_CORBA_ULong _i) {
if (!_pd_boxed) {
_CORBA_bound_check_error(); // never return
}
return _pd_boxed[_i];
}
inline ::CORBA::WChar operator[] (_CORBA_ULong _i) const {
if (!_pd_boxed) {
_CORBA_bound_check_error(); // never return
}
return _pd_boxed[_i];
}
inline const ::CORBA::WChar* _boxed_in() const {
return _pd_boxed;
}
inline ::CORBA::WChar*& _boxed_inout() {
return _pd_boxed;
}
inline ::CORBA::WChar*& _boxed_out() {
return _pd_boxed;
}
static WStringValue* _downcast(::CORBA::ValueBase*);
#ifdef OMNI_HAVE_COVARIANT_RETURNS
virtual WStringValue* _copy_value();
#else
virtual ::CORBA::ValueBase* _copy_value();
#endif
// omniORB internal
virtual const char* _NP_repositoryId() const;
virtual const char* _NP_repositoryId(::CORBA::ULong& _hashval) const;
virtual const _omni_ValueIds* _NP_truncatableIds() const;
virtual ::CORBA::Boolean _NP_custom() const;
virtual ::CORBA::Boolean _NP_box() const;
virtual void* _ptrToValue(const char* id);
static void _NP_marshal(WStringValue*, cdrStream&);
static WStringValue* _NP_unmarshal(cdrStream&);
virtual void _PR_marshal_state(cdrStream&) const;
virtual void _PR_unmarshal_state(cdrStream&);
virtual void _PR_copy_state(WStringValue*);
static _core_attr const char* _PD_repoId;
protected:
~WStringValue();
private:
WStringValue& operator=(const WStringValue&);
::CORBA::WChar* _pd_boxed;
};
_CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_WStringValue;
#endif
|