#include <Objref_TypeCode_Static.h>
Public Member Functions | |
Objref (CORBA::TCKind kind, char const *id, char const *name) | |
Constructor. | |
TAO-specific @c CORBA::TypeCode Methods | |
Methods required by TAO's implementation of the
| |
virtual bool | tao_marshal (TAO_OutputCDR &cdr, CORBA::ULong offset) const |
Marshal this TypeCode into a CDR output stream. | |
virtual void | tao_duplicate (void) |
Increase the reference count on this TypeCode . | |
virtual void | tao_release (void) |
Decrease the reference count on this object. | |
@c TAO CORBA::TypeCode Template Methods | |
| |
Base_Attributes< char const * > | attributes_ |
Base attributes (id and name ). | |
virtual CORBA::Boolean | equal_i (CORBA::TypeCode_ptr tc) const |
Base attributes (id and name ). | |
virtual CORBA::Boolean | equivalent_i (CORBA::TypeCode_ptr tc) const |
Base attributes (id and name ). | |
virtual CORBA::TypeCode_ptr | get_compact_typecode_i (void) const |
Base attributes (id and name ). | |
virtual char const * | id_i (void) const |
Base attributes (id and name ). | |
virtual char const * | name_i (void) const |
Base attributes (id and name ). |
Definition at line 56 of file Objref_TypeCode_Static.h.
TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::Objref | ( | CORBA::TCKind | kind, | |
char const * | id, | |||
char const * | name | |||
) |
Constructor.
Definition at line 8 of file Objref_TypeCode_Static.inl.
: ::CORBA::TypeCode (kind) , ::TAO::Null_RefCount_Policy () , attributes_ (id, name) { }
CORBA::Boolean TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::equal_i | ( | CORBA::TypeCode_ptr | tc | ) | const [protected, virtual] |
Base attributes (id
and name
).
Implements CORBA::TypeCode.
Definition at line 58 of file Objref_TypeCode_Static.cpp.
{ // Equality has already been established in the // CORBA::TypeCode base class. return true; }
CORBA::Boolean TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::equivalent_i | ( | CORBA::TypeCode_ptr | tc | ) | const [protected, virtual] |
Base attributes (id
and name
).
Implements CORBA::TypeCode.
Definition at line 68 of file Objref_TypeCode_Static.cpp.
{ // Equivalence already verified in the base class // CORBA::TypeCode::equivalent() method. return true; }
CORBA::TypeCode_ptr TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::get_compact_typecode_i | ( | void | ) | const [protected, virtual] |
Base attributes (id
and name
).
Implements CORBA::TypeCode.
Definition at line 79 of file Objref_TypeCode_Static.cpp.
{ TAO_TypeCodeFactory_Adapter * const adapter = ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance ( TAO_ORB_Core::typecodefactory_adapter_name () ); if (adapter == 0) { throw ::CORBA::INTERNAL (); } if (this->kind_ == CORBA::tk_abstract_interface) { return adapter->create_abstract_interface_tc (this->attributes_.id (), "" /* empty name */); } else if (this->kind_ == CORBA::tk_component) { return adapter->create_component_tc (this->attributes_.id (), "" /* empty name */); } else if (this->kind_ == CORBA::tk_home) { return adapter->create_home_tc (this->attributes_.id (), "" /* empty name */); } else if (this->kind_ == CORBA::tk_local_interface) { return adapter->create_local_interface_tc (this->attributes_.id (), "" /* empty name */); } else if (this->kind_ == CORBA::tk_native) { return adapter->create_native_tc (this->attributes_.id (), "" /* empty name */); } else // CORBA::tk_objref { return adapter->create_interface_tc (this->attributes_.id (), "" /* empty name */); } }
char const * TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::id_i | ( | void | ) | const [protected, virtual] |
Base attributes (id
and name
).
Reimplemented from CORBA::TypeCode.
Definition at line 126 of file Objref_TypeCode_Static.cpp.
{ // Ownership is retained by the TypeCode, as required by the C++ // mapping. return this->attributes_.id (); }
char const * TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::name_i | ( | void | ) | const [protected, virtual] |
Base attributes (id
and name
).
Reimplemented from CORBA::TypeCode.
Definition at line 135 of file Objref_TypeCode_Static.cpp.
{ // Ownership is retained by the TypeCode, as required by the C++ // mapping. return this->attributes_.name (); }
void TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::tao_duplicate | ( | void | ) | [virtual] |
Increase the reference count on this TypeCode
.
Implements CORBA::TypeCode.
Definition at line 47 of file Objref_TypeCode_Static.cpp.
{ }
bool TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::tao_marshal | ( | TAO_OutputCDR & | cdr, | |
CORBA::ULong | offset | |||
) | const [virtual] |
Marshal this TypeCode
into a CDR output stream.
Marshal this TypeCode
into the cdr output CDR stream, excluding the TypeCode
kind. Existing cdr contents will not be altered. The marshaled TypeCode
will be appended to the given cdr CDR output stream.
cdr | Output CDR stream into which the TypeCode will be marshaled. | |
offset | Number of bytes currently in the output CDR stream, including the top-level TypeCode TCKind . This argument is useful for recursive TypeCodes . TypeCodes that contain other TypeCodes should pass an updated offset value to the marshaling operation for those contained TypeCodes . |
true
if marshaling was successful.CORBA::TypeCode
interface.Implements CORBA::TypeCode.
Definition at line 25 of file Objref_TypeCode_Static.cpp.
{ // A tk_objref TypeCode has a "complex" parameter list type (see // Table 15-2 in Section 15.3.5.1 "TypeCode" in the CDR section of // the CORBA specification), meaning that it must be marshaled into // a CDR encapsulation. // Create a CDR encapsulation. TAO_OutputCDR enc; return enc << TAO_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER) && enc << TAO_OutputCDR::from_string (this->attributes_.id (), 0) && enc << TAO_OutputCDR::from_string (this->attributes_.name (), 0) && cdr << static_cast<CORBA::ULong> (enc.total_length ()) && cdr.write_octet_array_mb (enc.begin ()); }
void TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::tao_release | ( | void | ) | [virtual] |
Decrease the reference count on this object.
Implements CORBA::TypeCode.
Definition at line 53 of file Objref_TypeCode_Static.cpp.
{ }
Base_Attributes<char const *> TAO::TypeCode::Objref< char const *, TAO::Null_RefCount_Policy >::attributes_ [protected] |
Base attributes (id
and name
).
Definition at line 103 of file Objref_TypeCode_Static.h.