Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / tests / Trading / TT_Info.h
blobbdad759fcd099af4f0fa141e39c498d46e294442
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:
15 static void dump_properties (const CosTrading::PropertySeq& prop_seq,
16 CORBA::Boolean print_dynamic = 1);
17 // Dump the contents of this property sequence.
19 enum INTERFACES
21 REMOTE_IO,
22 PLOTTER,
23 PRINTER,
24 FILESYSTEM,
25 PS_PRINTER
28 // = Test servants.
30 class Remote_Output :
31 public POA_TAO_Trader_Test::Remote_Output
33 public:
34 Remote_Output () {}
36 virtual void confirm ()
38 // Method to test that the importer received a valid reference to
39 // the exported object.
42 class TAO_TTest_Export Printer :
43 public POA_TAO_Trader_Test::Printer
45 public:
46 Printer () {}
48 virtual void confirm ()
50 // Method to test that the importer received a valid reference to
51 // the exported object.
54 class TAO_TTest_Export Plotter :
55 public POA_TAO_Trader_Test::Plotter
57 public:
58 Plotter () {}
60 virtual void confirm ()
62 // Method to test that the importer received a valid reference to
63 // the exported object.
66 class TAO_TTest_Export File_System :
67 public POA_TAO_Trader_Test::File_System
69 public:
70 File_System () {}
72 virtual void confirm ()
74 // Method to test that the importer received a valid reference to
75 // the exported object.
78 class TAO_TTest_Export PostScript_Printer :
79 public POA_TAO_Trader_Test::PostScript_Printer
81 public:
82 PostScript_Printer () {}
84 virtual void confirm ()
86 // Method to test that the importer received a valid reference to
87 // the exported object.
90 #define NUM_TYPES 5
91 static const char* INTERFACE_NAMES[];
93 // = Remote IO property descriptions
95 enum REMOTE_IO_PROPERTIES
97 NAME,
98 LOCATION,
99 DESCRIPTION,
100 HOST_NAME,
101 TRADER_NAME,
102 MISCELLANEOUS
105 static const char* REMOTE_IO_NAME;
106 static const char* REMOTE_IO_PROPERTY_NAMES[];
108 // = Plotter property descriptions
110 enum PLOTTER_PROPERTIES
112 PLOTTER_NUM_COLORS,
113 PLOTTER_AUTO_LOADING,
114 PLOTTER_COST_PER_PAGE,
115 PLOTTER_MODEL_NUMBER,
116 PLOTTER_USER_QUEUE,
117 PLOTTER_FILE_SIZES_PENDING
120 static const char* PLOTTER_NAME;
121 static const char* PLOTTER_PROPERTY_NAMES[];
123 // = Printer property descriptions
125 enum PRINTER_PROPERTIES
127 PRINTER_COLOR,
128 PRINTER_DOUBLE_SIDED,
129 PRINTER_COST_PER_PAGE,
130 PRINTER_MODEL_NUMBER,
131 PRINTER_PAGES_PER_SEC,
132 PRINTER_USER_QUEUE,
133 PRINTER_FILE_SIZES_PENDING
136 static const char* PRINTER_NAME;
137 static const char* PRINTER_PROPERTY_NAMES[];
139 // = File System Property Descriptions
141 enum FILESYSTEM_PROPERTIES
143 DISK_SIZE,
144 SPACE_REMAINING,
145 PERMISSION_LEVEL
148 static const char* FILESYSTEM_NAME;
149 static const char* FILESYSTEM_PROPERTY_NAMES[];
151 // = PostScript Printer property descriptions.
153 enum PS_PRINTER_PROPERTIES
155 VERSION
158 static const char* PS_PRINTER_NAME;
159 static const char* PS_PRINTER_PROPERTY_NAMES[];
161 // = Offer Info
163 #define NUM_OFFERS 15
164 static const char* LOCATIONS[];
165 static const char* USERS[];
166 static const char* MODEL_NUMBERS[];
168 // = Query info
170 static const int NUM_QUERIES;
171 static const char* QUERIES[][4];
174 class TAO_TTest_Export TT_Parse_Args
175 // = TITLE
176 // Utility to parse the command-line arguments to the trading service tests.
178 public:
179 TT_Parse_Args (int& argc, ACE_TCHAR** argv);
181 ~TT_Parse_Args ();
183 int federated () const;
184 // True if the test should test the federated features of the trading
185 // service.
187 int quiet () const;
188 // True if the tests should supress all but the most essential output.
190 char* ior () const;
191 // Not null if the test user supplied an explicit ior.
193 private:
194 int federated_, quiet_;
195 char* ior_;
198 #endif /* TAO_TRADER_TEST_UTILS_H */