3 //=============================================================================
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"
23 * @class NContextExt_Client_i
25 * @brief NContextExt Client Implementation
27 class NContextExt_Client_i
30 // = COnstructor and destructor.
31 NContextExt_Client_i ();
32 ~NContextExt_Client_i ();
34 /// Execute the client example code.
37 /// Initialize the client communication endpoint with the server.
38 int init (int argc
, ACE_TCHAR
*argv
[]);
41 /// Parses the arguments passed on the command line.
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
51 void print_values (CosNaming::Name name
,
52 CORBA::String_var str_name
,
54 CORBA::String_var obj_name
,
55 CORBA::String_var url_string
);
57 /// Generates a random name
60 /// # of arguments on the command line.
63 /// arguments from command line.
67 CosNaming::NamingContextExt_var naming_context_
;
69 /// Flag to check if '-v' option is set.
73 #endif /* NCONTEXTEXT_CLIENT_I_H */