TAO_DynamicAny  2.0.8
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions
TAO_DynCommon Class Reference

#include <DynCommon.h>

Inheritance diagram for TAO_DynCommon:
Inheritance graph
[legend]
Collaboration diagram for TAO_DynCommon:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_DynCommon (CORBA::Boolean allow_truncation)
 Constructor.
virtual ~TAO_DynCommon (void)
 Destructor.
virtual CORBA::TypeCode_ptr type (void)
virtual void assign (DynamicAny::DynAny_ptr dyn_any)
virtual void insert_boolean (CORBA::Boolean value)
virtual void insert_octet (CORBA::Octet value)
virtual void insert_char (CORBA::Char value)
virtual void insert_short (CORBA::Short value)
virtual void insert_ushort (CORBA::UShort value)
virtual void insert_long (CORBA::Long value)
virtual void insert_ulong (CORBA::ULong value)
virtual void insert_float (CORBA::Float value)
virtual void insert_double (CORBA::Double value)
virtual void insert_string (const char *value)
virtual void insert_reference (CORBA::Object_ptr value)
virtual void insert_typecode (CORBA::TypeCode_ptr value)
virtual void insert_longlong (CORBA::LongLong value)
virtual void insert_ulonglong (CORBA::ULongLong value)
virtual void insert_longdouble (CORBA::LongDouble value)
virtual void insert_wchar (CORBA::WChar value)
virtual void insert_wstring (const CORBA::WChar *value)
virtual void insert_any (const CORBA::Any &value)
virtual void insert_dyn_any (DynamicAny::DynAny_ptr value)
virtual void insert_val (CORBA::ValueBase *value)
virtual CORBA::Boolean get_boolean (void)
virtual CORBA::Octet get_octet (void)
virtual CORBA::Char get_char (void)
virtual CORBA::Short get_short (void)
virtual CORBA::UShort get_ushort (void)
virtual CORBA::Long get_long (void)
virtual CORBA::ULong get_ulong (void)
virtual CORBA::Float get_float (void)
virtual CORBA::Double get_double (void)
virtual char * get_string (void)
virtual CORBA::Object_ptr get_reference (void)
virtual CORBA::TypeCode_ptr get_typecode (void)
virtual CORBA::LongLong get_longlong (void)
virtual CORBA::ULongLong get_ulonglong (void)
virtual CORBA::LongDouble get_longdouble (void)
virtual CORBA::WChar get_wchar (void)
virtual CORBA::WCharget_wstring (void)
virtual CORBA::Any * get_any (void)
virtual DynamicAny::DynAny_ptr get_dyn_any (void)
virtual CORBA::ValueBase * get_val (void)
virtual CORBA::Boolean seek (CORBA::Long index)
virtual void rewind (void)
virtual CORBA::Boolean next (void)
virtual DynamicAny::DynAny_ptr copy (void)
virtual CORBA::ULong component_count (void)
virtual void insert_abstract (CORBA::AbstractBase_ptr value)
virtual CORBA::AbstractBase_ptr get_abstract (void)
virtual void insert_boolean_seq (const CORBA::BooleanSeq &value)
virtual void insert_octet_seq (const CORBA::OctetSeq &value)
virtual void insert_char_seq (const CORBA::CharSeq &value)
virtual void insert_short_seq (const CORBA::ShortSeq &value)
virtual void insert_ushort_seq (const CORBA::UShortSeq &value)
virtual void insert_long_seq (const CORBA::LongSeq &value)
virtual void insert_ulong_seq (const CORBA::ULongSeq &value)
virtual void insert_float_seq (const CORBA::FloatSeq &value)
virtual void insert_double_seq (const CORBA::DoubleSeq &value)
virtual void insert_longlong_seq (const CORBA::LongLongSeq &value)
virtual void insert_ulonglong_seq (const CORBA::ULongLongSeq &value)
virtual void insert_longdouble_seq (const CORBA::LongDoubleSeq &value)
virtual void insert_wchar_seq (const CORBA::WCharSeq &value)
virtual CORBA::BooleanSeqget_boolean_seq (void)
virtual CORBA::OctetSeqget_octet_seq (void)
virtual CORBA::CharSeqget_char_seq (void)
virtual CORBA::ShortSeqget_short_seq (void)
virtual CORBA::UShortSeqget_ushort_seq (void)
virtual CORBA::LongSeqget_long_seq (void)
virtual CORBA::ULongSeqget_ulong_seq (void)
virtual CORBA::FloatSeqget_float_seq (void)
virtual CORBA::DoubleSeqget_double_seq (void)
virtual CORBA::LongLongSeqget_longlong_seq (void)
virtual CORBA::ULongLongSeqget_ulonglong_seq (void)
virtual CORBA::LongDoubleSeqget_longdouble_seq (void)
virtual CORBA::WCharSeqget_wchar_seq (void)
void set_flag (DynamicAny::DynAny_ptr component, CORBA::Boolean destroying)
DynamicAny::DynAny_ptr check_component (CORBA::Boolean isValueType=false)
void check_type (CORBA::TypeCode_ptr tc)
CORBA::Boolean has_components (void) const
CORBA::Boolean destroyed (void) const
CORBA::Any & the_any (void)
void container_is_destroying (CORBA::Boolean val)
void ref_to_component (CORBA::Boolean val)

