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 old-style casts.
[stg.git]
/
projects
/
sgconf
/
corps.cpp
diff --git
a/projects/sgconf/corps.cpp
b/projects/sgconf/corps.cpp
index 4bd436dd2f56676e09e165fb4c78a2563d04b8ba..586ddcd5dffcd2a92d93d541c65b4c0c9c65f7fd 100644
(file)
--- a/
projects/sgconf/corps.cpp
+++ b/
projects/sgconf/corps.cpp
@@
-24,7
+24,7
@@
if (level == 0)
return dash ? std::string(level * 4 - 2, ' ') + "- " : std::string(level * 4, ' ');
}
return dash ? std::string(level * 4 - 2, ' ') + "- " : std::string(level * 4, ' ');
}
-void PrintCorp(const STG::G
ET_CORP::INFO
& info, size_t level = 0)
+void PrintCorp(const STG::G
etCorp::Info
& info, size_t level = 0)
{
std::cout << Indent(level, true) << "name: " << info.name << "\n"
<< Indent(level) << "cash: " << info.cash << "\n";
{
std::cout << Indent(level, true) << "name: " << info.name << "\n"
<< Indent(level) << "cash: " << info.cash << "\n";
@@
-51,7
+51,7
@@
std::cout << "Success.\n";
void GetCorpsCallback(bool result,
const std::string & reason,
void GetCorpsCallback(bool result,
const std::string & reason,
- const std::vector<STG::G
ET_CORP::INFO
> & info,
+ const std::vector<STG::G
etCorp::Info
> & info,
void * /*data*/)
{
if (!result)
void * /*data*/)
{
if (!result)
@@
-66,7
+66,7
@@
for (size_t i = 0; i < info.size(); ++i)
void GetCorpCallback(bool result,
const std::string & reason,
void GetCorpCallback(bool result,
const std::string & reason,
- const STG::G
ET_CORP::INFO
& info,
+ const STG::G
etCorp::Info
& info,
void * /*data*/)
{
if (!result)
void * /*data*/)
{
if (!result)
@@
-81,7
+81,7
@@
bool GetCorpsFunction(const SGCONF::CONFIG & config,
const std::string & /*arg*/,
const std::map<std::string, std::string> & /*options*/)
{
const std::string & /*arg*/,
const std::map<std::string, std::string> & /*options*/)
{
-STG::S
ERVCONF
proto(config.server.data(),
+STG::S
ervConf
proto(config.server.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
@@
-94,7
+94,7
@@
bool GetCorpFunction(const SGCONF::CONFIG & config,
const std::string & arg,
const std::map<std::string, std::string> & /*options*/)
{
const std::string & arg,
const std::map<std::string, std::string> & /*options*/)
{
-STG::S
ERVCONF
proto(config.server.data(),
+STG::S
ervConf
proto(config.server.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
@@
-107,7
+107,7
@@
bool DelCorpFunction(const SGCONF::CONFIG & config,
const std::string & arg,
const std::map<std::string, std::string> & /*options*/)
{
const std::string & arg,
const std::map<std::string, std::string> & /*options*/)
{
-STG::S
ERVCONF
proto(config.server.data(),
+STG::S
ervConf
proto(config.server.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
@@
-120,10
+120,10
@@
bool AddCorpFunction(const SGCONF::CONFIG & config,
const std::string & arg,
const std::map<std::string, std::string> & options)
{
const std::string & arg,
const std::map<std::string, std::string> & options)
{
-
CORP_CONF_RES
conf;
+
STG::CorpConfOpt
conf;
conf.name = arg;
SGCONF::MaybeSet(options, "cash", conf.cash);
conf.name = arg;
SGCONF::MaybeSet(options, "cash", conf.cash);
-STG::S
ERVCONF
proto(config.server.data(),
+STG::S
ervConf
proto(config.server.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
@@
-136,10
+136,10
@@
bool ChgCorpFunction(const SGCONF::CONFIG & config,
const std::string & arg,
const std::map<std::string, std::string> & options)
{
const std::string & arg,
const std::map<std::string, std::string> & options)
{
-
CORP_CONF_RES
conf;
+
STG::CorpConfOpt
conf;
conf.name = arg;
SGCONF::MaybeSet(options, "cash", conf.cash);
conf.name = arg;
SGCONF::MaybeSet(options, "cash", conf.cash);
-STG::S
ERVCONF
proto(config.server.data(),
+STG::S
ervConf
proto(config.server.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),
config.port.data(),
config.localAddress.data(),
config.localPort.data(),