blob: 6f51595dcf345acda07f2558fa89273c9df52fa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/orbsvcs/tests/InterfaceRepo
//
// = FILENAME
// Admin_Client.h
//
// = DESCRIPTION
// This class tests the functionality of the IFR methods by inserting
// IR objects into the repository by hand, querying them, moving them,
// and destroying them.
//
// = AUTHORS
// Jeff Parsons <parsons@cs.wustl.edu>
//
// ============================================================================
#if !defined (ADMIN_CLIENT_H)
#define ADMIN_CLIENT_H
#include "tao/corba.h"
const CORBA::ULong NUMBER_OF_TESTS = 11;
class Admin_Client
{
// = TITLE
// Administrating IFR Client Implementation
//
// = DESCRIPTION
// Class wrapper for a client which puts the Interface Repository
// methods through their paces.
public:
Admin_Client (void);
// Constructor
~Admin_Client (void);
// Destructor
int init (int argc,
char *argv[]);
// Initialize the ORB and get the IFR object reference.
int run (void);
// Execute test code.
private:
void array_test (CORBA::Environment &ACE_TRY_ENV);
void enum_test (CORBA::Environment &ACE_TRY_ENV);
void alias_test (CORBA::Environment &ACE_TRY_ENV);
void native_test (CORBA::Environment &ACE_TRY_ENV);
void struct_test (CORBA::Environment &ACE_TRY_ENV);
void union_test (CORBA::Environment &ACE_TRY_ENV);
void exception_test (CORBA::Environment &ACE_TRY_ENV);
void constant_test (CORBA::Environment &ACE_TRY_ENV);
void interface_test (CORBA::Environment &ACE_TRY_ENV);
void move_test (CORBA::Environment &ACE_TRY_ENV);
void module_test (CORBA::Environment &ACE_TRY_ENV);
// The various IFR tests.
int parse_args (int argc,
char *argv[]);
// Process the command line arguments.
void (Admin_Client::*test_array_[NUMBER_OF_TESTS])(CORBA::Environment &);
// Array of pointers to the test functions.
static const char *test_names_[];
// Array of test names used in selection of one test.
CORBA::Boolean debug_;
// Flag to output results of IFR queries.
CORBA::Boolean all_tests_;
// Are we running all the tests or just one?
CORBA::ULong which_test_;
// Array index of the selected test function.
CORBA::ULong iterations_;
// # of times to run each test.
CORBA::ORB_var orb_;
// Storage of the ORB reference.
IR::Repository_var repo_;
// Storage of the IFR reference.
};
#endif /* ADMIN_CLIENT_H */
|