diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-26 23:24:00 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-03-26 23:24:00 +0000 |
commit | edc0808e2d272a74522f8f480a433396f7b0897f (patch) | |
tree | 5e44c350c6aab15a314f4543a1c0abf56b6c3208 /TAO/tao/Marshal.i | |
parent | 3ed5ed3ee7f8824466cf3534e639904976178c7d (diff) | |
download | ATCD-edc0808e2d272a74522f8f480a433396f7b0897f.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE-4_4_36'.ACE-4_4_36
Diffstat (limited to 'TAO/tao/Marshal.i')
-rw-r--r-- | TAO/tao/Marshal.i | 288 |
1 files changed, 0 insertions, 288 deletions
diff --git a/TAO/tao/Marshal.i b/TAO/tao/Marshal.i deleted file mode 100644 index fc44da1b79c..00000000000 --- a/TAO/tao/Marshal.i +++ /dev/null @@ -1,288 +0,0 @@ -ACE_INLINE -TAO_Marshal_Object::TAO_Marshal_Object (void) -{ -} - -ACE_INLINE -TAO_Marshal_Object::~TAO_Marshal_Object (void) -{ -} - -ACE_INLINE -TAO_Marshal_Primitive::TAO_Marshal_Primitive (void) -{ -} - -ACE_INLINE -TAO_Marshal_Primitive::~TAO_Marshal_Primitive (void) -{ -} - -ACE_INLINE -TAO_Marshal_Any::TAO_Marshal_Any (void) -{ -} - -ACE_INLINE -TAO_Marshal_Any::~TAO_Marshal_Any (void) -{ -} - -ACE_INLINE -TAO_Marshal_Principal::TAO_Marshal_Principal (void) -{ -} - -ACE_INLINE -TAO_Marshal_Principal::~TAO_Marshal_Principal (void) -{ -} - -ACE_INLINE -TAO_Marshal_TypeCode::TAO_Marshal_TypeCode (void) -{ -} - -ACE_INLINE -TAO_Marshal_TypeCode::~TAO_Marshal_TypeCode (void) -{ -} - -ACE_INLINE -TAO_Marshal_ObjRef::TAO_Marshal_ObjRef (void) -{ -} - -ACE_INLINE -TAO_Marshal_ObjRef::~TAO_Marshal_ObjRef (void) -{ -} - -ACE_INLINE -TAO_Marshal_Struct::TAO_Marshal_Struct (void) -{ -} - -ACE_INLINE -TAO_Marshal_Struct::~TAO_Marshal_Struct (void) -{ -} - -ACE_INLINE -TAO_Marshal_Union::TAO_Marshal_Union (void) -{ -} - -ACE_INLINE -TAO_Marshal_Union::~TAO_Marshal_Union (void) -{ -} - -ACE_INLINE -TAO_Marshal_String::TAO_Marshal_String (void) -{ -} - -ACE_INLINE -TAO_Marshal_String::~TAO_Marshal_String (void) -{ -} - -ACE_INLINE -TAO_Marshal_Sequence::TAO_Marshal_Sequence (void) -{ -} - -ACE_INLINE -TAO_Marshal_Sequence::~TAO_Marshal_Sequence (void) -{ -} - -ACE_INLINE -TAO_Marshal_Array::TAO_Marshal_Array (void) -{ -} - -ACE_INLINE -TAO_Marshal_Array::~TAO_Marshal_Array (void) -{ -} - -ACE_INLINE -TAO_Marshal_Alias::TAO_Marshal_Alias (void) -{ -} - -ACE_INLINE -TAO_Marshal_Alias::~TAO_Marshal_Alias (void) -{ -} - -ACE_INLINE -TAO_Marshal_Except::TAO_Marshal_Except (void) -{ -} - -ACE_INLINE -TAO_Marshal_Except::~TAO_Marshal_Except (void) -{ -} - -ACE_INLINE -TAO_Marshal_WString::TAO_Marshal_WString (void) -{ -} - -ACE_INLINE -TAO_Marshal_WString::~TAO_Marshal_WString (void) -{ -} - -// Factory method that returns the appropriate marshal object based on -// the kind of the typecode. -ACE_INLINE TAO_Marshal_Object * -TAO_Marshal_Factory::make_marshal_object (CORBA::TypeCode_ptr tc, - CORBA::Environment &env) -{ - if (tc && tc->kind_ >= 0 && tc->kind_ < CORBA::TC_KIND_COUNT) - return this->mobj_table_[tc->kind_].obj_; - else - { - env.exception (new CORBA::BAD_TYPECODE (CORBA::COMPLETED_NO)); - return 0; - } -} - -// the deep_copy methods - -// deep_copy for any -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_Any::deep_copy (CORBA::TypeCode_ptr, - const void *source, - const void *dest, - CORBA::Environment &) -{ - (void) new (dest) CORBA::Any (*(CORBA::Any *) source); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_copy for TypeCode -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_TypeCode::deep_copy (CORBA::TypeCode_ptr, - const void *source, - const void *dest, - CORBA::Environment &) -{ - if ((*(CORBA::TypeCode_ptr *) source) != 0) - dest = source; - else - dest = CORBA::_tc_null; - - ((CORBA::TypeCode_ptr) dest)->AddRef (); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_copy for ObjRef -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_ObjRef::deep_copy (CORBA::TypeCode_ptr, - const void *source, - const void *dest, - CORBA::Environment &) -{ - *(CORBA::Object_ptr *) dest = CORBA::Object::_duplicate (*(CORBA::Object_ptr *) - source); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_copy for string -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_String::deep_copy (CORBA::TypeCode_ptr, - const void *source, - const void *dest, - CORBA::Environment &) -{ - *(CORBA::String *) dest = CORBA::string_copy (*(CORBA::String *) source); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_copy for wstring -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_WString::deep_copy (CORBA::TypeCode_ptr, - const void *source, - const void *dest, - CORBA::Environment &) -{ - *(CORBA::WString *) dest = CORBA::wstring_copy (*(CORBA::WString *) source); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// *************** deep_free methods ****************** - -// deep_free for Any -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_Any::deep_free (CORBA::TypeCode_ptr, - const void *source, - const void *, - CORBA::Environment &) -{ - ((CORBA::Any *) source)->~CORBA_Any (); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_free for TypeCode -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_TypeCode::deep_free (CORBA::TypeCode_ptr, - const void *source, - const void *, - CORBA::Environment &) -{ - if ((*(CORBA::TypeCode_ptr *) source) != 0) - (*(CORBA::TypeCode_ptr *) source)->Release (); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_free for Principal -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_Principal::deep_free (CORBA::TypeCode_ptr, - const void *value, - const void *, - CORBA::Environment &) -{ - CORBA::release (*(CORBA::Principal_ptr *) value); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_free for ObjRef -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_ObjRef::deep_free (CORBA::TypeCode_ptr, - const void *source, - const void *, - CORBA::Environment &) -{ - CORBA::release (*(CORBA::Object_ptr *) source); - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_free for string -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_String::deep_free (CORBA::TypeCode_ptr, - const void *source, - const void *, - CORBA::Environment &) -{ - CORBA::string_free (*(CORBA::String *) source); - // *(CORBA::String *)source = 0; - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} - -// deep_free for wstring -ACE_INLINE CORBA::TypeCode::traverse_status -TAO_Marshal_WString::deep_free (CORBA::TypeCode_ptr, - const void *source, - const void *, - CORBA::Environment &) -{ - CORBA::wstring_free (*(CORBA::WString *) source); - *(CORBA::WString *)source = 0; - return CORBA::TypeCode::TRAVERSE_CONTINUE; -} |