]> git.stg.codes - stg.git/blob - include/stg/service_conf.h
Get<Something>Num -> Count in interfaces
[stg.git] / include / stg / service_conf.h
1 #ifndef SERVICE_CONF_H
2 #define SERVICE_CONF_H
3
4 #include <string>
5
6 struct SERVICE_CONF
7 {
8 SERVICE_CONF(const std::string & n)
9     : name(n), comment(), cost(0), payDay(0)
10 {}
11 SERVICE_CONF(const std::string & n, double c)
12     : name(n), comment(), cost(c), payDay(0)
13 {}
14 SERVICE_CONF(const std::string & n, double c, unsigned p)
15     : name(n), comment(), cost(c), payDay(p)
16 {}
17 SERVICE_CONF(const std::string & n, double c,
18              unsigned p, const std::string & com)
19     : name(n), comment(com), cost(c), payDay(p)
20 {}
21
22 std::string name;
23 std::string comment;
24 double      cost;
25 unsigned    payDay;
26 };
27
28 #endif //SERVICE_CONF_H
29