blob: 6160644d8b98da9cd1c8eab9f1d73739b908b523 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file Echo_i.h
*
* This class implements the Echo IDL interface.
*
* @author Kirthika Parameswaran <kirthika@cs.wustl.edu>
*/
//=============================================================================
#ifndef ECHO_I_H
#define ECHO_I_H
#include "EchoS.h"
/**
* @class Echo_i
*
* @brief Echo Object Implementation
*
* The object implementation performs teh following functions:
* -- To return the string which needs to be displayed
* from the server.
* -- shuts down the server
*/
class Echo_i : public POA_Echo
{
public:
/// Constructor.
Echo_i ();
/// Destructor.
virtual ~Echo_i ();
/// Return the mesg string back from the server.
virtual Echo::List *echo_list (const char *mesg);
/// Return the mesg string back from the server.
virtual char *echo_string (const char *mesg);
/// Shutdown the server.
virtual void shutdown ();
/// Set the ORB pointer.
void orb (CORBA::ORB_ptr o);
private:
/// ORB pointer.
CORBA::ORB_var orb_;
void operator= (const Echo_i&);
};
#endif /* ECHO_I_H */
|