getter function for current state

This commit is contained in:
muellerr committed 2021-08-05 16:02:17 +02:00
1 parent c8472beb5f
commit 4202205182
2 files changed
+5

No files matched your search

+4
View File
@@ -156,6 +156,10 @@ int CommandExecutor::getLastError() const {
return this->lastError;
}
CommandExecutor::States CommandExecutor::getCurrentState() const {
return state;
}
ReturnValue_t CommandExecutor::executeBlocking() {
while(fgets(readVec.data(), readVec.size(), currentCmdFile) != nullptr) {
std::string output(readVec.data());
+1
View File
@@ -97,6 +97,7 @@ public:
*/
ReturnValue_t close();
States getCurrentState() const;
int getLastError() const;
void printLastError(std::string funcName) const;