-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRmiObjectBase.h
More file actions
40 lines (29 loc) · 1.05 KB
/
Copy pathRmiObjectBase.h
File metadata and controls
40 lines (29 loc) · 1.05 KB
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
#ifndef MicroMiddleware_RmiObjectBase_h_Included
#define MicroMiddleware_RmiObjectBase_h_Included
#include"MicroMiddleware/IncludeExtLibs.h"
#include"MicroMiddleware/Export.h"
namespace MicroMiddleware
{
class DLL_STATE RmiObjectBase
{
protected:
typedef std::list<NetworkLib::NetAddress> ListNetAddress;
public:
RmiObjectBase();
virtual ~RmiObjectBase();
virtual void Write(NetworkLib::SerializeWriter*) = 0;
virtual void Read(NetworkLib::SerializeReader *) = 0;
void SetInNetAddress(const NetworkLib::NetAddress &addr);
void SetOutNetAddress(const NetworkLib::NetAddress &addr);
void SetOutNetAddresses(const ListNetAddress &listHandles);
const NetworkLib::NetAddress& GetInNetAddress() const;
const NetworkLib::NetAddress& GetOutNetAddress() const;
const ListNetAddress& GetOutNetAddresses() const;
bool HasOutAddresses() const;
protected:
NetworkLib::NetAddress inputNetAddress_;
NetworkLib::NetAddress outputNetAddress_;
ListNetAddress listOutputAddresses_;
};
} // namespace MicroMiddleware
#endif // MicroMiddleware_RmiObjectBase_h_Included