Samchon Framework for CPP  1.0.0
SystemBase.hpp
1 #pragma once
2 #include <samchon/protocol/IProtocol.hpp>
3 #include <samchon/protocol/Entity.hpp>
4 
5 namespace samchon
6 {
7 namespace examples
8 {
9 namespace interaction
10 {
11 namespace base
12 {
13  class SystemBase
14  : public virtual protocol::IProtocol,
15  public virtual protocol::EntityBase
16  {
17  private:
18  int uid {-1};
19 
20  public:
21  auto getUID() const -> int
22  {
23  return uid;
24  };
25 
26  void setUID(int val)
27  {
28  uid = val;
29  };
30  };
31 };
32 };
33 };
34 };