Static Public Member Functions

static bool is_basic_type_seq (CORBA::TypeCode_ptr tc)

Protected Attributes

CORBA::Boolean ref_to_component_
 Were we created by current_component()?
CORBA::Boolean container_is_destroying_
 Flag to let destroy() call by container override the flag above.
CORBA::Boolean has_components_
 Do we contain other Dynamic Anys?
CORBA::Boolean destroyed_
 Has destroy() been called on us yet?
CORBA::Long current_position_
 Slot of the current component (if any).
CORBA::ULong component_count_
 Number of components, as defined by CORBA 2.4.2.
CORBA::TypeCode_var type_
 Holder for our type code.
CORBA::Any any_
CORBA::Boolean allow_truncation_
 Are we allowed to truncate any valuetypes in our hyarchy?

Private Member Functions

CORBA::TypeCode_ptr check_type_and_unalias (CORBA::TypeCode_ptr tc)

Detailed Description

Contains most of the functionality common to all the Dynamic Any implementation classes.


Constructor & Destructor Documentation

TAO_DynCommon::TAO_DynCommon ( CORBA::Boolean  allow_truncation)

Constructor.

TAO_DynCommon::~TAO_DynCommon ( void  ) [virtual]

Destructor.


Member Function Documentation

void TAO_DynCommon::assign ( DynamicAny::DynAny_ptr  dyn_any) [virtual]
DynamicAny::DynAny_ptr TAO_DynCommon::check_component ( CORBA::Boolean  isValueType = false)
void TAO_DynCommon::check_type ( CORBA::TypeCode_ptr  tc)
CORBA::TypeCode_ptr TAO_DynCommon::check_type_and_unalias ( CORBA::TypeCode_ptr  tc) [private]
CORBA::ULong TAO_DynCommon::component_count ( void  ) [virtual]

Implements DynamicAny::DynAny.

void TAO_DynCommon::container_is_destroying ( CORBA::Boolean  val)
DynamicAny::DynAny_ptr TAO_DynCommon::copy ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Boolean TAO_DynCommon::destroyed ( void  ) const
CORBA::AbstractBase_ptr TAO_DynCommon::get_abstract ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Any_ptr TAO_DynCommon::get_any ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Boolean TAO_DynCommon::get_boolean ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::BooleanSeq * TAO_DynCommon::get_boolean_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Char TAO_DynCommon::get_char ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::CharSeq * TAO_DynCommon::get_char_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Double TAO_DynCommon::get_double ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::DoubleSeq * TAO_DynCommon::get_double_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

DynamicAny::DynAny_ptr TAO_DynCommon::get_dyn_any ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Float TAO_DynCommon::get_float ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::FloatSeq * TAO_DynCommon::get_float_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Long TAO_DynCommon::get_long ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::LongSeq * TAO_DynCommon::get_long_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::LongDouble TAO_DynCommon::get_longdouble ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::LongDoubleSeq * TAO_DynCommon::get_longdouble_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::LongLong TAO_DynCommon::get_longlong ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::LongLongSeq * TAO_DynCommon::get_longlong_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Octet TAO_DynCommon::get_octet ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::OctetSeq * TAO_DynCommon::get_octet_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Object_ptr TAO_DynCommon::get_reference ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Short TAO_DynCommon::get_short ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::ShortSeq * TAO_DynCommon::get_short_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

char * TAO_DynCommon::get_string ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::TypeCode_ptr TAO_DynCommon::get_typecode ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::ULong TAO_DynCommon::get_ulong ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::ULongSeq * TAO_DynCommon::get_ulong_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::ULongLong TAO_DynCommon::get_ulonglong ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::ULongLongSeq * TAO_DynCommon::get_ulonglong_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::UShort TAO_DynCommon::get_ushort ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::UShortSeq * TAO_DynCommon::get_ushort_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::ValueBase * TAO_DynCommon::get_val ( void  ) [virtual]

Implements DynamicAny::DynAny.

Reimplemented in TAO_DynValue_i.

