X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8569ecdc2c9368dc0fe650b901cce7b37337ffec..2ab46b57b6d575e31dbfa48a77cd7308c01f5914:/include/stg/service_conf.h?ds=sidebyside diff --git a/include/stg/service_conf.h b/include/stg/service_conf.h index 473830e4..84f052a5 100644 --- a/include/stg/service_conf.h +++ b/include/stg/service_conf.h @@ -58,6 +58,11 @@ SERVICE_CONF_RES() cost(), payDay() {} +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; @@ -77,6 +82,14 @@ sc.payDay = payDay.data(); 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 name; RESETABLE comment; RESETABLE cost;