summaryrefslogtreecommitdiff
path: root/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.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/Benchmark/Marshal_Test/TAO/tao_marshal_impl.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/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h')
-rw-r--r--TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h166
1 files changed, 85 insertions, 81 deletions
diff --git a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h
index dab7e662d74..9c5d9047120 100644
--- a/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h
+++ b/TAO/Benchmark/Marshal_Test/TAO/tao_marshal_impl.h
@@ -1,16 +1,20 @@
// $Id$
-#if !defined (TAO_MARSHAL_IMPL_H)
+#ifndef TAO_MARSHAL_IMPL_H
#define TAO_MARSHAL_IMPL_H
// to include DSI related files
#include "ace/OS.h"
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "marshalS.h"
//#include "tao/dynimpl.h"
-class Marshal_SSI_Impl
+class Marshal_SSI_Impl
: public virtual _skel_Marshal
{
// =TITLE
@@ -25,57 +29,57 @@ public:
// destructor
virtual void test_short (CORBA_Short s1,
- CORBA_Short& s2,
- CORBA_Environment &env);
+ CORBA_Short& s2,
+ CORBA_Environment &env);
// test short
-
+
virtual void test_long (CORBA_Long l1,
- CORBA_Long& l2,
- CORBA_Environment &env);
+ CORBA_Long& l2,
+ CORBA_Environment &env);
// test long
-
+
virtual void test_octet (CORBA_Octet o1,
- CORBA_Octet& o2,
- CORBA_Environment &env);
+ CORBA_Octet& o2,
+ CORBA_Environment &env);
// test octet
-
+
virtual void test_char (CORBA_Char c1,
- CORBA_Char& c2,
- CORBA_Environment &env);
+ CORBA_Char& c2,
+ CORBA_Environment &env);
// test char
-
+
virtual void test_double (CORBA_Double d1,
- CORBA_Double& d2,
- CORBA_Environment &env);
+ CORBA_Double& d2,
+ CORBA_Environment &env);
// test double
-
+
virtual void test_struct (const Marshal::Marshal_Struct& ms1,
- Marshal::Marshal_Struct& ms2,
- CORBA_Environment &env);
+ Marshal::Marshal_Struct& ms2,
+ CORBA_Environment &env);
// test struct
-
+
virtual void test_union (const Marshal::Marshal_Union& u1,
- Marshal::Marshal_Union& u2,
- CORBA_Environment &env);
+ Marshal::Marshal_Union& u2,
+ CORBA_Environment &env);
// test union
-
+
virtual void test_any (const CORBA_Any& a1,
- CORBA_Any *& a2,
- CORBA_Environment &env);
+ CORBA_Any *& a2,
+ CORBA_Environment &env);
// test any
-
+
virtual void test_sequence (const Marshal::AnySeq& a1,
- Marshal::AnySeq *& a2,
- CORBA_Environment &env);
+ Marshal::AnySeq *& a2,
+ CORBA_Environment &env);
// test sequence
#if 0
virtual void test_recursive (const Marshal::Marshal_Recursive& mr1,
- Marshal::Marshal_Recursive *& mr2,
- CORBA_Environment &env);
+ Marshal::Marshal_Recursive *& mr2,
+ CORBA_Environment &env);
// test struct
#endif
-
+
};
class Marshal_DSI_Impl : public CORBA_Object //: public CORBA_DynamicImplementation
@@ -98,89 +102,89 @@ public:
// This method is a must, but of no use
// skeletons that do the upcall
- static void _Marshal_is_a_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ static void _Marshal_is_a_skel (CORBA_ServerRequest &req,
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_short_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_long_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_octet_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_char_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_double_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_struct_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_union_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_any_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
static void _Marshal_test_sequence_skel (CORBA_ServerRequest &req,
- CORBA_Object_ptr obj,
- CORBA_Environment &env);
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env);
private:
void test_short (CORBA_Short s1,
- CORBA_Short& s2,
- CORBA_Environment &env);
+ CORBA_Short& s2,
+ CORBA_Environment &env);
// test short
-
+
void test_long (CORBA_Long l1,
- CORBA_Long& l2,
- CORBA_Environment &env);
+ CORBA_Long& l2,
+ CORBA_Environment &env);
// test long
-
+
void test_octet (CORBA_Octet o1,
- CORBA_Octet& o2,
- CORBA_Environment &env);
+ CORBA_Octet& o2,
+ CORBA_Environment &env);
// test octet
-
+
void test_char (CORBA_Char c1,
- CORBA_Char& c2,
- CORBA_Environment &env);
+ CORBA_Char& c2,
+ CORBA_Environment &env);
// test char
-
+
void test_double (CORBA_Double d1,
- CORBA_Double& d2,
- CORBA_Environment &env);
+ CORBA_Double& d2,
+ CORBA_Environment &env);
// test double
-
+
void test_struct (const Marshal::Marshal_Struct& ms1,
- Marshal::Marshal_Struct& ms2,
- CORBA_Environment &env);
+ Marshal::Marshal_Struct& ms2,
+ CORBA_Environment &env);
// test struct
-
+
void test_union (const Marshal::Marshal_Union& u1,
- Marshal::Marshal_Union& u2,
- CORBA_Environment &env);
+ Marshal::Marshal_Union& u2,
+ CORBA_Environment &env);
// test union
-
+
void test_any (const CORBA_Any& a1,
- CORBA_Any *& a2,
- CORBA_Environment &env);
+ CORBA_Any *& a2,
+ CORBA_Environment &env);
// test any
-
+
void test_sequence (const Marshal::AnySeq& a1,
- Marshal::AnySeq *& a2,
- CORBA_Environment &env);
+ Marshal::AnySeq *& a2,
+ CORBA_Environment &env);
// test sequence
#if 0
void test_recursive (const Marshal::Marshal_Recursive& mr1,
- Marshal::Marshal_Recursive *& mr2,
- CORBA_Environment &env);
+ Marshal::Marshal_Recursive *& mr2,
+ CORBA_Environment &env);
// test struct
#endif
-
+
// we need the orb to create argument lists (NVList) for us
CORBA_ORB_ptr orb_; // not owned by us
};