- RESETABLE<std::string> configFile;
- RESETABLE<std::string> server;
- RESETABLE<uint16_t> port;
- RESETABLE<std::string> userName;
- RESETABLE<std::string> userPass;
-};
+ STG::Optional<std::string> configFile;
+ STG::Optional<std::string> server;
+ STG::Optional<uint16_t> port;
+ STG::Optional<std::string> localAddress;
+ STG::Optional<uint16_t> localPort;
+ STG::Optional<std::string> userName;
+ STG::Optional<std::string> userPass;
+ STG::Optional<bool> showConfig;
+
+ CONFIG & operator=(const CONFIG & rhs)
+ {
+ if (!rhs.configFile.empty())
+ configFile = rhs.configFile;
+ if (!rhs.server.empty())
+ server = rhs.server;
+ if (!rhs.port.empty())
+ port = rhs.port;
+ if (!rhs.localAddress.empty())
+ localAddress = rhs.localAddress;
+ if (!rhs.localPort.empty())
+ localPort = rhs.localPort;
+ if (!rhs.userName.empty())
+ userName = rhs.userName;
+ if (!rhs.userPass.empty())
+ userPass = rhs.userPass;
+ if (!rhs.showConfig.empty())
+ showConfig = rhs.showConfig;
+ return *this;
+ }