1 #ifndef SIPLASPLAS_EXAMPLES_REFLECTION_STATIC_PROTOSERIALIZATION_DATAMODEL_HPP 2 #define SIPLASPLAS_EXAMPLES_REFLECTION_STATIC_PROTOSERIALIZATION_DATAMODEL_HPP 11 std::string ipAddress =
"";
12 std::string gateway =
"";
13 std::chrono::milliseconds pingInterval = std::chrono::milliseconds(0);
48 #include <reflection/examples/reflection/static/protoserialization/datamodel.hpp> 50 std::ostream& operator<<(std::ostream& os,
const NetworkSettings& networkSettings)
52 return os <<
"NetworkSettings {\n" 53 <<
" ipAddress: " << networkSettings.ipAddress
54 <<
"\n gateway: " << networkSettings.gateway
55 <<
"\n pingInterval: " << networkSettings.pingInterval.count() <<
" ms" 59 std::ostream& operator<<(std::ostream& os,
const ServerSettings& serverSettings)
61 return os <<
"ServerSettings {\n" 62 <<
" port: " << serverSettings.port
66 std::ostream& operator<<(std::ostream& os,
const Settings& settings)
68 return os <<
"Settings{\n" 69 <<
" networkSettings: " << settings.netwokSettings
70 <<
"\n serverSettings: " << settings.serverSettings
74 std::ostream& operator<<(std::ostream& os,
const Operation& operation)
79 std::ostream& operator<<(std::ostream& os,
const SettingsOperation& settingsOperation)
81 return os <<
"SettingsOperation{\n" 82 <<
" operation: " << settingsOperation.operation
83 <<
"\n settings: " << settingsOperation.settings
87 #endif // SIPLASPLAS_EXAMPLES_REFLECTION_STATIC_PROTOSERIALIZATION_DATAMODEL_HPP Definition: datamodel.hpp:42
Definition: datamodel.hpp:35
Returns static reflection information of the given enumeration type.
Definition: enum.hpp:303
Definition: datamodel.hpp:22
Definition: datamodel.hpp:8
Definition: datamodel.hpp:16