/usr/include/omniORB4/IOP.h is in libomniorb4-dev 4.1.6-2.
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 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | // -*- Mode: C++; -*-
// Package : omniORB
// IOP.h Created on: 8/2/96
// Author : Sai Lai Lo (sll)
//
// Copyright (C) 1996-1999 AT&T Laboratories Cambridge
//
// This file is part of the omniORB library
//
// The omniORB library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free
// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA
//
//
// Description:
// C++ mapping of the OMG IOP module
// Reference: CORBA V2.0 10.6.2
//
//
/*
$Log$
Revision 1.4.2.3 2006/07/18 16:21:24 dgrisby
New experimental connection management extension; ORB core support
for it.
Revision 1.4.2.2 2005/01/06 23:08:09 dgrisby
Big merge from omni4_0_develop.
Revision 1.4.2.1 2003/03/23 21:04:20 dgrisby
Start of omniORB 4.1.x development branch.
Revision 1.2.2.8 2001/08/06 15:49:16 sll
Added IOP component TAG_OMNIORB_UNIX_TRANS for omniORB specific local
transport using the unix domain socket.
Revision 1.2.2.7 2001/07/31 16:10:39 sll
Added GIOP BiDir support.
Revision 1.2.2.6 2001/04/18 17:52:19 sll
Added FT specification constants.
Revision 1.2.2.5 2000/11/15 17:00:55 sll
Added marshalling operators for ServiceContext.
Revision 1.2.2.4 2000/11/03 18:58:46 sll
Unbounded sequence of octet got a new type name.
Revision 1.2.2.3 2000/10/04 16:52:04 sll
New helper function dumpComponent().
Revision 1.2.2.2 2000/09/27 17:06:09 sll
Updated to use the new cdrStream abstraction.
Updated to include the latest componentID, service context ID etc.
Revision 1.2.2.1 2000/07/17 10:35:34 sll
Merged from omni3_develop the diff between omni3_0_0_pre3 and omni3_0_0.
Revision 1.3 2000/07/13 15:26:05 dpg1
Merge from omni3_develop for 3.0 release.
Revision 1.1.2.1 1999/09/24 09:51:41 djr
Moved from omniORB2 + some new files.
Revision 1.7 1999/06/18 21:13:56 sll
Updated copyright notice.
Revision 1.6 1999/06/18 20:36:05 sll
Replaced _LC_attr with _core_attr.
Revision 1.5 1999/01/07 18:22:25 djr
Replaced _OMNIORB_NTDLL_IMPORT with _LC_attr.
Revision 1.4 1998/04/07 19:59:00 sll
Replace _OMNIORB2_NTDLL_ specification on class IOP with
_OMNIORB_NTDLL_IMPORT on static member constants.
Revision 1.3 1997/12/09 20:36:28 sll
Added TaggedProfileList_var class.
* Revision 1.2 1997/05/06 16:07:17 sll
* Public release.
*
*/
#ifndef __OMNIORB_IOP_H__
#define __OMNIORB_IOP_H__
class IOP {
public:
typedef _CORBA_ULong ProfileId;
static _core_attr const ProfileId TAG_INTERNET_IOP;
static _core_attr const ProfileId TAG_MULTIPLE_COMPONENTS;
static _core_attr const ProfileId TAG_SCCP_IOP;
struct TaggedProfile {
ProfileId tag;
_CORBA_Unbounded_Sequence_Octet profile_data;
void operator>>= (cdrStream &s) const;
void operator<<= (cdrStream &s);
};
typedef _CORBA_Unbounded_Sequence<TaggedProfile> TaggedProfileList;
class TaggedProfileList_out;
class TaggedProfileList_var {
public:
typedef TaggedProfileList _Tseq;
typedef TaggedProfileList_var _T_var;
inline TaggedProfileList_var() : pd_seq(0) {}
inline TaggedProfileList_var(_Tseq* s) : pd_seq(s) {}
inline TaggedProfileList_var(const _T_var& sv) {
if( sv.pd_seq ) {
pd_seq = new _Tseq;
*pd_seq = *sv.pd_seq;
} else
pd_seq = 0;
}
inline ~TaggedProfileList_var() { if( pd_seq ) delete pd_seq; }
inline _T_var& operator = (_Tseq* s) {
if( pd_seq ) delete pd_seq;
pd_seq = s;
return *this;
}
inline _T_var& operator = (const _T_var& sv) {
if( sv.pd_seq ) {
if( !pd_seq ) pd_seq = new _Tseq;
*pd_seq = *sv.pd_seq;
} else if( pd_seq ) {
delete pd_seq;
pd_seq = 0;
}
return *this;
}
inline TaggedProfile& operator [] (_CORBA_ULong i) { return (*pd_seq)[i]; }
inline _Tseq* operator -> () { return pd_seq; }
#if defined(__GNUG__) && __GNUG__ == 2 && __GNUC_MINOR__ == 7
inline operator _Tseq& () const { return *pd_seq; }
#else
inline operator const _Tseq& () const { return *pd_seq; }
inline operator _Tseq& () { return *pd_seq; }
#endif
inline const _Tseq& in() const { return *pd_seq; }
inline _Tseq& inout() { return *pd_seq; }
inline _Tseq*& out() { if (pd_seq) { delete pd_seq; pd_seq = 0; } return pd_seq; }
inline _Tseq* _retn() { _Tseq* tmp = pd_seq; pd_seq = 0; return tmp; }
friend class TaggedProfileList_out;
private:
_Tseq* pd_seq;
};
class TaggedProfileList_out {
public:
typedef TaggedProfileList _Tseq;
typedef TaggedProfileList_var _T_var;
inline TaggedProfileList_out(_Tseq*& s) : _data(s) { _data = 0; }
inline TaggedProfileList_out(_T_var& sv)
: _data(sv.pd_seq) { sv = (_Tseq*) 0; }
inline TaggedProfileList_out(const TaggedProfileList_out& s) : _data(s._data) { }
inline TaggedProfileList_out& operator=(const TaggedProfileList_out& s) { _data = s._data; return *this; }
inline TaggedProfileList_out& operator=(_Tseq* s) { _data = s; return *this; }
inline operator _Tseq*&() { return _data; }
inline _Tseq*& ptr() { return _data; }
inline _Tseq* operator->() { return _data; }
inline TaggedProfile& operator [] (_CORBA_ULong i) { return (*_data)[i]; }
_Tseq*& _data;
private:
TaggedProfileList_out();
TaggedProfileList_out operator=( const _T_var&);
};
struct IOR {
_CORBA_String_member type_id;
TaggedProfileList profiles;
// the following are omniORB private functions
void operator>>= (cdrStream &s);
void operator<<= (cdrStream &s);
static char* unmarshaltype_id(cdrStream&);
};
typedef _CORBA_ULong ComponentId;
static _core_attr const ComponentId TAG_ORB_TYPE;
static _core_attr const ComponentId TAG_CODE_SETS;
static _core_attr const ComponentId TAG_POLICIES;
static _core_attr const ComponentId TAG_ALTERNATE_IIOP_ADDRESS;
static _core_attr const ComponentId TAG_ASSOCIATION_OPTIONS;
static _core_attr const ComponentId TAG_SEC_NAME;
static _core_attr const ComponentId TAG_SPKM_1_SEC_MECH;
static _core_attr const ComponentId TAG_SPKM_2_SEC_MECH;
static _core_attr const ComponentId TAG_KERBEROSV5_SEC_MECH;
static _core_attr const ComponentId TAG_CSI_ECMA_SECRET_SEC_MECH;
static _core_attr const ComponentId TAG_CSI_ECMA_HYBRID_SEC_MECH;
static _core_attr const ComponentId TAG_SSL_SEC_TRANS;
static _core_attr const ComponentId TAG_CSI_ECMA_PUBLIC_SEC_MECH;
static _core_attr const ComponentId TAG_GENERIC_SEC_MECH;
static _core_attr const ComponentId TAG_FIREWALL_TRANS;
static _core_attr const ComponentId TAG_SCCP_CONTACT_INFO;
static _core_attr const ComponentId TAG_JAVA_CODEBASE;
static _core_attr const ComponentId TAG_CSI_SEC_MECH_LIST;
static _core_attr const ComponentId TAG_NULL_TAG;
static _core_attr const ComponentId TAG_TLS_SEC_TRANS;
static _core_attr const ComponentId TAG_COMPLETE_OBJECT_KEY;
static _core_attr const ComponentId TAG_ENDPOINT_ID_POSITION;
static _core_attr const ComponentId TAG_LOCATION_POLICY;
static _core_attr const ComponentId TAG_DCE_STRING_BINDING;
static _core_attr const ComponentId TAG_DCE_BINDING_NAME;
static _core_attr const ComponentId TAG_DCE_NO_PIPES;
static _core_attr const ComponentId TAG_DCE_SEC_MECH;
static _core_attr const ComponentId TAG_INET_SEC_TRANS;
static _core_attr const ComponentId TAG_GROUP; // FT SPEC
static _core_attr const ComponentId TAG_PRIMARY; // FT SPEC
static _core_attr const ComponentId TAG_HEARTBEAT_ENABLED; // FT SPEC
// omniORB specific:
static _core_attr const ComponentId TAG_OMNIORB_BIDIR;
static _core_attr const ComponentId TAG_OMNIORB_UNIX_TRANS;
static _core_attr const ComponentId TAG_OMNIORB_PERSISTENT_ID;
static _core_attr const ComponentId TAG_OMNIORB_RESTRICTED_CONNECTION;
static const char* ComponentIDtoName(ComponentId);
// omniORB private function.
// Return the name given the ComponentId. Return nil if the ComponentId
// is not recongised.
struct TaggedComponent {
ComponentId tag;
_CORBA_Unbounded_Sequence_Octet component_data;
// the following are omniORB private functions
void operator>>= (cdrStream &s) const;
void operator<<= (cdrStream &s);
};
static char* dumpComponent(const TaggedComponent&);
// omniORB private function. Produce the textual dump of the component
// content
typedef _CORBA_Unbounded_Sequence<TaggedComponent> MultipleComponentProfile;
class MultipleComponentProfile_out;
class MultipleComponentProfile_var {
public:
typedef MultipleComponentProfile _Tseq;
typedef MultipleComponentProfile_var _T_var;
inline MultipleComponentProfile_var() : pd_seq(0) {}
inline MultipleComponentProfile_var(_Tseq* s) : pd_seq(s) {}
inline MultipleComponentProfile_var(const _T_var& sv) {
if( sv.pd_seq ) {
pd_seq = new _Tseq;
*pd_seq = *sv.pd_seq;
} else
pd_seq = 0;
}
inline ~MultipleComponentProfile_var() { if( pd_seq ) delete pd_seq; }
inline _T_var& operator = (_Tseq* s) {
if( pd_seq ) delete pd_seq;
pd_seq = s;
return *this;
}
inline _T_var& operator = (const _T_var& sv) {
if( sv.pd_seq ) {
if( !pd_seq ) pd_seq = new _Tseq;
*pd_seq = *sv.pd_seq;
} else if( pd_seq ) {
delete pd_seq;
pd_seq = 0;
}
return *this;
}
inline TaggedComponent& operator [] (_CORBA_ULong i) { return (*pd_seq)[i]; }
inline _Tseq* operator -> () { return pd_seq; }
#if defined(__GNUG__) && __GNUG__ == 2 && __GNUC_MINOR__ == 7
inline operator _Tseq& () const { return *pd_seq; }
#else
inline operator const _Tseq& () const { return *pd_seq; }
inline operator _Tseq& () { return *pd_seq; }
#endif
inline const _Tseq& in() const { return *pd_seq; }
inline _Tseq& inout() { return *pd_seq; }
inline _Tseq*& out() { if (pd_seq) { delete pd_seq; pd_seq = 0; } return pd_seq; }
inline _Tseq* _retn() { _Tseq* tmp = pd_seq; pd_seq = 0; return tmp; }
friend class MultipleComponentProfile_out;
private:
_Tseq* pd_seq;
};
class MultipleComponentProfile_out {
public:
typedef MultipleComponentProfile _Tseq;
typedef MultipleComponentProfile_var _T_var;
inline MultipleComponentProfile_out(_Tseq*& s) : _data(s) { _data = 0; }
inline MultipleComponentProfile_out(_T_var& sv)
: _data(sv.pd_seq) { sv = (_Tseq*) 0; }
inline MultipleComponentProfile_out(const MultipleComponentProfile_out& s) : _data(s._data) { }
inline MultipleComponentProfile_out& operator=(const MultipleComponentProfile_out& s) { _data = s._data; return *this; }
inline MultipleComponentProfile_out& operator=(_Tseq* s) { _data = s; return *this; }
inline operator _Tseq*&() { return _data; }
inline _Tseq*& ptr() { return _data; }
inline _Tseq* operator->() { return _data; }
inline TaggedComponent& operator [] (_CORBA_ULong i) { return (*_data)[i]; }
_Tseq*& _data;
private:
MultipleComponentProfile_out();
MultipleComponentProfile_out operator=( const _T_var&);
};
typedef _CORBA_Unbounded_Sequence<MultipleComponentProfile> MultipleComponentProfileList;
typedef _CORBA_ULong ServiceID;
struct ServiceContext {
ServiceID context_id;
_CORBA_Unbounded_Sequence_Octet context_data;
// the following are omniORB private functions
void operator>>= (cdrStream &s) const;
void operator<<= (cdrStream &s);
};
typedef _CORBA_Unbounded_Sequence<ServiceContext> ServiceContextList;
class ServiceContextList_out;
class ServiceContextList_var {
public:
typedef ServiceContextList _Tseq;
typedef ServiceContextList_var _T_var;
inline ServiceContextList_var() : pd_seq(0) {}
inline ServiceContextList_var(_Tseq* s) : pd_seq(s) {}
inline ServiceContextList_var(const _T_var& sv) {
if( sv.pd_seq ) {
pd_seq = new _Tseq;
*pd_seq = *sv.pd_seq;
} else
pd_seq = 0;
}
inline ~ServiceContextList_var() { if( pd_seq ) delete pd_seq; }
inline _T_var& operator = (_Tseq* s) {
if( pd_seq ) delete pd_seq;
pd_seq = s;
return *this;
}
inline _T_var& operator = (const _T_var& sv) {
if( sv.pd_seq ) {
if( !pd_seq ) pd_seq = new _Tseq;
*pd_seq = *sv.pd_seq;
} else if( pd_seq ) {
delete pd_seq;
pd_seq = 0;
}
return *this;
}
inline ServiceContext& operator [] (_CORBA_ULong i) { return (*pd_seq)[i]; }
inline _Tseq* operator -> () { return pd_seq; }
#if defined(__GNUG__) && __GNUG__ == 2 && __GNUC_MINOR__ == 7
inline operator _Tseq& () const { return *pd_seq; }
#else
inline operator const _Tseq& () const { return *pd_seq; }
inline operator _Tseq& () { return *pd_seq; }
#endif
inline const _Tseq& in() const { return *pd_seq; }
inline _Tseq& inout() { return *pd_seq; }
inline _Tseq*& out() { if (pd_seq) { delete pd_seq; pd_seq = 0; } return pd_seq; }
inline _Tseq* _retn() { _Tseq* tmp = pd_seq; pd_seq = 0; return tmp; }
friend class ServiceContextList_out;
private:
_Tseq* pd_seq;
};
class ServiceContextList_out {
public:
typedef ServiceContextList _Tseq;
typedef ServiceContextList_var _T_var;
inline ServiceContextList_out(_Tseq*& s) : _data(s) { _data = 0; }
inline ServiceContextList_out(_T_var& sv)
: _data(sv.pd_seq) { sv = (_Tseq*) 0; }
inline ServiceContextList_out(const ServiceContextList_out& s) : _data(s._data) { }
inline ServiceContextList_out& operator=(const ServiceContextList_out& s) { _data = s._data; return *this; }
inline ServiceContextList_out& operator=(_Tseq* s) { _data = s; return *this; }
inline operator _Tseq*&() { return _data; }
inline _Tseq*& ptr() { return _data; }
inline _Tseq* operator->() { return _data; }
inline ServiceContext& operator [] (_CORBA_ULong i) { return (*_data)[i]; }
_Tseq*& _data;
private:
ServiceContextList_out();
ServiceContextList_out operator=( const _T_var&);
};
static _core_attr const ServiceID TransactionService;
static _core_attr const ServiceID CodeSets;
static _core_attr const ServiceID ChainBypassCheck;
static _core_attr const ServiceID ChainBypassInfo;
static _core_attr const ServiceID LogicalThreadId;
static _core_attr const ServiceID BI_DIR_IIOP;
static _core_attr const ServiceID SendingContextRunTime;
static _core_attr const ServiceID INVOCATION_POLICIES;
static _core_attr const ServiceID FORWARDED_IDENTITY;
static _core_attr const ServiceID UnknownExceptionInfo;
static _core_attr const ServiceID RTCorbaPriority;
static _core_attr const ServiceID RTCorbaPriorityRange;
static _core_attr const ServiceID GROUP_VERSION; // FT SPEC
static _core_attr const ServiceID REQUEST; // FT SPEC
static _core_attr const ServiceID OMNIORB_RESTRICTED_CONNECTION;
static const char* ServiceIDtoName(ServiceID);
// omniORB private function.
// Return the name given the ComponentId. Return nil if the ComponentId
// is not recongised.
};
#endif // __OMNIORB_IOP_H__
|