3 //=============================================================================
7 * This class tests the functionality of the IFR methods by inserting
8 * IR objects into the repository by hand, querying them, moving them,
11 * @author Jeff Parsons <parsons@cs.wustl.edu>
13 //=============================================================================
16 #if !defined (ADMIN_CLIENT_H)
17 #define ADMIN_CLIENT_H
19 #include "tao/IFR_Client/IFR_BasicC.h"
22 const CORBA::ULong NUMBER_OF_TESTS
= 11;
27 * @brief Administrating IFR Client Implementation
29 * Class wrapper for a client which puts the Interface Repository
30 * methods through their paces.
41 /// Initialize the ORB and get the IFR object reference.
45 /// Execute test code.
49 /// The various IFR tests.
50 void array_test (void);
51 void enum_test (void);
52 void alias_test (void);
53 void native_test (void);
54 void struct_test (void);
55 void union_test (void);
56 void exception_test (void);
57 void constant_test (void);
58 void interface_test (void);
59 void move_test (void);
60 void module_test (void);
62 /// Process the command line arguments.
63 int parse_args (int argc
,
66 /// Array of pointers to the test functions.
67 void (Admin_Client::*test_array_
[NUMBER_OF_TESTS
])(void);
69 /// Array of test names used in selection of one test.
70 static const char *test_names_
[];
72 /// Flag to output results of IFR queries.
73 CORBA::Boolean debug_
;
75 /// Are we running all the tests or just one?
76 CORBA::Boolean all_tests_
;
78 /// Array index of the selected test function.
79 CORBA::ULong which_test_
;
81 /// # of times to run each test.
82 CORBA::ULong iterations_
;
84 /// Storage of the ORB reference.
87 /// Storage of the IFR reference.
88 CORBA::Repository_var repo_
;
91 #endif /* ADMIN_CLIENT_H */