summaryrefslogtreecommitdiff
path: root/TAO/tests/Param_Test/tests.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-18 23:00:19 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-18 23:00:19 +0000
commit34c2b0fa8792054fd61cecf6c4caaf78d7cca885 (patch)
treea55a01ace8d1d21594130e82c1b1f819857dfc01 /TAO/tests/Param_Test/tests.h
parent20afbaafcedd602f774c5454d7dea0fc870d0ffb (diff)
downloadATCD-ACE-4_4_33.tar.gz
This commit was manufactured by cvs2svn to create tag 'ACE-4_4_33'.ACE-4_4_33
Diffstat (limited to 'TAO/tests/Param_Test/tests.h')
-rw-r--r--TAO/tests/Param_Test/tests.h495
1 files changed, 0 insertions, 495 deletions
diff --git a/TAO/tests/Param_Test/tests.h b/TAO/tests/Param_Test/tests.h
deleted file mode 100644
index 931e596ee21..00000000000
--- a/TAO/tests/Param_Test/tests.h
+++ /dev/null
@@ -1,495 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// tests.h
-//
-// = DESCRIPTION
-// All the test objects defined here
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#if !defined (TESTS_H)
-#define TESTS_H
-
-#include "param_testC.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test shorts
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Short
-{
-public:
- Test_Short (void);
- // ctor
-
- ~Test_Short (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- CORBA::Short in_;
- // in parameter
-
- CORBA::Short inout_;
- // inout parameter
-
- CORBA::Short out_;
- // out parameter
-
- CORBA::Short ret_;
- // return value
-};
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test unbounded strings
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Unbounded_String
-{
-public:
- Test_Unbounded_String (void);
- // ctor
-
- ~Test_Unbounded_String (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- char *in_;
- // in parameter
-
- char *inout_;
- // inout parameter
-
- char *out_;
- // out parameter
-
- char *ret_;
- // return value
-};
-
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test fixed structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Fixed_Struct
-{
-public:
- Test_Fixed_Struct (void);
- // ctor
-
- ~Test_Fixed_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Fixed_Struct in_;
- // in parameter
-
- Param_Test::Fixed_Struct inout_;
- // inout parameter
-
- Param_Test::Fixed_Struct out_;
- // out parameter
-
- Param_Test::Fixed_Struct ret_;
- // return value
-};
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test typedefed sequences (in our case, sequences of strings)
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_String_Sequence
-{
-public:
- Test_String_Sequence (void);
- // ctor
-
- ~Test_String_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::StrSeq_var in_;
- // in parameter
-
- Param_Test::StrSeq_var inout_;
- // inout parameter
-
- Param_Test::StrSeq_var out_;
- // out parameter
-
- Param_Test::StrSeq_var ret_;
- // return value
-};
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test variable sized structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Var_Struct
-{
-public:
- Test_Var_Struct (void);
- // ctor
-
- ~Test_Var_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Var_Struct in_;
- // in parameter
-
- // these need memory management
- Param_Test::Var_Struct_var inout_;
- // inout parameter
-
- Param_Test::Var_Struct_var out_;
- // out parameter
-
- Param_Test::Var_Struct_var ret_;
- // return value
-};
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test nested structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Nested_Struct
-{
-public:
- Test_Nested_Struct (void);
- // ctor
-
- ~Test_Nested_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Nested_Struct in_;
- // in parameter
-
- // these need memory management
- Param_Test::Nested_Struct_var inout_;
- // inout parameter
-
- Param_Test::Nested_Struct_var out_;
- // out parameter
-
- Param_Test::Nested_Struct_var ret_;
- // return value
-};
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test sequence of structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Struct_Sequence
-{
-public:
- Test_Struct_Sequence (void);
- // ctor
-
- ~Test_Struct_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-protected:
- CORBA::Boolean compare (const Param_Test::StructSeq &s1,
- const Param_Test::StructSeq &s2);
- // compare
-
- void print_sequence (const Param_Test::StructSeq &s);
- // print individual sequence
-private:
- char *opname_;
- // operation name
-
- Param_Test::StructSeq in_;
- // in parameter
-
- // these need memory management
- Param_Test::StructSeq_var inout_;
- // inout parameter
-
- Param_Test::StructSeq_var out_;
- // out parameter
-
- Param_Test::StructSeq_var ret_;
- // return value
-};
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test objrefs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_ObjRef
-{
-public:
- Test_ObjRef (void);
- // ctor
-
- ~Test_ObjRef (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr &nvlist,
- CORBA::NVList_ptr &retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
-private:
- char *opname_;
- // operation name
-
- Coffee_var in_;
- // in parameter
-
- Coffee_var inout_;
- // inout parameter
-
- Coffee_var out_;
- // out parameter
-
- Coffee_var ret_;
- // return value
-};
-
-#endif /* if !defined */