X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a5ce0ca3674081d3b761eb1bc88654d6fd9d3755..fd350a649f3454ebef042b0e6b727f3c5d18400b:/include/stg/service_conf.h diff --git a/include/stg/service_conf.h b/include/stg/service_conf.h index ea3495b3..5f015d0b 100644 --- a/include/stg/service_conf.h +++ b/include/stg/service_conf.h @@ -5,6 +5,9 @@ struct SERVICE_CONF { +SERVICE_CONF() + : name(), comment(), cost(0), payDay(0) +{} SERVICE_CONF(const std::string & n) : name(n), comment(), cost(0), payDay(0) {} @@ -25,5 +28,11 @@ double cost; unsigned payDay; }; +inline +bool operator==(const SERVICE_CONF & a, const SERVICE_CONF & b) +{ +return a.name == b.name; +} + #endif //SERVICE_CONF_H