- RS_USER();
- RS_USER(const std::vector<uint32_t> & r, user_iter it);
-time_t lastSentTime;
-user_iter user;
-std::vector<uint32_t> routers;
-int shortPacketsCount;
-};
-//-----------------------------------------------------------------------------
-class RS_SETTINGS
-{
-public:
- RS_SETTINGS();
- virtual ~RS_SETTINGS() {};
- const std::string & GetStrError() const { return errorStr; };
- int ParseSettings(const MODULE_SETTINGS & s);
- int GetSendPeriod() const { return sendPeriod; };
- int GetPort() const { return port; };
- const std::vector<NET_ROUTER> & GetSubnetsMap() const { return netRouters; };
- const std::vector<std::string> & GetUserParams() const { return userParams; };
- const std::string & GetPassword() const { return password; };
- const std::string & GetMapFileName() const { return subnetFile; };
-
-private:
- int ParseIntInRange(const std::string & str, int min, int max, int * val);
- int sendPeriod;
- uint16_t port;
- string errorStr;
- std::vector<NET_ROUTER> netRouters;
- std::vector<string> userParams;
- string password;
- string subnetFile;
+ public:
+ SETTINGS();
+ virtual ~SETTINGS() {}
+ const std::string & GetStrError() const { return errorStr; }
+ int ParseSettings(const ModuleSettings & s);
+ int GetSendPeriod() const { return sendPeriod; }
+ uint16_t GetPort() const { return port; }
+ const std::vector<NET_ROUTER> & GetSubnetsMap() const { return netRouters; }
+ const std::vector<std::string> & GetUserParams() const { return userParams; }
+ const std::string & GetPassword() const { return password; }
+ const std::string & GetMapFileName() const { return subnetFile; }
+
+ private:
+ int sendPeriod;
+ uint16_t port;
+ std::string errorStr;
+ std::vector<NET_ROUTER> netRouters;
+ std::vector<std::string> userParams;
+ std::string password;
+ std::string subnetFile;