]> git.stg.codes - stg.git/blobdiff - include/stg/service_conf.h
Produce debug output only if SMUX_DEBUG is defined
[stg.git] / include / stg / service_conf.h
index ea3495b3dd686052dbb5570f09072b998a994285..5f015d0b4fe05429ec6279712696c1d82397f915 100644 (file)
@@ -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