SysNetworkMessage.h
Go to the documentation of this file.
1 
37 #ifndef LibMultiSense_SysNetworkMessage
38 #define LibMultiSense_SysNetworkMessage
39 
40 #include "../utility/Portability.hh"
41 
42 namespace crl {
43 namespace multisense {
44 namespace details {
45 namespace wire {
46 
47 class SysNetwork {
48 public:
51 
52  //
53  // Configurable interfaces
54 
55  static CRL_CONSTEXPR uint8_t Interface_Unknown = 0;
56  static CRL_CONSTEXPR uint8_t Interface_Primary = 1; // external GigE
57  static CRL_CONSTEXPR uint8_t Interface_Secondary = 2; // internal 100Mb
58 
59  //
60  // IPV4 parameters
61 
62  uint8_t interface;
63  std::string address;
64  std::string gateway;
65  std::string netmask;
66 
67  //
68  // Constructors
69 
71  SysNetwork(const std::string& a,
72  const std::string& g,
73  const std::string& n) :
74  interface(Interface_Primary),
75  address(a),
76  gateway(g),
77  netmask(n) {};
79  interface(Interface_Unknown),
80  address(),
81  gateway(),
82  netmask() {};
83 
84  //
85  // Serialization routine
86 
87  template<class Archive>
88  void serialize(Archive& message,
89  const VersionType version)
90  {
91  message & interface;
92  message & address;
93  message & gateway;
94  message & netmask;
95  }
96 };
97 
98 }}}}; // namespaces
99 
100 #endif
SysNetwork(utility::BufferStreamReader &r, VersionType v)
static CRL_CONSTEXPR uint8_t Interface_Primary
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR uint8_t Interface_Unknown
static CRL_CONSTEXPR VersionType VERSION
Definition: channel.cc:56
static CRL_CONSTEXPR uint8_t Interface_Secondary
SysNetwork(const std::string &a, const std::string &g, const std::string &n)
#define CRL_CONSTEXPR
Definition: Portability.hh:38
static CRL_CONSTEXPR IdType ID_CMD_SYS_SET_NETWORK
Definition: Protocol.h:160


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46