blob: b5c4c253a7e29bc126573eadbef901b4acda1623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
// -*- C++ -*-
//=============================================================================
/**
* @file ncontextext_client_i.h
*
* $Id$
*
* This class implements a simple CORBA client which
* converts a Name to a string and viceversa, forms a IIOPNAME
* url address and can resolve a stringified name.
*
*
* @author Priyanka Gontla <pgontla@ece.uci.edu>
*/
//=============================================================================
#if !defined (NCONTEXTEXT_CLIENT_I_H)
#define NCONTEXTEXT_CLIENT_I_H
#include "Web_ServerC.h"
#include "orbsvcs/CosNamingC.h"
/**
* @class NContextExt_Client_i
*
* @brief NContextExt Client Implementation
*
*/
class NContextExt_Client_i
{
public:
// = COnstructor and destructor.
NContextExt_Client_i (void);
~NContextExt_Client_i (void);
/// Execute the client example code.
int run (void);
/// Initialize the client communication endpoint with the server.
int init (int argc, ACE_TCHAR *argv[]);
private:
/// Parses the arguments passed on the command line.
int parse_args (void);
/**
* Prints the values of the original name, strigified name and
* destringified name. Also, prints the value of the address of the
* naming context, a name that identifies a binding in that naming
* context and the corresponding iioploc URL
* representation.
*/
void print_values (CosNaming::Name name,
CORBA::String_var str_name,
CosNaming::Name nm,
CORBA::String_var obj_name,
CORBA::String_var url_string);
/// Generates a random name
char * get_name (void);
/// # of arguments on the command line.
int argc_;
/// arguments from command line.
ACE_TCHAR **argv_;
/// Naming context
CosNaming::NamingContextExt_var naming_context_;
/// Flag to check if '-v' option is set.
CORBA::Boolean view_;
};
#endif /* NCONTEXTEXT_CLIENT_I_H */
|