#define SERVICE_CONF_H
#include "resetable.h"
-#include "os_int.h"
#include <string>
+#include <cstdint>
struct SERVICE_CONF
{
SERVICE_CONF()
: name(), comment(), cost(0), payDay(0)
{}
-SERVICE_CONF(const std::string & n)
+explicit SERVICE_CONF(const std::string & n)
: name(n), comment(), cost(0), payDay(0)
{}
SERVICE_CONF(const std::string & n, double c)
cost(), payDay()
{}
+explicit SERVICE_CONF_RES(const SERVICE_CONF & rhs)
+ : name(rhs.name), comment(rhs.comment),
+ cost(rhs.cost), payDay(rhs.payDay)
+{}
+
SERVICE_CONF_RES & operator=(const SERVICE_CONF & conf)
{
name = conf.name;
return sc;
}
+void Splice(const SERVICE_CONF_RES & rhs)
+{
+name.splice(rhs.name);
+comment.splice(rhs.comment);
+cost.splice(rhs.cost);
+payDay.splice(rhs.payDay);
+}
+
RESETABLE<std::string> name;
RESETABLE<std::string> comment;
RESETABLE<double> cost;