CORBA::WChar TAO_DynCommon::get_wchar ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::WCharSeq * TAO_DynCommon::get_wchar_seq ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::WChar * TAO_DynCommon::get_wstring ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Boolean TAO_DynCommon::has_components ( void  ) const
void TAO_DynCommon::insert_abstract ( CORBA::AbstractBase_ptr  value) [virtual]
void TAO_DynCommon::insert_any ( const CORBA::Any &  value) [virtual]
void TAO_DynCommon::insert_boolean ( CORBA::Boolean  value) [virtual]
void TAO_DynCommon::insert_boolean_seq ( const CORBA::BooleanSeq value) [virtual]
void TAO_DynCommon::insert_char ( CORBA::Char  value) [virtual]
void TAO_DynCommon::insert_char_seq ( const CORBA::CharSeq value) [virtual]
void TAO_DynCommon::insert_double ( CORBA::Double  value) [virtual]
void TAO_DynCommon::insert_double_seq ( const CORBA::DoubleSeq value) [virtual]
void TAO_DynCommon::insert_dyn_any ( DynamicAny::DynAny_ptr  value) [virtual]
void TAO_DynCommon::insert_float ( CORBA::Float  value) [virtual]
void TAO_DynCommon::insert_float_seq ( const CORBA::FloatSeq value) [virtual]
void TAO_DynCommon::insert_long ( CORBA::Long  value) [virtual]
void TAO_DynCommon::insert_long_seq ( const CORBA::LongSeq value) [virtual]
void TAO_DynCommon::insert_longdouble ( CORBA::LongDouble  value) [virtual]
void TAO_DynCommon::insert_longdouble_seq ( const CORBA::LongDoubleSeq value) [virtual]
void TAO_DynCommon::insert_longlong ( CORBA::LongLong  value) [virtual]
void TAO_DynCommon::insert_longlong_seq ( const CORBA::LongLongSeq value) [virtual]
void TAO_DynCommon::insert_octet ( CORBA::Octet  value) [virtual]
void TAO_DynCommon::insert_octet_seq ( const CORBA::OctetSeq value) [virtual]
void TAO_DynCommon::insert_reference ( CORBA::Object_ptr  value) [virtual]
void TAO_DynCommon::insert_short ( CORBA::Short  value) [virtual]
void TAO_DynCommon::insert_short_seq ( const CORBA::ShortSeq value) [virtual]
void TAO_DynCommon::insert_string ( const char *  value) [virtual]

Implements DynamicAny::DynAny.

void TAO_DynCommon::insert_typecode ( CORBA::TypeCode_ptr  value) [virtual]
void TAO_DynCommon::insert_ulong ( CORBA::ULong  value) [virtual]
void TAO_DynCommon::insert_ulong_seq ( const CORBA::ULongSeq value) [virtual]
void TAO_DynCommon::insert_ulonglong ( CORBA::ULongLong  value) [virtual]
void TAO_DynCommon::insert_ulonglong_seq ( const CORBA::ULongLongSeq value) [virtual]
void TAO_DynCommon::insert_ushort ( CORBA::UShort  value) [virtual]
void TAO_DynCommon::insert_ushort_seq ( const CORBA::UShortSeq value) [virtual]
void TAO_DynCommon::insert_val ( CORBA::ValueBase *  value) [virtual]

Reimplemented in TAO_DynValue_i.

void TAO_DynCommon::insert_wchar ( CORBA::WChar  value) [virtual]
void TAO_DynCommon::insert_wchar_seq ( const CORBA::WCharSeq value) [virtual]
void TAO_DynCommon::insert_wstring ( const CORBA::WChar value) [virtual]
bool TAO_DynCommon::is_basic_type_seq ( CORBA::TypeCode_ptr  tc) [static]
CORBA::Boolean TAO_DynCommon::next ( void  ) [virtual]

Implements DynamicAny::DynAny.

void TAO_DynCommon::ref_to_component ( CORBA::Boolean  val)
void TAO_DynCommon::rewind ( void  ) [virtual]

Implements DynamicAny::DynAny.

CORBA::Boolean TAO_DynCommon::seek ( CORBA::Long  index) [virtual]
void TAO_DynCommon::set_flag ( DynamicAny::DynAny_ptr  component,
CORBA::Boolean  destroying 
)

This sets one of two flags in this base class. CORBA 2.4.2 requires that destroy() do nothing if it is called on the result of current_component(), the only non-deep-copying method in the Dynamic Any API. If the boolean arg below is 0, the call is from inside current_component(), and the flag ref_to_component_ is set. If the boolean arg is 1, the call is from inside destroy(), and the container_is_destroying_ flag is set, overriding the first flag in the component's destroy() method.

CORBA::Any & TAO_DynCommon::the_any ( void  )
CORBA::TypeCode_ptr TAO_DynCommon::type ( void  ) [virtual]

Implements DynamicAny::DynAny.


Member Data Documentation

Are we allowed to truncate any valuetypes in our hyarchy?

CORBA::Any TAO_DynCommon::any_ [protected]

Gets a value only for basic types, but used in insert_* and get_*, defined in this base class.

Number of components, as defined by CORBA 2.4.2.

Flag to let destroy() call by container override the flag above.

Slot of the current component (if any).

Has destroy() been called on us yet?

Do we contain other Dynamic Anys?

Were we created by current_component()?

Holder for our type code.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines