/usr/include/omniORB4/dynAny.h is in libomniorb4-dev 4.1.6-2ubuntu1.
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 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 | // -*- Mode: C++; -*-
// Package : omniORB
// dynAny.h Created on: 2001/09/25
// Author : Duncan Grisby (dpg1)
//
// Copyright (C) 2001 AT&T Research 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:
// DynamicAny module
/*
$Log$
Revision 1.1.4.2 2005/01/06 16:39:23 dgrisby
DynValue and DynValueBox implementations; misc small fixes.
Revision 1.1.4.1 2003/03/23 21:04:16 dgrisby
Start of omniORB 4.1.x development branch.
Revision 1.1.2.2 2003/01/16 11:08:26 dgrisby
Patches to support Digital Mars C++. Thanks Christof Meerwald.
Revision 1.1.2.1 2001/10/17 16:44:01 dpg1
Update DynAny to CORBA 2.5 spec, const Any exception extraction.
*/
#ifndef __OMNIDYNANY_H__
#define __OMNIDYNANY_H__
_CORBA_MODULE DynamicAny
_CORBA_MODULE_BEG
//////////////////////////////////////////////////////////////////////
/////////////////////////////// DynAny ///////////////////////////////
//////////////////////////////////////////////////////////////////////
class DynAny;
typedef DynAny* DynAny_ptr;
class DynAny_Helper {
public:
typedef DynAny_ptr _ptr_type;
static _ptr_type _nil();
static _CORBA_Boolean is_nil(_ptr_type);
static void release(_ptr_type);
static void duplicate(_ptr_type);
#ifdef __DMC__
// Digital Mars C++ tries to instantiate a template that needs these
static inline void marshalObjRef(_ptr_type, cdrStream &) { }
static inline _ptr_type unmarshalObjRef(cdrStream &) { return _nil(); }
#endif
};
class DynAny : public CORBA::Object {
public:
typedef DynAny_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynAny> _var_type;
OMNIORB_DECLARE_USER_EXCEPTION(InvalidValue, _dyn_attr)
OMNIORB_DECLARE_USER_EXCEPTION(TypeMismatch, _dyn_attr)
// IDL defined functions
virtual CORBA::TypeCode_ptr type() const = 0;
virtual void assign(DynAny_ptr dyn_any) = 0;
virtual void from_any(const CORBA::Any& value) = 0;
virtual CORBA::Any* to_any() = 0;
virtual CORBA::Boolean equal(DynAny_ptr dyn_any) = 0;
virtual void destroy() = 0;
virtual DynAny_ptr copy() = 0;
virtual void insert_boolean (CORBA::Boolean value) = 0;
virtual void insert_octet (CORBA::Octet value) = 0;
virtual void insert_char (CORBA::Char value) = 0;
virtual void insert_short (CORBA::Short value) = 0;
virtual void insert_ushort (CORBA::UShort value) = 0;
virtual void insert_long (CORBA::Long value) = 0;
virtual void insert_ulong (CORBA::ULong value) = 0;
#ifndef NO_FLOAT
virtual void insert_float (CORBA::Float value) = 0;
virtual void insert_double (CORBA::Double value) = 0;
#endif
virtual void insert_string (const char* value) = 0;
virtual void insert_reference (CORBA::Object_ptr value) = 0;
virtual void insert_typecode (CORBA::TypeCode_ptr value) = 0;
#ifdef HAS_LongLong
virtual void insert_longlong (CORBA::LongLong value) = 0;
virtual void insert_ulonglong (CORBA::ULongLong value) = 0;
#endif
#ifdef HAS_LongDouble
virtual void insert_longdouble(CORBA::LongDouble value) = 0;
#endif
virtual void insert_wchar (CORBA::WChar value) = 0;
virtual void insert_wstring (const CORBA::WChar* value) = 0;
virtual void insert_any (const CORBA::Any& value) = 0;
virtual void insert_dyn_any (DynAny_ptr value) = 0;
virtual void insert_val (CORBA::ValueBase* value) = 0;
virtual void insert_abstract (CORBA::AbstractBase_ptr value) = 0;
virtual CORBA::Boolean get_boolean() = 0;
virtual CORBA::Octet get_octet() = 0;
virtual CORBA::Char get_char() = 0;
virtual CORBA::Short get_short() = 0;
virtual CORBA::UShort get_ushort() = 0;
virtual CORBA::Long get_long() = 0;
virtual CORBA::ULong get_ulong() = 0;
#ifndef NO_FLOAT
virtual CORBA::Float get_float() = 0;
virtual CORBA::Double get_double() = 0;
#endif
virtual char* get_string() = 0;
virtual CORBA::Object_ptr get_reference() = 0;
virtual CORBA::TypeCode_ptr get_typecode() = 0;
#ifdef HAS_LongLong
virtual CORBA::LongLong get_longlong() = 0;
virtual CORBA::ULongLong get_ulonglong() = 0;
#endif
#ifdef HAS_LongDouble
virtual CORBA::LongDouble get_longdouble() = 0;
#endif
virtual CORBA::WChar get_wchar() = 0;
virtual CORBA::WChar* get_wstring() = 0;
virtual CORBA::Any* get_any() = 0;
virtual DynAny_ptr get_dyn_any() = 0;
virtual CORBA::ValueBase* get_val() = 0;
virtual CORBA::AbstractBase_ptr get_abstract() = 0;
// CORBA 2.5 sequence operations
virtual void insert_boolean_seq (CORBA::BooleanSeq& value) = 0;
virtual void insert_octet_seq (CORBA::OctetSeq& value) = 0;
virtual void insert_char_seq (CORBA::CharSeq& value) = 0;
virtual void insert_short_seq (CORBA::ShortSeq& value) = 0;
virtual void insert_ushort_seq (CORBA::UShortSeq& value) = 0;
virtual void insert_long_seq (CORBA::LongSeq& value) = 0;
virtual void insert_ulong_seq (CORBA::ULongSeq& value) = 0;
#ifndef NO_FLOAT
virtual void insert_float_seq (CORBA::FloatSeq& value) = 0;
virtual void insert_double_seq (CORBA::DoubleSeq& value) = 0;
#endif
#ifdef HAS_LongLong
virtual void insert_longlong_seq (CORBA::LongLongSeq& value) = 0;
virtual void insert_ulonglong_seq (CORBA::ULongLongSeq& value) = 0;
#endif
#ifdef HAS_LongDouble
virtual void insert_longdouble_seq(CORBA::LongDoubleSeq& value) = 0;
#endif
virtual void insert_wchar_seq (CORBA::WCharSeq& value) = 0;
virtual CORBA::BooleanSeq* get_boolean_seq() = 0;
virtual CORBA::OctetSeq* get_octet_seq() = 0;
virtual CORBA::CharSeq* get_char_seq() = 0;
virtual CORBA::ShortSeq* get_short_seq() = 0;
virtual CORBA::UShortSeq* get_ushort_seq() = 0;
virtual CORBA::LongSeq* get_long_seq() = 0;
virtual CORBA::ULongSeq* get_ulong_seq() = 0;
#ifndef NO_FLOAT
virtual CORBA::FloatSeq* get_float_seq() = 0;
virtual CORBA::DoubleSeq* get_double_seq() = 0;
#endif
#ifdef HAS_LongLong
virtual CORBA::LongLongSeq* get_longlong_seq() = 0;
virtual CORBA::ULongLongSeq* get_ulonglong_seq() = 0;
#endif
#ifdef HAS_LongDouble
virtual CORBA::LongDoubleSeq* get_longdouble_seq() = 0;
#endif
virtual CORBA::WCharSeq* get_wchar_seq() = 0;
virtual CORBA::Boolean seek(CORBA::Long index) = 0;
virtual void rewind() = 0;
virtual CORBA::Boolean next() = 0;
virtual CORBA::ULong component_count() = 0;
virtual DynAny_ptr current_component() = 0;
static DynAny_ptr _duplicate(DynAny_ptr);
static DynAny_ptr _narrow(CORBA::Object_ptr);
static DynAny_ptr _nil();
virtual int NP_nodetype() const = 0;
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
static _dyn_attr const CORBA::ULong PR_magic;
static inline CORBA::Boolean PR_is_valid(const DynAny* p) {
return p ? (p->pd_dynmagic == PR_magic) : 1;
}
protected:
inline DynAny(int is_nil = 0) : pd_dynmagic(PR_magic) {
if (is_nil)
_PR_setobj((omniObjRef*)0);
else
_PR_setobj((omniObjRef*)1);
}
virtual ~DynAny();
private:
DynAny(const DynAny&);
DynAny& operator=(const DynAny&);
CORBA::ULong pd_dynmagic;
};
typedef DynAny::_var_type DynAny_var;
typedef _CORBA_PseudoObj_Member<DynAny,DynAny_var> DynAny_member;
typedef _CORBA_PseudoObj_Out<DynAny,DynAny_var> DynAny_out;
//////////////////////////////////////////////////////////////////////
/////////////////////////////// DynFixed /////////////////////////////
//////////////////////////////////////////////////////////////////////
class DynFixed;
typedef DynFixed* DynFixed_ptr;
class DynFixed : public virtual DynAny {
public:
typedef DynFixed_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynFixed> _var_type;
virtual char* get_value() = 0;
virtual CORBA::Boolean set_value(const char* val) = 0;
static DynFixed_ptr _duplicate(DynFixed_ptr);
static DynFixed_ptr _narrow(CORBA::Object_ptr);
static DynFixed_ptr _nil();
virtual ~DynFixed();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynFixed() {}
private:
DynFixed(const DynFixed&);
DynFixed& operator=(const DynFixed&);
};
typedef DynFixed::_var_type DynFixed_var;
typedef _CORBA_PseudoObj_Member<DynFixed,DynFixed_var> DynFixed_member;
typedef _CORBA_PseudoObj_Out<DynFixed,DynFixed_var> DynFixed_out;
//////////////////////////////////////////////////////////////////////
/////////////////////////////// DynEnum //////////////////////////////
//////////////////////////////////////////////////////////////////////
class DynEnum;
typedef DynEnum* DynEnum_ptr;
class DynEnum : public virtual DynAny {
public:
typedef DynEnum_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynEnum> _var_type;
virtual char* get_as_string() = 0;
virtual void set_as_string(const char* value) = 0;
virtual CORBA::ULong get_as_ulong() = 0;
virtual void set_as_ulong(CORBA::ULong value) = 0;
static DynEnum_ptr _duplicate(DynEnum_ptr);
static DynEnum_ptr _narrow(CORBA::Object_ptr);
static DynEnum_ptr _nil();
virtual ~DynEnum();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynEnum() {}
private:
DynEnum(const DynEnum&);
DynEnum& operator=(const DynEnum&);
};
typedef DynEnum::_var_type DynEnum_var;
typedef _CORBA_PseudoObj_Member<DynEnum,DynEnum_var> DynEnum_member;
typedef _CORBA_PseudoObj_Out<DynEnum,DynEnum_var> DynEnum_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynStruct /////////////////////////////
//////////////////////////////////////////////////////////////////////
typedef char* FieldName;
typedef CORBA::String_var FieldName_var;
typedef CORBA::String_out FieldName_out;
struct NameValuePair {
typedef _CORBA_ConstrType_Variable_Var<NameValuePair> _var_type;
CORBA::String_member id;
CORBA::Any value;
#ifdef __DMC__
// Digital Mars C++ tries to instantiate a template that needs these
inline void operator >>= (cdrStream &) const { }
inline void operator <<= (const cdrStream &) { }
#endif
};
typedef NameValuePair::_var_type NameValuePair_var;
typedef _CORBA_ConstrType_Variable_OUT_arg<NameValuePair,NameValuePair_var > NameValuePair_out;
// Generated code for NameValuePairSeq
class NameValuePairSeq_var;
class NameValuePairSeq : public _CORBA_Unbounded_Sequence< NameValuePair> {
public:
typedef NameValuePairSeq_var _var_type;
inline NameValuePairSeq() {}
inline NameValuePairSeq(const NameValuePairSeq& s)
: _CORBA_Unbounded_Sequence< NameValuePair> (s) {}
inline NameValuePairSeq(_CORBA_ULong _max)
: _CORBA_Unbounded_Sequence< NameValuePair> (_max) {}
inline NameValuePairSeq(_CORBA_ULong _max, _CORBA_ULong _len, NameValuePair* _val, _CORBA_Boolean _rel=0)
: _CORBA_Unbounded_Sequence< NameValuePair> (_max, _len, _val, _rel) {}
inline NameValuePairSeq& operator = (const NameValuePairSeq& s) {
_CORBA_Unbounded_Sequence< NameValuePair> ::operator=(s);
return *this;
}
};
class NameValuePairSeq_out;
class NameValuePairSeq_var {
public:
typedef NameValuePairSeq T;
typedef NameValuePairSeq_var T_var;
inline NameValuePairSeq_var() : _pd_seq(0) {}
inline NameValuePairSeq_var(T* s) : _pd_seq(s) {}
inline NameValuePairSeq_var(const T_var& s) {
if( s._pd_seq ) _pd_seq = new T(*s._pd_seq);
else _pd_seq = 0;
}
inline ~NameValuePairSeq_var() { if( _pd_seq ) delete _pd_seq; }
inline T_var& operator = (T* s) {
if( _pd_seq ) delete _pd_seq;
_pd_seq = s;
return *this;
}
inline T_var& operator = (const T_var& s) {
if( s._pd_seq ) {
if( !_pd_seq ) _pd_seq = new T;
*_pd_seq = *s._pd_seq;
} else if( _pd_seq ) {
delete _pd_seq;
_pd_seq = 0;
}
return *this;
}
inline NameValuePair& operator [] (_CORBA_ULong s) {
return (*_pd_seq)[s];
}
inline T* operator -> () { return _pd_seq; }
#if defined(__GNUG__)
inline operator T& () const { return *_pd_seq; }
#else
inline operator const T& () const { return *_pd_seq; }
inline operator T& () { return *_pd_seq; }
#endif
inline const T& in() const { return *_pd_seq; }
inline T& inout() { return *_pd_seq; }
inline T*& out() {
if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
return _pd_seq;
}
inline T* _retn() { T* tmp = _pd_seq; _pd_seq = 0; return tmp; }
friend class NameValuePairSeq_out;
private:
T* _pd_seq;
};
class NameValuePairSeq_out {
public:
typedef NameValuePairSeq T;
typedef NameValuePairSeq_var T_var;
inline NameValuePairSeq_out(T*& s) : _data(s) { _data = 0; }
inline NameValuePairSeq_out(T_var& s)
: _data(s._pd_seq) { s = (T*) 0; }
inline NameValuePairSeq_out(const NameValuePairSeq_out& s) : _data(s._data) {}
inline NameValuePairSeq_out& operator = (const NameValuePairSeq_out& s) {
_data = s._data;
return *this;
} inline NameValuePairSeq_out& operator = (T* s) {
_data = s;
return *this;
}
inline operator T*&() { return _data; }
inline T*& ptr() { return _data; }
inline T* operator->() { return _data; }
inline NameValuePair& operator [] (_CORBA_ULong i) {
return (*_data)[i];
}
T*& _data;
private:
NameValuePairSeq_out();
NameValuePairSeq_out& operator=(const T_var&);
};
// End of generated code
struct NameDynAnyPair {
typedef _CORBA_ConstrType_Variable_Var<NameDynAnyPair> _var_type;
CORBA::String_member id;
DynAny_member value;
#ifdef __DMC__
// Digital Mars C++ tries to instantiate a template that needs these
inline void operator >>= (cdrStream &) const { }
inline void operator <<= (const cdrStream &) { }
#endif
};
typedef NameDynAnyPair::_var_type NameDynAnyPair_var;
typedef _CORBA_ConstrType_Variable_OUT_arg<NameDynAnyPair,NameDynAnyPair_var> NameDynAnyPair_out;
// Generated code for NameDynAnyPairSeq
class NameDynAnyPairSeq_var;
class NameDynAnyPairSeq : public _CORBA_Unbounded_Sequence< NameDynAnyPair> {
public:
typedef NameDynAnyPairSeq_var _var_type;
inline NameDynAnyPairSeq() {}
inline NameDynAnyPairSeq(const NameDynAnyPairSeq& s)
: _CORBA_Unbounded_Sequence< NameDynAnyPair> (s) {}
inline NameDynAnyPairSeq(_CORBA_ULong _max)
: _CORBA_Unbounded_Sequence< NameDynAnyPair> (_max) {}
inline NameDynAnyPairSeq(_CORBA_ULong _max, _CORBA_ULong _len, NameDynAnyPair* _val, _CORBA_Boolean _rel=0)
: _CORBA_Unbounded_Sequence< NameDynAnyPair> (_max, _len, _val, _rel) {}
inline NameDynAnyPairSeq& operator = (const NameDynAnyPairSeq& s) {
_CORBA_Unbounded_Sequence< NameDynAnyPair> ::operator=(s);
return *this;
}
};
class NameDynAnyPairSeq_out;
class NameDynAnyPairSeq_var {
public:
typedef NameDynAnyPairSeq T;
typedef NameDynAnyPairSeq_var T_var;
inline NameDynAnyPairSeq_var() : _pd_seq(0) {}
inline NameDynAnyPairSeq_var(T* s) : _pd_seq(s) {}
inline NameDynAnyPairSeq_var(const T_var& s) {
if( s._pd_seq ) _pd_seq = new T(*s._pd_seq);
else _pd_seq = 0;
}
inline ~NameDynAnyPairSeq_var() { if( _pd_seq ) delete _pd_seq; }
inline T_var& operator = (T* s) {
if( _pd_seq ) delete _pd_seq;
_pd_seq = s;
return *this;
}
inline T_var& operator = (const T_var& s) {
if( s._pd_seq ) {
if( !_pd_seq ) _pd_seq = new T;
*_pd_seq = *s._pd_seq;
} else if( _pd_seq ) {
delete _pd_seq;
_pd_seq = 0;
}
return *this;
}
inline NameDynAnyPair& operator [] (_CORBA_ULong s) {
return (*_pd_seq)[s];
}
inline T* operator -> () { return _pd_seq; }
#if defined(__GNUG__)
inline operator T& () const { return *_pd_seq; }
#else
inline operator const T& () const { return *_pd_seq; }
inline operator T& () { return *_pd_seq; }
#endif
inline const T& in() const { return *_pd_seq; }
inline T& inout() { return *_pd_seq; }
inline T*& out() {
if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
return _pd_seq;
}
inline T* _retn() { T* tmp = _pd_seq; _pd_seq = 0; return tmp; }
friend class NameDynAnyPairSeq_out;
private:
T* _pd_seq;
};
class NameDynAnyPairSeq_out {
public:
typedef NameDynAnyPairSeq T;
typedef NameDynAnyPairSeq_var T_var;
inline NameDynAnyPairSeq_out(T*& s) : _data(s) { _data = 0; }
inline NameDynAnyPairSeq_out(T_var& s)
: _data(s._pd_seq) { s = (T*) 0; }
inline NameDynAnyPairSeq_out(const NameDynAnyPairSeq_out& s) : _data(s._data) {}
inline NameDynAnyPairSeq_out& operator = (const NameDynAnyPairSeq_out& s) {
_data = s._data;
return *this;
} inline NameDynAnyPairSeq_out& operator = (T* s) {
_data = s;
return *this;
}
inline operator T*&() { return _data; }
inline T*& ptr() { return _data; }
inline T* operator->() { return _data; }
inline NameDynAnyPair& operator [] (_CORBA_ULong i) {
return (*_data)[i];
}
T*& _data;
private:
NameDynAnyPairSeq_out();
NameDynAnyPairSeq_out& operator=(const T_var&);
};
// End of generated code
class DynStruct;
typedef DynStruct* DynStruct_ptr;
class DynStruct : public virtual DynAny {
public:
typedef DynStruct_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynStruct> _var_type;
virtual char* current_member_name() = 0;
virtual CORBA::TCKind current_member_kind() = 0;
virtual NameValuePairSeq* get_members() = 0;
virtual void set_members(const NameValuePairSeq& value) = 0;
virtual NameDynAnyPairSeq* get_members_as_dyn_any() = 0;
virtual void set_members_as_dyn_any(const NameDynAnyPairSeq& value) = 0;
static DynStruct_ptr _duplicate(DynStruct_ptr);
static DynStruct_ptr _narrow(CORBA::Object_ptr);
static DynStruct_ptr _nil();
virtual ~DynStruct();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynStruct() {}
private:
DynStruct(const DynStruct&);
DynStruct& operator=(const DynStruct&);
};
typedef DynStruct::_var_type DynStruct_var;
typedef _CORBA_PseudoObj_Member<DynStruct,DynStruct_var> DynStruct_member;
typedef _CORBA_PseudoObj_Out<DynStruct,DynStruct_var> DynStruct_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynUnion //////////////////////////////
//////////////////////////////////////////////////////////////////////
class DynUnion;
typedef DynUnion* DynUnion_ptr;
class DynUnion : public virtual DynAny {
public:
typedef DynUnion_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynUnion> _var_type;
virtual DynAny_ptr get_discriminator() = 0;
virtual void set_discriminator(DynAny_ptr d) = 0;
virtual void set_to_default_member() = 0;
virtual void set_to_no_active_member() = 0;
virtual CORBA::Boolean has_no_active_member() = 0;
virtual CORBA::TCKind discriminator_kind() = 0;
virtual DynAny_ptr member() = 0;
virtual char* member_name() = 0;
virtual CORBA::TCKind member_kind() = 0;
virtual CORBA::Boolean is_set_to_default_member() = 0;
static DynUnion_ptr _duplicate(DynUnion_ptr);
static DynUnion_ptr _narrow(CORBA::Object_ptr);
static DynUnion_ptr _nil();
virtual ~DynUnion();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynUnion() {}
private:
DynUnion(const DynUnion&);
DynUnion& operator=(const DynUnion&);
};
typedef DynUnion::_var_type DynUnion_var;
typedef _CORBA_PseudoObj_Member<DynUnion,DynUnion_var> DynUnion_member;
typedef _CORBA_PseudoObj_Out<DynUnion,DynUnion_var> DynUnion_out;
//////////////////////////////////////////////////////////////////////
///////////////////////////// DynSequence ////////////////////////////
//////////////////////////////////////////////////////////////////////
// Generated code for AnySeq
class AnySeq_var;
class AnySeq : public _CORBA_Unbounded_Sequence< CORBA::Any> {
public:
typedef AnySeq_var _var_type;
inline AnySeq() {}
inline AnySeq(const AnySeq& s)
: _CORBA_Unbounded_Sequence< CORBA::Any> (s) {}
inline AnySeq(_CORBA_ULong _max)
: _CORBA_Unbounded_Sequence< CORBA::Any> (_max) {}
inline AnySeq(_CORBA_ULong _max, _CORBA_ULong _len, CORBA::Any* _val, _CORBA_Boolean _rel=0)
: _CORBA_Unbounded_Sequence< CORBA::Any> (_max, _len, _val, _rel) {}
inline AnySeq& operator = (const AnySeq& s) {
_CORBA_Unbounded_Sequence< CORBA::Any> ::operator=(s);
return *this;
}
};
class AnySeq_out;
class AnySeq_var {
public:
typedef AnySeq T;
typedef AnySeq_var T_var;
inline AnySeq_var() : _pd_seq(0) {}
inline AnySeq_var(T* s) : _pd_seq(s) {}
inline AnySeq_var(const T_var& s) {
if( s._pd_seq ) _pd_seq = new T(*s._pd_seq);
else _pd_seq = 0;
}
inline ~AnySeq_var() { if( _pd_seq ) delete _pd_seq; }
inline T_var& operator = (T* s) {
if( _pd_seq ) delete _pd_seq;
_pd_seq = s;
return *this;
}
inline T_var& operator = (const T_var& s) {
if( s._pd_seq ) {
if( !_pd_seq ) _pd_seq = new T;
*_pd_seq = *s._pd_seq;
} else if( _pd_seq ) {
delete _pd_seq;
_pd_seq = 0;
}
return *this;
}
inline CORBA::Any& operator [] (_CORBA_ULong s) {
return (*_pd_seq)[s];
}
inline T* operator -> () { return _pd_seq; }
#if defined(__GNUG__)
inline operator T& () const { return *_pd_seq; }
#else
inline operator const T& () const { return *_pd_seq; }
inline operator T& () { return *_pd_seq; }
#endif
inline const T& in() const { return *_pd_seq; }
inline T& inout() { return *_pd_seq; }
inline T*& out() {
if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
return _pd_seq;
}
inline T* _retn() { T* tmp = _pd_seq; _pd_seq = 0; return tmp; }
friend class AnySeq_out;
private:
T* _pd_seq;
};
class AnySeq_out {
public:
typedef AnySeq T;
typedef AnySeq_var T_var;
inline AnySeq_out(T*& s) : _data(s) { _data = 0; }
inline AnySeq_out(T_var& s)
: _data(s._pd_seq) { s = (T*) 0; }
inline AnySeq_out(const AnySeq_out& s) : _data(s._data) {}
inline AnySeq_out& operator = (const AnySeq_out& s) {
_data = s._data;
return *this;
} inline AnySeq_out& operator = (T* s) {
_data = s;
return *this;
}
inline operator T*&() { return _data; }
inline T*& ptr() { return _data; }
inline T* operator->() { return _data; }
inline CORBA::Any& operator [] (_CORBA_ULong i) {
return (*_data)[i];
}
T*& _data;
private:
AnySeq_out();
AnySeq_out& operator=(const T_var&);
};
// End of generated code
// Generated code for DynAnySeq
class DynAnySeq_var;
class DynAnySeq : public _CORBA_Unbounded_Sequence_ObjRef< DynAny, _CORBA_ObjRef_Element< DynAny, DynAny_Helper> , DynAny_Helper> {
public:
typedef DynAnySeq_var _var_type;
inline DynAnySeq() {}
inline DynAnySeq(const DynAnySeq& s)
: _CORBA_Unbounded_Sequence_ObjRef< DynAny, _CORBA_ObjRef_Element< DynAny, DynAny_Helper> , DynAny_Helper> (s) {}
inline DynAnySeq(_CORBA_ULong _max)
: _CORBA_Unbounded_Sequence_ObjRef< DynAny, _CORBA_ObjRef_Element< DynAny, DynAny_Helper> , DynAny_Helper> (_max) {}
inline DynAnySeq(_CORBA_ULong _max, _CORBA_ULong _len, DynAny_ptr* _val, _CORBA_Boolean _rel=0)
: _CORBA_Unbounded_Sequence_ObjRef< DynAny, _CORBA_ObjRef_Element< DynAny, DynAny_Helper> , DynAny_Helper> (_max, _len, _val, _rel) {}
inline DynAnySeq& operator = (const DynAnySeq& s) {
_CORBA_Unbounded_Sequence_ObjRef< DynAny, _CORBA_ObjRef_Element< DynAny, DynAny_Helper> , DynAny_Helper> ::operator=(s);
return *this;
}
};
class DynAnySeq_out;
class DynAnySeq_var {
public:
typedef DynAnySeq T;
typedef DynAnySeq_var T_var;
inline DynAnySeq_var() : _pd_seq(0) {}
inline DynAnySeq_var(T* s) : _pd_seq(s) {}
inline DynAnySeq_var(const T_var& s) {
if( s._pd_seq ) _pd_seq = new T(*s._pd_seq);
else _pd_seq = 0;
}
inline ~DynAnySeq_var() { if( _pd_seq ) delete _pd_seq; }
inline T_var& operator = (T* s) {
if( _pd_seq ) delete _pd_seq;
_pd_seq = s;
return *this;
}
inline T_var& operator = (const T_var& s) {
if( s._pd_seq ) {
if( !_pd_seq ) _pd_seq = new T;
*_pd_seq = *s._pd_seq;
} else if( _pd_seq ) {
delete _pd_seq;
_pd_seq = 0;
}
return *this;
}
inline _CORBA_ObjRef_Element< DynAny, DynAny_Helper> operator [] (_CORBA_ULong s) {
return (*_pd_seq)[s];
}
inline T* operator -> () { return _pd_seq; }
#if defined(__GNUG__)
inline operator T& () const { return *_pd_seq; }
#else
inline operator const T& () const { return *_pd_seq; }
inline operator T& () { return *_pd_seq; }
#endif
inline const T& in() const { return *_pd_seq; }
inline T& inout() { return *_pd_seq; }
inline T*& out() {
if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
return _pd_seq;
}
inline T* _retn() { T* tmp = _pd_seq; _pd_seq = 0; return tmp; }
friend class DynAnySeq_out;
private:
T* _pd_seq;
};
class DynAnySeq_out {
public:
typedef DynAnySeq T;
typedef DynAnySeq_var T_var;
inline DynAnySeq_out(T*& s) : _data(s) { _data = 0; }
inline DynAnySeq_out(T_var& s)
: _data(s._pd_seq) { s = (T*) 0; }
inline DynAnySeq_out(const DynAnySeq_out& s) : _data(s._data) {}
inline DynAnySeq_out& operator = (const DynAnySeq_out& s) {
_data = s._data;
return *this;
} inline DynAnySeq_out& operator = (T* s) {
_data = s;
return *this;
}
inline operator T*&() { return _data; }
inline T*& ptr() { return _data; }
inline T* operator->() { return _data; }
inline _CORBA_ObjRef_Element< DynAny, DynAny_Helper> operator [] (_CORBA_ULong i) {
return (*_data)[i];
}
T*& _data;
private:
DynAnySeq_out();
DynAnySeq_out& operator=(const T_var&);
};
// End of generated code
class DynSequence;
typedef DynSequence* DynSequence_ptr;
class DynSequence : public virtual DynAny {
public:
typedef DynSequence_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynSequence> _var_type;
virtual CORBA::ULong get_length() = 0;
virtual void set_length (CORBA::ULong len) = 0;
virtual AnySeq* get_elements() = 0;
virtual void set_elements(const AnySeq& value) = 0;
virtual DynAnySeq* get_elements_as_dyn_any() = 0;
virtual void set_elements_as_dyn_any(const DynAnySeq& value) = 0;
static DynSequence_ptr _duplicate(DynSequence_ptr);
static DynSequence_ptr _narrow(CORBA::Object_ptr);
static DynSequence_ptr _nil();
virtual ~DynSequence();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynSequence() {}
private:
DynSequence(const DynSequence&);
DynSequence& operator=(const DynSequence&);
};
typedef DynSequence::_var_type DynSequence_var;
typedef _CORBA_PseudoObj_Member<DynSequence,DynSequence_var>
DynSequence_member;
typedef _CORBA_PseudoObj_Out<DynSequence,DynSequence_var> DynSequence_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynArray //////////////////////////////
//////////////////////////////////////////////////////////////////////
class DynArray;
typedef DynArray* DynArray_ptr;
class DynArray : public virtual DynAny {
public:
typedef DynArray_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynArray> _var_type;
virtual AnySeq* get_elements() = 0;
virtual void set_elements(const AnySeq& value) = 0;
virtual DynAnySeq* get_elements_as_dyn_any() = 0;
virtual void set_elements_as_dyn_any(const DynAnySeq& value) = 0;
static DynArray_ptr _duplicate(DynArray_ptr);
static DynArray_ptr _narrow(CORBA::Object_ptr);
static DynArray_ptr _nil();
virtual ~DynArray();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynArray() {}
private:
DynArray(const DynArray&);
DynArray& operator=(const DynArray&);
};
typedef DynArray::_var_type DynArray_var;
typedef _CORBA_PseudoObj_Member<DynArray,DynArray_var> DynArray_member;
typedef _CORBA_PseudoObj_Out<DynArray,DynArray_var> DynArray_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynValueCommon ////////////////////////
//////////////////////////////////////////////////////////////////////
class DynValueCommon;
typedef DynValueCommon* DynValueCommon_ptr;
class DynValueCommon : public virtual DynAny {
public:
typedef DynValueCommon_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynValueCommon> _var_type;
virtual CORBA::Boolean is_null() = 0;
virtual void set_to_null() = 0;
virtual void set_to_value() = 0;
static DynValueCommon_ptr _duplicate(DynValueCommon_ptr);
static DynValueCommon_ptr _narrow(CORBA::Object_ptr);
static DynValueCommon_ptr _nil();
virtual ~DynValueCommon();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynValueCommon() {}
private:
DynValueCommon(const DynValueCommon&);
DynValueCommon& operator=(const DynValueCommon&);
};
typedef DynValueCommon::_var_type DynValueCommon_var;
typedef _CORBA_PseudoObj_Member<DynValueCommon,DynValueCommon_var> DynValueCommon_member;
typedef _CORBA_PseudoObj_Out<DynValueCommon,DynValueCommon_var> DynValueCommon_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynValue //////////////////////////////
//////////////////////////////////////////////////////////////////////
class DynValue;
typedef DynValue* DynValue_ptr;
class DynValue : public virtual DynValueCommon {
public:
typedef DynValue_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynValue> _var_type;
virtual char* current_member_name() = 0;
virtual CORBA::TCKind current_member_kind() = 0;
virtual NameValuePairSeq* get_members() = 0;
virtual void set_members(const NameValuePairSeq& value) = 0;
virtual NameDynAnyPairSeq* get_members_as_dyn_any() = 0;
virtual void set_members_as_dyn_any(const NameDynAnyPairSeq& value) = 0;
static DynValue_ptr _duplicate(DynValue_ptr);
static DynValue_ptr _narrow(CORBA::Object_ptr);
static DynValue_ptr _nil();
virtual ~DynValue();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynValue() {}
private:
DynValue(const DynValue&);
DynValue& operator=(const DynValue&);
};
typedef DynValue::_var_type DynValue_var;
typedef _CORBA_PseudoObj_Member<DynValue,DynValue_var> DynValue_member;
typedef _CORBA_PseudoObj_Out<DynValue,DynValue_var> DynValue_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynValueBox ///////////////////////////
//////////////////////////////////////////////////////////////////////
class DynValueBox;
typedef DynValueBox* DynValueBox_ptr;
class DynValueBox : public virtual DynValueCommon {
public:
typedef DynValueBox_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynValueBox> _var_type;
virtual CORBA::Any* get_boxed_value() = 0;
virtual void set_boxed_value(const CORBA::Any& value) = 0;
virtual DynAny_ptr get_boxed_value_as_dyn_any() = 0;
virtual void set_boxed_value_as_dyn_any(DynAny_ptr value) = 0;
static DynValueBox_ptr _duplicate(DynValueBox_ptr);
static DynValueBox_ptr _narrow(CORBA::Object_ptr);
static DynValueBox_ptr _nil();
virtual ~DynValueBox();
virtual void* _ptrToObjRef(const char* repoId) = 0;
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
protected:
DynValueBox() {}
private:
DynValueBox(const DynValueBox&);
DynValueBox& operator=(const DynValueBox&);
};
typedef DynValueBox::_var_type DynValueBox_var;
typedef _CORBA_PseudoObj_Member<DynValueBox,DynValueBox_var> DynValueBox_member;
typedef _CORBA_PseudoObj_Out<DynValueBox,DynValueBox_var> DynValueBox_out;
//////////////////////////////////////////////////////////////////////
////////////////////////////// DynAnyFactory /////////////////////////
//////////////////////////////////////////////////////////////////////
class DynAnyFactory;
typedef DynAnyFactory* DynAnyFactory_ptr;
class DynAnyFactory : public CORBA::Object {
public:
typedef DynAnyFactory_ptr _ptr_type;
typedef _CORBA_PseudoObj_Var<DynAnyFactory> _var_type;
OMNIORB_DECLARE_USER_EXCEPTION(InconsistentTypeCode, _dyn_attr)
// IDL defined functions
virtual DynAny_ptr create_dyn_any(const CORBA::Any& value) = 0;
virtual DynAny_ptr create_dyn_any_from_type_code(CORBA::TypeCode_ptr type) = 0;
static DynAnyFactory_ptr _duplicate(DynAnyFactory_ptr);
static DynAnyFactory_ptr _narrow(CORBA::Object_ptr);
static DynAnyFactory_ptr _nil();
// omniORB internal.
static _dyn_attr const char* _PD_repoId;
virtual void* _ptrToObjRef(const char* repoId) = 0;
inline DynAnyFactory(int is_nil = 0) {
if (is_nil)
_PR_setobj((omniObjRef*)0);
else
_PR_setobj((omniObjRef*)1);
}
virtual ~DynAnyFactory();
private:
DynAnyFactory(const DynAnyFactory&);
DynAnyFactory& operator=(const DynAnyFactory&);
};
typedef DynAnyFactory::_var_type DynAnyFactory_var;
typedef _CORBA_PseudoObj_Member<DynAnyFactory,DynAnyFactory_var> DynAnyFactory_member;
typedef _CORBA_PseudoObj_Out<DynAnyFactory,DynAnyFactory_var> DynAnyFactory_out;
_CORBA_MODULE_END // DynamicAny
#endif // __OMNIDYNANY_H__
|