+ 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);
+ }
+
+ std::string Serialize() const
+ {
+ std::string res;
+ if (configFile)
+ res += "configFile: '" + configFile.value() + "'\n";
+ if (server)
+ res += "server: '" + server.value() + "'\n";
+ if (port)
+ res += "port: " + std::to_string(port.value()) + "\n";
+ if (localAddress)
+ res += "local address: '" + localAddress.value() + "'\n";
+ if (localPort)
+ res += "local port: " + std::to_string(localPort.value()) + "\n";
+ if (userName)
+ res += "userName: '" + userName.value() + "'\n";
+ if (userPass)
+ res += "userPass: '" + userPass.value() + "\n";
+ return res;
+ }
+};