diff options
Diffstat (limited to 'TAO/IIOP/test/cubitC.h')
-rw-r--r-- | TAO/IIOP/test/cubitC.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/TAO/IIOP/test/cubitC.h b/TAO/IIOP/test/cubitC.h index 98610b55116..e80a1378bdb 100644 --- a/TAO/IIOP/test/cubitC.h +++ b/TAO/IIOP/test/cubitC.h @@ -9,25 +9,25 @@ /************************************************************************** This file has been hand-crafted to work with the ORB API of the SUN's IIOP -implementation +implementation ***************************************************************************/ -#ifndef _CUBIT_HH -#define _CUBIT_HH +#ifndef _CUBIT_HH +#define _CUBIT_HH -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (push, 1) // VC++, known padding rules +#endif // VC++ #include "corba/orb.h" #include "corba/stub.h" #include <iostream.h> -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; +extern CORBA_TypeCode_ptr TC_Cubit_Many; +extern CORBA_TypeCode_ptr TC_Cubit_oneof; -struct Cubit_Many +struct Cubit_Many { CORBA_Octet o; CORBA_Long l; @@ -38,12 +38,12 @@ enum Cubit_discrim { e_0th = 0, e_1st = 1, e_2nd = 2, e_3rd = 3, e_4th = 4, e_5th = 5 }; -struct Cubit_oneof +struct Cubit_oneof { Cubit_discrim _disc; - - union - { + + union + { CORBA_Octet o; CORBA_Short s; CORBA_Long l; @@ -58,32 +58,32 @@ typedef Cubit_ptr Cubit_ref; class Cubit : public virtual CORBA_Object { public: - + static Cubit_ptr _duplicate(Cubit_ptr obj); static Cubit_ptr _narrow(CORBA_Object_ptr obj); static Cubit_ptr _nil(); - virtual + virtual CORBA_Octet Cubit_cube_octet (CORBA_Octet o, CORBA_Environment &env); - virtual + virtual CORBA_Short Cubit_cube_short (CORBA_Short s, CORBA_Environment &env); - - virtual + + virtual CORBA_Long Cubit_cube_long (CORBA_Long l, CORBA_Environment &env); - - virtual + + virtual Cubit_Many* Cubit_cube_struct (Cubit_Many &values, CORBA_Environment &env); - - virtual + + virtual Cubit_oneof* Cubit_cube_union (Cubit_oneof &values, CORBA_Environment &env); - - virtual + + virtual void Cubit_please_exit (CORBA_Environment &env); protected: @@ -92,13 +92,13 @@ protected: : CORBA_Object(objref) { } virtual ~Cubit() { } - + }; -extern const CORBA_Char *Cubit__id; // type ID +extern const CORBA_Char *Cubit__id; // type ID -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _CUBIT_HH +#endif // _CUBIT_HH |