- RESETABLE<std::string> configFile;
- RESETABLE<std::string> server;
- RESETABLE<uint16_t> port;
- RESETABLE<std::string> userName;
- RESETABLE<std::string> userPass;
+ std::optional<std::string> configFile;
+ std::optional<std::string> server;
+ std::optional<uint16_t> port;
+ std::optional<std::string> localAddress;
+ std::optional<uint16_t> localPort;
+ std::optional<std::string> userName;
+ std::optional<std::string> userPass;
+ std::optional<bool> showConfig;
+
+ CONFIG() = default;
+ CONFIG(const CONFIG&) = default;
+ CONFIG(CONFIG&&) = default;
+
+ CONFIG& operator=(const CONFIG&) = delete;
+ CONFIG& operator=(CONFIG&&) = delete;
+
+ void splice(const CONFIG & rhs) noexcept
+ {
+ STG::splice(configFile, rhs.configFile);
+ STG::splice(server, rhs.server);
+ STG::splice(port, rhs.port);
+ STG::splice(localAddress, rhs.localAddress);
+ STG::splice(localPort, rhs.localPort);
+ STG::splice(userName, rhs.userName);
+ STG::splice(userPass, rhs.userPass);
+ STG::splice(showConfig, rhs.showConfig);
+ }