Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Interoperable_Naming / ncontextext_client_i.h
blobfa55980befdfae375206868257586b2bb9350a61
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ncontextext_client_i.h
7 * This class implements a simple CORBA client which
8 * converts a Name to a string and viceversa, forms a IIOPNAME
9 * url address and can resolve a stringified name.
11 * @author Priyanka Gontla <pgontla@ece.uci.edu>
13 //=============================================================================
16 #if !defined (NCONTEXTEXT_CLIENT_I_H)
17 #define NCONTEXTEXT_CLIENT_I_H
19 #include "Web_ServerC.h"
20 #include "orbsvcs/CosNamingC.h"
22 /**
23 * @class NContextExt_Client_i
25 * @brief NContextExt Client Implementation
27 class NContextExt_Client_i
29 public:
30 // = COnstructor and destructor.
31 NContextExt_Client_i ();
32 ~NContextExt_Client_i ();
34 /// Execute the client example code.
35 int run ();
37 /// Initialize the client communication endpoint with the server.
38 int init (int argc, ACE_TCHAR *argv[]);
40 private:
41 /// Parses the arguments passed on the command line.
42 int parse_args ();
44 /**
45 * Prints the values of the original name, strigified name and
46 * destringified name. Also, prints the value of the address of the
47 * naming context, a name that identifies a binding in that naming
48 * context and the corresponding iioploc URL
49 * representation.
51 void print_values (CosNaming::Name name,
52 CORBA::String_var str_name,
53 CosNaming::Name nm,
54 CORBA::String_var obj_name,
55 CORBA::String_var url_string);
57 /// Generates a random name
58 char * get_name ();
60 /// # of arguments on the command line.
61 int argc_;
63 /// arguments from command line.
64 ACE_TCHAR **argv_;
66 /// Naming context
67 CosNaming::NamingContextExt_var naming_context_;
69 /// Flag to check if '-v' option is set.
70 CORBA::Boolean view_;
73 #endif /* NCONTEXTEXT_CLIENT_I_H */