3 //=============================================================================
7 * Test client for the Property Service.
9 * @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
11 //=============================================================================
14 #ifndef PROPERTY_CLIENT_H
15 #define PROPERTY_CLIENT_H
17 #include "ace/config-all.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/Thread_Manager.h"
25 #include "ace/Get_Opt.h"
26 #include "tao/Utils/ORB_Manager.h"
27 #include "orbsvcs/Property/CosPropertyService_i.h"
28 #include "orbsvcs/Naming/Naming_Client.h"
33 * @brief Client for A/V Streams demo.
35 * Encapsulates client functionality.
43 /// Initialize the ORB etc, and bind the MMDevices.
47 /// Run the client. This will call StreamCtrl::bind_devs.
50 /// Testing the property service methods.
51 int property_tester ();
54 /// Bind to the remote MMDevice.
55 int bind_to_remote_mmdevice (int argc
,
58 // = Property Testing.
60 /// Testing the define property method.
61 int test_define_property ();
63 /// Testing the number of properties, currently in the Property Set.
64 int test_get_number_of_properties ();
66 ///Testing get_all_property_names.
67 int test_get_all_property_names ();
69 /// Testing get_property_value.
70 int test_get_property_value ();
72 ///Testing get_properties. Give the names and get their properties.
73 int test_get_properties ();
75 /// Testing get_all_properties.
76 int test_get_all_properties ();
78 /// Testing delete_property.
79 int test_delete_property (const char *property_name
);
81 /// Testing delete_properties.
82 int test_delete_properties ();
84 /// Defining a sequence of properties.
85 int test_define_properties ();
87 /// Defines properties with various modes.
88 int test_define_property_with_mode ();
90 /// The ORB manager, handles ORB initialization etc.
91 TAO_ORB_Manager manager_
;
93 /// The Naming Client handles Naming Service work
94 TAO_Naming_Client my_name_client_
;
96 /// To test propertySetDef interface.
97 CosPropertyService::PropertySetDef_var propsetdef_
;
100 #endif /* COSPROPERTYSERVICE_CLIENT_H */