Version 0.0.1 fixing issues.
This commit is contained in:
parent
7e8c45e88e
commit
cc12b4765c
1 changed files with 55 additions and 42 deletions
11
appinfo.cpp
11
appinfo.cpp
|
|
@ -4,7 +4,7 @@
|
|||
#include <sstream>
|
||||
|
||||
AppInfo::~AppInfo() {
|
||||
std::cout << "Module: " << getModuleName() << " finished ops." << std::endl;
|
||||
std::cout << "Module: " << getModuleName() << " finished ops." << std::endl;
|
||||
}
|
||||
|
||||
void AppInfo::setProgramName(std::string name)
|
||||
|
|
@ -66,7 +66,7 @@ bool AppInfo::isParentDependencyCleared(std::osyncstream &out) const
|
|||
{
|
||||
for(auto &[key, value]: parents) {
|
||||
if(key->getState() != value) {
|
||||
out << key->getModuleName() << " not at state: " << stateToString(state) <<
|
||||
out << key->getModuleName() << " not at state: " << stateToString(value) <<
|
||||
" but is at:" << stateToString(key->getState()) << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
|
@ -130,6 +130,7 @@ void AppInfo::copyFromData(AppInfo::AppData &other)
|
|||
for(auto &i: other.args) {
|
||||
this->args.push_back(i);
|
||||
}
|
||||
this->after = other.after;
|
||||
setRunMode(other.run_mode);
|
||||
}
|
||||
|
||||
|
|
@ -187,7 +188,8 @@ void AppInfo::printInfo(std::ostream &out)
|
|||
ss << key << "[" << value << "], ";
|
||||
}
|
||||
std::string after = ss.str();
|
||||
after = after.substr(0,after.size() - 2);
|
||||
if(!after.empty() && after.size() >= 2)
|
||||
after = after.substr(0,after.size() - 2);
|
||||
out << "After: " << after << std::endl;
|
||||
std::stringstream ss2;
|
||||
for(auto &[key, value]: parents) {
|
||||
|
|
@ -263,7 +265,8 @@ void AppInfo::AppData::printInfo(std::ostream &out)
|
|||
ss << key << "[" << value << "], ";
|
||||
}
|
||||
std::string after = ss.str();
|
||||
after = after.substr(0,after.size() - 2);
|
||||
if(!after.empty() && after.size() >= 2)
|
||||
after = after.substr(0,after.size() - 2);
|
||||
out << "After: " << after << std::endl;
|
||||
out << "Create Log: " << AppData::create_log << std::endl;
|
||||
out << "************************************End************************************" << std::endl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue