summaryrefslogtreecommitdiff
path: root/TAO/IIOP/test/Orbix/base_server/cubitS.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/IIOP/test/Orbix/base_server/cubitS.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/IIOP/test/Orbix/base_server/cubitS.h')
-rw-r--r--TAO/IIOP/test/Orbix/base_server/cubitS.h172
1 files changed, 86 insertions, 86 deletions
diff --git a/TAO/IIOP/test/Orbix/base_server/cubitS.h b/TAO/IIOP/test/Orbix/base_server/cubitS.h
index 3ca717e2b49..7132e9d229c 100644
--- a/TAO/IIOP/test/Orbix/base_server/cubitS.h
+++ b/TAO/IIOP/test/Orbix/base_server/cubitS.h
@@ -20,100 +20,100 @@
class _sk_Cubit : public Cubit
{
protected:
- _sk_Cubit(const char *object_name = (const char *)NULL);
- _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data);
- virtual ~_sk_Cubit() {}
+ _sk_Cubit(const char *object_name = (const char *)NULL);
+ _sk_Cubit(const char *service_name, const CORBA::ReferenceData& data);
+ virtual ~_sk_Cubit() {}
public:
- static const CORBA::TypeInfo _skel_info;
-
- // The following operations need to be implemented by the server.
- virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0;
- virtual CORBA::Short cube_short(CORBA::Short s) = 0;
- virtual CORBA::Long cube_long(CORBA::Long l) = 0;
- virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0;
- virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0;
- virtual void please_exit() = 0;
-
- // Skeleton Operations implemented automatically
-
- static void _cube_octet(void *obj,
- CORBA::MarshalStream &strm,
- CORBA::Principal_ptr principal,
- const char *oper,
- void *priv_data);
-
- static void _cube_short(void *obj,
- CORBA::MarshalStream &strm,
- CORBA::Principal_ptr principal,
- const char *oper,
- void *priv_data);
-
- static void _cube_long(void *obj,
- CORBA::MarshalStream &strm,
- CORBA::Principal_ptr principal,
- const char *oper,
- void *priv_data);
-
- static void _cube_struct(void *obj,
- CORBA::MarshalStream &strm,
- CORBA::Principal_ptr principal,
- const char *oper,
- void *priv_data);
-
- static void _cube_union(void *obj,
- CORBA::MarshalStream &strm,
- CORBA::Principal_ptr principal,
- const char *oper,
- void *priv_data);
-
- static void _please_exit(void *obj,
- CORBA::MarshalStream &strm,
- CORBA::Principal_ptr principal,
- const char *oper,
- void *priv_data);
-
+ static const CORBA::TypeInfo _skel_info;
+
+ // The following operations need to be implemented by the server.
+ virtual CORBA::Octet cube_octet(CORBA::Octet o) = 0;
+ virtual CORBA::Short cube_short(CORBA::Short s) = 0;
+ virtual CORBA::Long cube_long(CORBA::Long l) = 0;
+ virtual Cubit::Many cube_struct(const Cubit::Many& values) = 0;
+ virtual Cubit::oneof cube_union(const Cubit::oneof& values) = 0;
+ virtual void please_exit() = 0;
+
+ // Skeleton Operations implemented automatically
+
+ static void _cube_octet(void *obj,
+ CORBA::MarshalStream &strm,
+ CORBA::Principal_ptr principal,
+ const char *oper,
+ void *priv_data);
+
+ static void _cube_short(void *obj,
+ CORBA::MarshalStream &strm,
+ CORBA::Principal_ptr principal,
+ const char *oper,
+ void *priv_data);
+
+ static void _cube_long(void *obj,
+ CORBA::MarshalStream &strm,
+ CORBA::Principal_ptr principal,
+ const char *oper,
+ void *priv_data);
+
+ static void _cube_struct(void *obj,
+ CORBA::MarshalStream &strm,
+ CORBA::Principal_ptr principal,
+ const char *oper,
+ void *priv_data);
+
+ static void _cube_union(void *obj,
+ CORBA::MarshalStream &strm,
+ CORBA::Principal_ptr principal,
+ const char *oper,
+ void *priv_data);
+
+ static void _please_exit(void *obj,
+ CORBA::MarshalStream &strm,
+ CORBA::Principal_ptr principal,
+ const char *oper,
+ void *priv_data);
+
};
template <class T>
class _tie_Cubit : public Cubit
{
public:
- _tie_Cubit(T& t, const char *obj_name=(char*)NULL) :
- Cubit(obj_name),
- _ref(t) {
- _object_name(obj_name);
- }
- _tie_Cubit(T& t, const char *service_name,
- const CORBA::ReferenceData& id)
- :_ref(t) {
- _service(service_name, id);
- }
- ~_tie_Cubit() {}
- CORBA::Octet cube_octet(CORBA::Octet o) {
- return _ref.cube_octet(
- o);
- }
- CORBA::Short cube_short(CORBA::Short s) {
- return _ref.cube_short(
- s);
- }
- CORBA::Long cube_long(CORBA::Long l) {
- return _ref.cube_long(
- l);
- }
- Cubit::Many cube_struct(const Cubit::Many& values) {
- return _ref.cube_struct(
- values);
- }
- Cubit::oneof cube_union(const Cubit::oneof& values) {
- return _ref.cube_union(
- values);
- }
- void please_exit() {
- _ref.please_exit();
- }
+ _tie_Cubit(T& t, const char *obj_name=(char*)NULL) :
+ Cubit(obj_name),
+ _ref(t) {
+ _object_name(obj_name);
+ }
+ _tie_Cubit(T& t, const char *service_name,
+ const CORBA::ReferenceData& id)
+ :_ref(t) {
+ _service(service_name, id);
+ }
+ ~_tie_Cubit() {}
+ CORBA::Octet cube_octet(CORBA::Octet o) {
+ return _ref.cube_octet(
+ o);
+ }
+ CORBA::Short cube_short(CORBA::Short s) {
+ return _ref.cube_short(
+ s);
+ }
+ CORBA::Long cube_long(CORBA::Long l) {
+ return _ref.cube_long(
+ l);
+ }
+ Cubit::Many cube_struct(const Cubit::Many& values) {
+ return _ref.cube_struct(
+ values);
+ }
+ Cubit::oneof cube_union(const Cubit::oneof& values) {
+ return _ref.cube_union(
+ values);
+ }
+ void please_exit() {
+ _ref.please_exit();
+ }
private:
- T& _ref;
+ T& _ref;
};
#endif