summaryrefslogtreecommitdiff
path: root/TAO/tests/DynAny_Test/DynAny_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/DynAny_Test/DynAny_i.h')
-rw-r--r--TAO/tests/DynAny_Test/DynAny_i.h170
1 files changed, 0 insertions, 170 deletions
diff --git a/TAO/tests/DynAny_Test/DynAny_i.h b/TAO/tests/DynAny_Test/DynAny_i.h
deleted file mode 100644
index 94b25f721cd..00000000000
--- a/TAO/tests/DynAny_Test/DynAny_i.h
+++ /dev/null
@@ -1,170 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/DynAny_Test
-//
-// = FILENAME
-// DynAny_i.h
-//
-// = AUTHOR
-// Jeff Parsons <jp4@cs.wustl.edu>
-//
-// ============================================================================
-
-#if !defined (DYNANY_I_H)
-#define DYNANY_I_H
-
-#include "DynAnyS.h"
-
-class DynAny_i : public POA_DynAny
-{
-public:
- DynAny_i (CORBA_TypeCode_ptr tc);
- DynAny_i (const CORBA_Any& any);
- ~DynAny_i (void);
-
- void assign (DynAny_ptr dyn_any,
- CORBA::Environment &env);
- DynAny_ptr copy (CORBA::Environment &env);
- void destroy (CORBA::Environment &env);
- void from_any (const CORBA::Any& any,
- CORBA::Environment &env);
- CORBA::Any_ptr to_any (CORBA::Environment &env);
- CORBA::TypeCode_ptr type (CORBA::Environment &);
- DynAny_ptr current_component (CORBA::Environment &env);
- CORBA::Boolean next (CORBA::Environment &);
- CORBA::Boolean seek (CORBA::Long index,
- CORBA::Environment &);
- void rewind (CORBA::Environment &);
-
-
- void insert_boolean (CORBA::Boolean value,
- CORBA::Environment &env);
- void insert_octet (CORBA::Octet value,
- CORBA::Environment &env);
- void insert_char (CORBA::Char value,
- CORBA::Environment &env);
- void insert_short (CORBA::Short value,
- CORBA::Environment &env);
- void insert_ushort (CORBA::UShort value,
- CORBA::Environment &env);
- void insert_long (CORBA::Long value,
- CORBA::Environment &env);
- void insert_ulong (CORBA::ULong value,
- CORBA::Environment &env);
- void insert_float (CORBA::Float value,
- CORBA::Environment &env);
- void insert_double (CORBA::Double value,
- CORBA::Environment &env);
- void insert_string (char * value,
- CORBA::Environment &env);
- void insert_reference (CORBA::Object_ptr value,
- CORBA::Environment &env);
- void insert_typecode (CORBA::TypeCode_ptr value,
- CORBA::Environment &env);
- void insert_longlong (CORBA::LongLong value,
- CORBA::Environment &env);
- void insert_ulonglong (CORBA::ULongLong value,
- CORBA::Environment &env);
- void insert_wchar (CORBA::WChar value,
- CORBA::Environment &env);
- void insert_any (CORBA::Any& value,
- CORBA::Environment &env);
-
- CORBA::Boolean get_boolean (CORBA::Environment &env);
- CORBA::Octet get_octet (CORBA::Environment &env);
- CORBA::Char get_char (CORBA::Environment &env);
- CORBA::Short get_short (CORBA::Environment &env);
- CORBA::UShort get_ushort (CORBA::Environment &env);
- CORBA::Long get_long (CORBA::Environment &env);
- CORBA::ULong get_ulong (CORBA::Environment &env);
- CORBA::Float get_float (CORBA::Environment &env);
- CORBA::Double get_double (CORBA::Environment &env);
- char * get_string (CORBA::Environment &env);
- CORBA::Object_ptr get_reference (CORBA::Environment &env);
- CORBA::TypeCode_ptr get_typecode (CORBA::Environment &env);
- CORBA::LongLong get_longlong (CORBA::Environment &env);
- CORBA::ULongLong get_ulonglong (CORBA::Environment &env);
- CORBA::WChar get_wchar (CORBA::Environment &env);
- CORBA::Any_ptr get_any (CORBA::Environment &env);
-
-//**************************** "ORB" *********************************
-
-// Exception thrown by the ORB "create" functions.
-
-#if !defined (_DYNANY_INCONSISTENTTYPECODE_CH_)
-#define _DYNANY_INCONSISTENTTYPECODE_CH_
-
- class InconsistentTypeCode : public CORBA::UserException
- {
- public:
- InconsistentTypeCode (void);
- // default ctor
- InconsistentTypeCode (const InconsistentTypeCode &);
- // copy ctor
- ~InconsistentTypeCode (void);
- // dtor
-
- InconsistentTypeCode& operator= (const InconsistentTypeCode &);
-
-
- virtual void _raise (void);
-
- static InconsistentTypeCode* _narrow (CORBA::Exception *);
-
-
- // = TAO extension
- static CORBA::Exception* _alloc (void);
-
- }; // exception DynAny::InconsistentTypeCode
-
- static CORBA::TypeCode_ptr _tc_InconsistentTypeCode;
- typedef InconsistentTypeCode* InconsistentTypeCode_ptr;
-
-
-#endif /* end #if !defined */
-
-/////////////////////////////////////////////////////////////////////////////
-// The ORB "create" functions will call these so we don't need to
-// keep an orb pointer in each DynAny object.
-
- static DynAny_ptr create_dyn_any (const CORBA_Any& any,
- CORBA::Environment& env);
-
- static DynAny_ptr create_basic_dyn_any (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
- static DynStruct_ptr create_dyn_struct (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
- static DynSequence_ptr create_dyn_sequence (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
- static DynArray_ptr create_dyn_array (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
- static DynUnion_ptr create_dyn_union (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
- static DynEnum_ptr create_dyn_enum (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
- // An extra generic one that calls one of the above passing a typecode.
- static DynAny_ptr create_dyn_any (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
-////////////////////////////////////////////////////////////////////////////
-
- // In case we have tk_alias.
- static CORBA::TCKind unalias (CORBA_TypeCode_ptr tc,
- CORBA::Environment& env);
-
-private:
- CORBA_Any value_;
-};
-
-#endif /* DYNANY_I_H */
-
-