diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-10 20:11:27 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-10 20:11:27 +0000 |
commit | aa6cc6a4bd7ecceee8deb92569d4eeee416ee39c (patch) | |
tree | 20439f1189f8fda0f0d2293e3fec9e1d18380470 /TAO/tao/Any.h | |
parent | 866adb68eb610d635bc5137aff59dcc399383b0b (diff) | |
download | ATCD-aa6cc6a4bd7ecceee8deb92569d4eeee416ee39c.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/tao/Any.h')
-rw-r--r-- | TAO/tao/Any.h | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/TAO/tao/Any.h b/TAO/tao/Any.h index 8090234c727..e4e6318527b 100644 --- a/TAO/tao/Any.h +++ b/TAO/tao/Any.h @@ -72,9 +72,11 @@ public: CORBA::Boolean any_owns_data = 0); // Constructor. The any_owns_data flag determines if the Any owns the value + // = TAO extension CORBA_Any (CORBA::TypeCode_ptr type, const ACE_Message_Block* mb); - // Constructor. Used by DynAny to compose/decompose complex types using a CDR. + // Constructor. Used by DynAny to compose/decompose + // complex types using a CDR. CORBA_Any (const CORBA_Any &a); // Copy constructor. @@ -238,19 +240,27 @@ public: void replace (CORBA::TypeCode_ptr type, const void *value, CORBA::Boolean any_owns_data, - CORBA_Environment &TAO_IN_ENV = CORBA::default_environment ()); + CORBA_Environment &TAO_IN_ENV = + CORBA::default_environment ()); // Replace the current typecode and data with the specified one - // unsafe. void replace (CORBA::TypeCode_ptr type, const void *value, - CORBA_Environment &TAO_IN_ENV = CORBA::default_environment ()); + CORBA_Environment &TAO_IN_ENV = + CORBA::default_environment ()); // Replace the current typecode and data with the specified one - // unsafe. This uses a default value for the "any_owns_data" parameter CORBA::TypeCode_ptr type (void) const; // Return TypeCode of the element stored in the Any. + void type (CORBA::TypeCode_ptr type, + CORBA_Environment &TAO_IN_ENV = + CORBA::default_environment ()); + // For use along with <<= of a value of aliased type when the alias must + // be preserved. + const void *value (void) const; // Returns 0 if the Any has not been assigned a value, following the // CORBA spec (ORBOS/98-01-11) it returns a non-zero value @@ -263,7 +273,7 @@ public: // Prints the type and the value of the any value. Dumping is // supported only for standard data types. - // =TAO extension + // = TAO extensions CORBA::Boolean any_owns_data (void) const; // does the Any own the data or not. This is used by the >>= // operators generated by the IDL compiler. The >>= operator checks @@ -272,7 +282,14 @@ public: // will have to decode the cdr string. ACE_Message_Block* _tao_get_cdr (void) const; - // CDR accessor. + // Message block accessor. + + void _tao_replace (CORBA::TypeCode_ptr, + const ACE_Message_Block *mb, + CORBA::Boolean any_owns_data, + CORBA::Environment &TAO_IN_ENV = + CORBA::default_environment ()); + // Replace via message block instead of <value_>. protected: void free_value (CORBA::Environment &TAO_IN_ENV); @@ -356,8 +373,8 @@ class TAO_Export CORBA_Any_out // CORBA_Any_out // // = DESCRIPTION - // The _out class for CORBA_Any. This is used to help in managing the out - // parameters. + // The _out class for CORBA_Any. This is used to help in + // managing the out parameters. public: // = operations. |