Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Trading / TT_Info.h
blobeccaeed01c8738960023a6f1981912e8c9c996bc
1 #ifndef TAO_TRADER_TEST_UTILS_H
2 #define TAO_TRADER_TEST_UTILS_H
4 #include "TTestS.h"
5 #include "ace/Arg_Shifter.h"
6 #include "ace/Read_Buffer.h"
7 #include "orbsvcs/CosTradingC.h"
8 #include "orbsvcs/CosTradingReposC.h"
9 #include "orbsvcs/CosTradingDynamicC.h"
10 #include "ttest_export.h"
12 class TAO_TTest_Export TT_Info
14 public:
16 static void dump_properties (const CosTrading::PropertySeq& prop_seq,
17 CORBA::Boolean print_dynamic = 1);
18 // Dump the contents of this property sequence.
20 enum INTERFACES
22 REMOTE_IO,
23 PLOTTER,
24 PRINTER,
25 FILESYSTEM,
26 PS_PRINTER
29 // = Test servants.
31 class Remote_Output :
32 public POA_TAO_Trader_Test::Remote_Output
34 public:
36 Remote_Output (void) {}
38 virtual void confirm (void)
40 // Method to test that the importer received a valid reference to
41 // the exported object.
44 class TAO_TTest_Export Printer :
45 public POA_TAO_Trader_Test::Printer
47 public:
49 Printer (void) {}
51 virtual void confirm (void)
53 // Method to test that the importer received a valid reference to
54 // the exported object.
57 class TAO_TTest_Export Plotter :
58 public POA_TAO_Trader_Test::Plotter
60 public:
61 Plotter (void) {}
63 virtual void confirm (void)
65 // Method to test that the importer received a valid reference to
66 // the exported object.
69 class TAO_TTest_Export File_System :
70 public POA_TAO_Trader_Test::File_System
72 public:
73 File_System (void) {}
75 virtual void confirm (void)
77 // Method to test that the importer received a valid reference to
78 // the exported object.
81 class TAO_TTest_Export PostScript_Printer :
82 public POA_TAO_Trader_Test::PostScript_Printer
84 public:
85 PostScript_Printer (void) {}
87 virtual void confirm (void)
89 // Method to test that the importer received a valid reference to
90 // the exported object.
93 #define NUM_TYPES 5
94 static const char* INTERFACE_NAMES[];
96 // = Remote IO property descriptions
98 enum REMOTE_IO_PROPERTIES
100 NAME,
101 LOCATION,
102 DESCRIPTION,
103 HOST_NAME,
104 TRADER_NAME,
105 MISCELLANEOUS
108 static const char* REMOTE_IO_NAME;
109 static const char* REMOTE_IO_PROPERTY_NAMES[];
111 // = Plotter property descriptions
113 enum PLOTTER_PROPERTIES
115 PLOTTER_NUM_COLORS,
116 PLOTTER_AUTO_LOADING,
117 PLOTTER_COST_PER_PAGE,
118 PLOTTER_MODEL_NUMBER,
119 PLOTTER_USER_QUEUE,
120 PLOTTER_FILE_SIZES_PENDING
123 static const char* PLOTTER_NAME;
124 static const char* PLOTTER_PROPERTY_NAMES[];
126 // = Printer property descriptions
128 enum PRINTER_PROPERTIES
130 PRINTER_COLOR,
131 PRINTER_DOUBLE_SIDED,
132 PRINTER_COST_PER_PAGE,
133 PRINTER_MODEL_NUMBER,
134 PRINTER_PAGES_PER_SEC,
135 PRINTER_USER_QUEUE,
136 PRINTER_FILE_SIZES_PENDING
139 static const char* PRINTER_NAME;
140 static const char* PRINTER_PROPERTY_NAMES[];
142 // = File System Property Descriptions
144 enum FILESYSTEM_PROPERTIES
146 DISK_SIZE,
147 SPACE_REMAINING,
148 PERMISSION_LEVEL
151 static const char* FILESYSTEM_NAME;
152 static const char* FILESYSTEM_PROPERTY_NAMES[];
154 // = PostScript Printer property descriptions.
156 enum PS_PRINTER_PROPERTIES
158 VERSION
161 static const char* PS_PRINTER_NAME;
162 static const char* PS_PRINTER_PROPERTY_NAMES[];
164 // = Offer Info
166 #define NUM_OFFERS 15
167 static const char* LOCATIONS[];
168 static const char* USERS[];
169 static const char* MODEL_NUMBERS[];
171 // = Query info
173 static const int NUM_QUERIES;
174 static const char* QUERIES[][4];
177 class TAO_TTest_Export TT_Parse_Args
178 // = TITLE
179 // Utility to parse the command-line arguments to the trading service tests.
181 public:
183 TT_Parse_Args (int& argc, ACE_TCHAR** argv);
185 ~TT_Parse_Args ();
187 int federated () const;
188 // True if the test should test the federated features of the trading
189 // service.
191 int quiet () const;
192 // True if the tests should supress all but the most essential output.
194 char* ior () const;
195 // Not null if the test user supplied an explicit ior.
197 private:
199 int federated_, quiet_;
200 char* ior_;
203 #endif /* TAO_TRADER_TEST_UTILS_H */