git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix passing params to OnDisconnect in rscriptd.
[stg.git]
/
include
/
stg
/
corp_conf.h
diff --git
a/include/stg/corp_conf.h
b/include/stg/corp_conf.h
index 88a84f1841c51d46f5bfb7520a816cb2032c1bd4..d6cc2ebbe626f5422de591c3f9e47f26d4e97a83 100644
(file)
--- a/
include/stg/corp_conf.h
+++ b/
include/stg/corp_conf.h
@@
-1,10
+1,22
@@
#ifndef CORP_CONF_H
#define CORP_CONF_H
#ifndef CORP_CONF_H
#define CORP_CONF_H
+#include <string>
+
struct CORP_CONF
{
struct CORP_CONF
{
-string name;
-double cash;
+CORP_CONF() : name(), cash(0) {}
+CORP_CONF(const std::string & n) : name(n), cash(0) {}
+CORP_CONF(const std::string & n, double c) : name(n), cash(c) {}
+
+std::string name;
+double cash;
};
};
+inline
+bool operator==(const CORP_CONF & a, const CORP_CONF & b)
+{
+return a.name == b.name;
+}
+
#endif //CORP_CONF_H
#endif //CORP_CONF_H