LibMultiSense
LibMultiSense Documentation
Loading...
Searching...
No Matches
SysNetworkMessage.hh
Go to the documentation of this file.
1
37#ifndef LibMultiSense_SysNetworkMessage
38#define LibMultiSense_SysNetworkMessage
39
40#include "../utility/Portability.hh"
41
42namespace crl {
43namespace multisense {
44namespace details {
45namespace wire {
46
48public:
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) :
75 address(a),
76 gateway(g),
77 netmask(n) {};
83
84 //
85 // Serialization routine
86
87 template<class Archive>
88 void serialize(Archive& message,
89 const VersionType version)
90 {
91 (void) version;
92 message & interface;
93 message & address;
94 message & gateway;
95 message & netmask;
96 }
97};
98
99}}}} // namespaces
100
101#endif
#define CRL_CONSTEXPR
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR VersionType VERSION
static CRL_CONSTEXPR uint8_t Interface_Primary
SysNetwork(utility::BufferStreamReader &r, VersionType v)
SysNetwork(const std::string &a, const std::string &g, const std::string &n)
static CRL_CONSTEXPR uint8_t Interface_Unknown
static CRL_CONSTEXPR uint8_t Interface_Secondary
static CRL_CONSTEXPR IdType ID_CMD_SYS_SET_NETWORK
Definition Protocol.hh:170