12 : name(), comment(), cost(0), payDay(0)
14 SERVICE_CONF(const std::string & n)
15 : name(n), comment(), cost(0), payDay(0)
17 SERVICE_CONF(const std::string & n, double c)
18 : name(n), comment(), cost(c), payDay(0)
20 SERVICE_CONF(const std::string & n, double c, unsigned p)
21 : name(n), comment(), cost(c), payDay(static_cast<uint8_t>(p))
23 SERVICE_CONF(const std::string & n, double c,
24 unsigned p, const std::string & com)
25 : name(n), comment(com), cost(c), payDay(static_cast<uint8_t>(p))
34 struct SERVICE_CONF_RES
41 SERVICE_CONF_RES & operator=(const SERVICE_CONF & conf)
44 comment = conf.comment;
50 SERVICE_CONF GetData() const
53 sc.name = name.data();
54 sc.comment = comment.data();
55 sc.cost = cost.data();
56 sc.payDay = payDay.data();
60 RESETABLE<std::string> name;
61 RESETABLE<std::string> comment;
62 RESETABLE<double> cost;
63 RESETABLE<uint8_t> payDay;
67 bool operator==(const SERVICE_CONF & a, const SERVICE_CONF & b)
69 return a.name == b.name;
72 #endif //SERVICE_CONF_H