]> git.stg.codes - stg.git/commitdiff
Default constructor added for SERVICE_CONF
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 13 Aug 2011 16:11:21 +0000 (19:11 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 13 Aug 2011 16:11:21 +0000 (19:11 +0300)
include/stg/service_conf.h

index ea3495b3dd686052dbb5570f09072b998a994285..5f015d0b4fe05429ec6279712696c1d82397f915 100644 (file)
@@ -5,6 +5,9 @@
 
 struct SERVICE_CONF
 {
 
 struct SERVICE_CONF
 {
+SERVICE_CONF()
+    : name(), comment(), cost(0), payDay(0)
+{}
 SERVICE_CONF(const std::string & n)
     : name(n), 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;
 };
 
 unsigned    payDay;
 };
 
+inline
+bool operator==(const SERVICE_CONF & a, const SERVICE_CONF & b)
+{
+return a.name == b.name;
+}
+
 #endif //SERVICE_CONF_H
 
 #endif //SERVICE_CONF_H