40# if defined(YARP_HAS_SYS_TYPES_H)
41# include <sys/types.h>
43# if defined(YARP_HAS_SYS_WAIT_H)
46# if defined(YARP_HAS_SYS_PRCTL_H)
47# include <sys/prctl.h>
60#ifdef YARP_HAS_Libedit
61 #include <editline/readline.h>
62 const char*
commands[
CMD_COUNTS] = {
"help",
"exit",
"list mod",
"list app",
"list res",
"add mod",
63 "add app",
"add res",
"load app",
"run",
"stop",
"kill",
64 "connect",
"disconnect",
"which",
"check state",
65 "check con",
"check dep",
"set",
"get",
"export",
66 "show mod",
"assign hosts",
" "};
73#define DEF_CONFIG_FILE "ymanager.ini"
75#define LOGO_MESSAGE "\
77\\ \\ / / __ ___ __ _ _ __ __ _ __ _ ___ _ __ \n\
78 \\ V / '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|\n\
79 | || | | | | | (_| | | | | (_| | (_| | __/ |\n\
80 |_||_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|\n\
83#define WELCOME_MESSAGE "type \"help\" for more information."
84#define VERSION_MESSAGE "Version 1.1"
86#define HELP_MESSAGE "\
88 yarpmanager-console [option...]\n\n\
90 --application <app> Load a specific application identified by its xml file\n\
91 --run Run the current application (should be used with --application)\n\
92 --stop Stop the current application (should be used with --application)\n\
93 --kill Kill the current application (should be used with --application)\n\
94 --connect Connect all connections from the current application (should be used with --application)\n\
95 --disconnect Disconnect all connections from the current application (should be used with --application)\n\
96 --assign_hosts Automatically assign modules to proper nodes using load balancer. (should be used with --application)\n\
97 --check_dep Check for all resource dependencies of the current application (should be used with --application)\n\
98 --check_state Check for running state of modules of the current application (should be used with --application) \n\
99 --check_con Check the connections states of the of the current application (should be used with --application)\n\
100 --silent Do not print the status messages (should be used with --application)\n\
101 --exit Immediately exit after executing the commands (should be used with --application)\n\
102 --from <conf> Configuration file name\n\
103 --elapsed_time if present the time stamp for log messages will be relative to the GUI start time\n\
104 --version Show current version\n\
113 if (path[0]==
'/'||path[0]==
'\\') {
116 std::string str(path);
117 if (str.length()>1) {
147 if(config.
check(
"help"))
153 if(config.
check(
"version"))
160 if(!config.
check(
"elapsed_time"))
163 clock.setStartTime(
"00:00:00");
185 if (!config.
check(
"apppath")) {
186 config.
put(
"apppath",
"./");
189 if (!config.
check(
"modpath")) {
190 config.
put(
"modpath",
"./");
193 if (!config.
check(
"respath")) {
194 config.
put(
"respath",
"./");
197 if (!config.
check(
"load_subfolders")) {
198 config.
put(
"load_subfolders",
"no");
201 if (!config.
check(
"watchdog")) {
202 config.
put(
"watchdog",
"no");
205 if (!config.
check(
"module_failure")) {
206 config.
put(
"module_failure",
"prompt");
209 if (!config.
check(
"connection_failure")) {
210 config.
put(
"connection_failure",
"prompt");
213 if (!config.
check(
"auto_connect")) {
214 config.
put(
"auto_connect",
"no");
217 if (!config.
check(
"auto_dependency")) {
218 config.
put(
"auto_dependency",
"no");
221 if (!config.
check(
"color_theme")) {
222 config.
put(
"color_theme",
"light");
231 }
else if (config.
find(
"color_theme").
asString() ==
"light") {
243 if (config.
find(
"auto_dependency").
asString() ==
"yes") {
255 if(!config.
check(
"silent"))
261 if(config.
check(
"modpath"))
269 strPath = std::string(
inipath).append(strPath);
275 if(config.
check(
"respath"))
283 strPath = std::string(
inipath).append(strPath);
290 if(config.
check(
"apppath"))
298 strPath = std::string(
inipath).append(strPath);
302 if (!loadRecursiveApplications(strPath.c_str())) {
303 logger->
addError(
"Cannot load the applications from " + strPath);
313#ifdef YARP_HAS_Libedit
319 ::signal(
SIGINT, YConsoleManager::onSignal);
320 ::signal(
SIGBREAK, YConsoleManager::onSignal);
321 ::signal(
SIGTERM, YConsoleManager::onSignal);
326 new_action.sa_handler = YConsoleManager::onSignal;
331 if (old_action.sa_handler !=
SIG_IGN) {
335 if (old_action.sa_handler !=
SIG_IGN) {
339 if (old_action.sa_handler !=
SIG_IGN) {
344 if(config.
check(
"application"))
357#ifdef YARP_HAS_Libedit
363 if (!config.
check(
"silent")) {
367 if (config.
check(
"assign_hosts")) {
371 if(config.
check(
"run"))
373 if (config.
check(
"connect")) {
377 }
else if (config.
check(
"connect")) {
381 if (config.
check(
"disconnect")) {
385 if(config.
check(
"stop"))
401 if(config.
check(
"kill"))
407 if (config.
check(
"check_con")) {
411 if (config.
check(
"check_state")) {
415 if (config.
check(
"check_dep")) {
417 std::cout <<
INFO <<
"All of resource dependencies are satisfied." <<
ENDC <<
'\n';
423 if (!config.
check(
"silent")) {
428 if (!config.
check(
"exit")) {
429 YConsoleManager::myMain();
437void YConsoleManager::onSignal(
int signum)
440 std::cout<<
INFO<<
"[force exit] yarpmanager will terminate all of the running modules on exit.";
449void YConsoleManager::myMain()
453#ifdef YARP_HAS_Libedit
457 while(!std::cin.
eof())
461#ifdef YARP_HAS_Libedit
462 static char*
szLine = (
char*)
nullptr;
483 std::vector<std::string> cmdList;
489 s =
getenv(
"HOME") + s.substr(1);
491 cmdList.push_back(s);
493 if(!process(cmdList))
495 if(cmdList[0] ==
"exit")
497 if (YConsoleManager::exit()) {
503 std::cout<<
"'"<<cmdList[0]<<
"'"<<
INFO<<
" is not correct. ";
504 std::cout<<
"type \"help\" for more information."<<
ENDC<<
'\n';
516 std::cout<<
"bye."<<
'\n';
520bool YConsoleManager::exit()
527 std::cout<<
WARNING<<
"WARNING: ";
528 std::cout<<
INFO<<
"You have some running modules. You might not be able to recover them later. Are you sure? [No/yes] "<<
ENDC;
541bool YConsoleManager::process(
const std::vector<std::string> &cmdList)
543 if (!cmdList.size() || cmdList[0] ==
"") {
550 if((cmdList.size() == 1) &&
551 (cmdList[0] ==
"help"))
561 if((cmdList.size() == 3) &&
562 (cmdList[0] ==
"add") && (cmdList[1] ==
"app"))
565 std::cout <<
INFO << cmdList[2] <<
" is successfully added." <<
ENDC <<
'\n';
568 #ifdef YARP_HAS_Libedit
577 if((cmdList.size() == 3) &&
578 (cmdList[0] ==
"add") && (cmdList[1] ==
"mod"))
581 std::cout <<
INFO << cmdList[2] <<
" is successfully added." <<
ENDC <<
'\n';
590 if((cmdList.size() == 3) &&
591 (cmdList[0] ==
"add") && (cmdList[1] ==
"res"))
594 std::cout <<
INFO << cmdList[2] <<
" is successfully added." <<
ENDC <<
'\n';
604 if((cmdList.size() == 3) &&
605 (cmdList[0] ==
"load") && (cmdList[1] ==
"app"))
639 if((cmdList.size() == 1) &&
640 (cmdList[0] ==
"run"))
646 if((cmdList.size() >= 2) &&
647 (cmdList[0] ==
"run"))
650 for (
unsigned int i = 1; i < cmdList.size(); i++) {
660 if((cmdList.size() == 1) &&
661 (cmdList[0] ==
"stop"))
668 if((cmdList.size() >= 2) &&
669 (cmdList[0] ==
"stop"))
672 for (
unsigned int i = 1; i < cmdList.size(); i++) {
683 if((cmdList.size() == 1) &&
684 (cmdList[0] ==
"kill"))
691 if((cmdList.size() >= 2) &&
692 (cmdList[0] ==
"kill"))
695 for (
unsigned int i = 1; i < cmdList.size(); i++) {
706 if((cmdList.size() == 1) &&
707 (cmdList[0] ==
"connect"))
713 if((cmdList.size() >= 2) &&
714 (cmdList[0] ==
"connect"))
716 for (
unsigned int i = 1; i < cmdList.size(); i++) {
727 if((cmdList.size() == 1) &&
728 (cmdList[0] ==
"disconnect"))
734 if((cmdList.size() >= 2) &&
735 (cmdList[0] ==
"disconnect"))
737 for (
unsigned int i = 1; i < cmdList.size(); i++) {
748 if((cmdList.size() == 1) &&
749 (cmdList[0] ==
"which"))
758 if((cmdList.size() == 2) &&
759 (cmdList[0] ==
"check") && (cmdList[1] ==
"dep"))
762 std::cout <<
INFO <<
"All of resource dependencies are satisfied." <<
ENDC <<
'\n';
772 if((cmdList.size() == 3) &&
773 (cmdList[0] ==
"check") && (cmdList[1] ==
"state"))
777 if(
id>=modules.size())
779 std::cout<<
FAIL<<
"ERROR: "<<
INFO<<
"Module id is out of range."<<
ENDC<<
'\n';
784 std::cout<<
OKGREEN<<
"<RUNNING> ";
786 std::cout <<
FAIL <<
"<STOPPED> ";
788 std::cout<<
INFO<<
"("<<
id<<
") ";
789 std::cout<<modules[id]->getCommand();
790 std::cout<<
" ["<<modules[id]->getHost()<<
"]"<<
ENDC<<
'\n';
794 if((cmdList.size() == 2) &&
795 (cmdList[0] ==
"check") && (cmdList[1] ==
"state"))
806 if((cmdList.size() == 3) &&
807 (cmdList[0] ==
"check") && (cmdList[1] ==
"con"))
812 if(
id>=connections.size())
814 std::cout<<
FAIL<<
"ERROR: "<<
INFO<<
"Connection id is out of range."<<
ENDC<<
'\n';
819 std::cout<<
OKGREEN<<
"<CONNECTED> ";
821 std::cout <<
FAIL <<
"<DISCONNECTED> ";
824 std::cout<<
INFO<<
"("<<
id<<
") ";
825 std::cout<<connections[id].from()<<
" - "<<connections[id].to();
826 std::cout<<
" ["<<connections[id].carrier()<<
"]"<<
ENDC<<
'\n';
830 if((cmdList.size() == 2) &&
831 (cmdList[0] ==
"check") && (cmdList[1] ==
"con"))
842 if((cmdList.size() == 2) &&
843 (cmdList[0] ==
"list") && (cmdList[1] ==
"mod"))
848 for(
auto& mod :
mods)
851 std::string
fpath = mod->getXmlFile();
854 if (pos != std::string::npos) {
859 std::cout<<
INFO<<
"("<<
id++<<
") ";
870 if((cmdList.size() == 2) &&
871 (cmdList[0] ==
"list") && (cmdList[1] ==
"app"))
876 for(
auto& app : apps)
879 std::string
fpath = app->getXmlFile();
882 if (pos != std::string::npos) {
887 std::cout<<
INFO<<
"("<<
id++<<
") ";
897 if((cmdList.size() == 2) &&
898 (cmdList[0] ==
"list") && (cmdList[1] ==
"res"))
909 std::string
fpath = comp->getXmlFile();
911 if (pos != std::string::npos) {
916 std::cout<<
INFO<<
"("<<
id++<<
") ";
917 if (comp->getDisable()) {
920 std::cout <<
OKBLUE << comp->getName() <<
ENDC;
932 if((cmdList.size() == 2) &&
933 (cmdList[0] ==
"export") )
936 std::cout <<
FAIL <<
"ERROR: " <<
INFO <<
"Cannot export graph to " << cmdList[1] <<
"." <<
ENDC <<
'\n';
945 if((cmdList.size() == 3) &&
946 (cmdList[0] ==
"show") && (cmdList[1] ==
"mod"))
949 if(!
kb->getModule(cmdList[2].c_str()))
951 std::cout<<
FAIL<<
"ERROR: "<<
INFO<<
"'"<<cmdList[2].c_str()<<
"' not found."<<
ENDC<<
'\n';
963 if((cmdList.size() == 3) &&
964 (cmdList[0] ==
"set"))
966 config.
unput(cmdList[1]);
967 config.
put(cmdList[1], cmdList[2]);
969 if(cmdList[1] == std::string(
"watchdog"))
971 if (cmdList[2] == std::string(
"yes")) {
978 if(cmdList[1] == std::string(
"auto_dependency"))
980 if (cmdList[2] == std::string(
"yes")) {
987 if(cmdList[1] == std::string(
"auto_connect"))
989 if (cmdList[2] == std::string(
"yes")) {
996 if(cmdList[1] == std::string(
"color_theme"))
998 if (cmdList[2] == std::string(
"dark")) {
1000 }
else if (cmdList[2] == std::string(
"light")) {
1014 if((cmdList.size() == 2) &&
1015 (cmdList[0] ==
"get"))
1017 if(config.
check(cmdList[1]))
1022 std::cout <<
FAIL <<
"ERROR: " <<
INFO <<
"'" << cmdList[1].c_str() <<
"' not found." <<
ENDC <<
'\n';
1030 if((cmdList.size() == 2) &&
1031 (cmdList[0] ==
"assign") && (cmdList[1] ==
"hosts"))
1042void YConsoleManager::help()
1044 std::cout<<
"Here is a list of YARP manager keywords.\n"<<
'\n';
1046 std::cout<<
OKGREEN<<
"exit"<<
INFO<<
" : exit yarp manager."<<
ENDC<<
'\n';
1047 std::cout<<
OKGREEN<<
"list mod"<<
INFO<<
" : list available modules."<<
ENDC<<
'\n';
1048 std::cout<<
OKGREEN<<
"list app"<<
INFO<<
" : list available applications."<<
ENDC<<
'\n';
1049 std::cout<<
OKGREEN<<
"list res"<<
INFO<<
" : list available resources. (i.e. nodes in a cluster)"<<
ENDC<<
'\n';
1050 std::cout<<
OKGREEN<<
"add mod <filename>"<<
INFO<<
" : add a module from its description file."<<
ENDC<<
'\n';
1051 std::cout<<
OKGREEN<<
"add app <filename>"<<
INFO<<
" : add an application from its description file."<<
ENDC<<
'\n';
1052 std::cout<<
OKGREEN<<
"add res <filename>"<<
INFO<<
" : add resources from a description file."<<
ENDC<<
'\n';
1053 std::cout<<
OKGREEN<<
"load app <application>"<<
INFO<<
" : load an application to run."<<
'\n';
1055 std::cout<<
OKGREEN<<
"run [IDs]"<<
INFO<<
" : run application or a modules indicated by IDs."<<
ENDC<<
'\n';
1056 std::cout<<
OKGREEN<<
"stop [IDs]"<<
INFO<<
" : stop running application or modules indicated by IDs."<<
ENDC<<
'\n';
1057 std::cout<<
OKGREEN<<
"kill [IDs]"<<
INFO<<
" : kill running application or modules indicated by IDs."<<
ENDC<<
'\n';
1058 std::cout<<
OKGREEN<<
"connect [IDs]"<<
INFO<<
" : stablish all connections or just one connection indicated by IDs."<<
ENDC<<
'\n';
1059 std::cout<<
OKGREEN<<
"disconnect [IDs]"<<
INFO<<
" : remove all connections or just one connection indicated by IDs."<<
ENDC<<
'\n';
1060 std::cout<<
OKGREEN<<
"which"<<
INFO<<
" : list loaded modules, connections and resource dependencies."<<
ENDC<<
'\n';
1061 std::cout<<
OKGREEN<<
"check dep"<<
INFO<<
" : check for all resource dependencies."<<
ENDC<<
'\n';
1062 std::cout<<
OKGREEN<<
"check state [id]"<<
INFO<<
" : check for running state of application or a module indicated by id."<<
ENDC<<
'\n';
1063 std::cout<<
OKGREEN<<
"check con [id]"<<
INFO<<
" : check for all connections state or just one connection indicated by id."<<
ENDC<<
'\n';
1064 std::cout<<
OKGREEN<<
"set <option> <value>"<<
INFO<<
" : set value to an option."<<
ENDC<<
'\n';
1065 std::cout<<
OKGREEN<<
"get <option>"<<
INFO<<
" : show value of an option."<<
ENDC<<
'\n';
1066 std::cout<<
OKGREEN<<
"export <filename>"<<
INFO<<
" : export application's graph as Graphviz dot format."<<
ENDC<<
'\n';
1069 std::cout<<
OKGREEN<<
"show mod <modname>"<<
INFO<<
" : display module information (description, input, output,...)."<<
ENDC<<
'\n';
1070 std::cout<<
OKGREEN<<
"assign hosts"<<
INFO<<
" : automatically assign modules to proper nodes using load balancer."<<
ENDC<<
'\n';
1076void YConsoleManager::which()
1083 std::cout<<
'\n'<<
HEADER<<
"Application: "<<
ENDC<<
'\n';
1086 std::cout<<
'\n'<<
HEADER<<
"Modules: "<<
ENDC<<
'\n';
1090 std::cout<<
INFO<<
"("<<
id++<<
") ";
1091 std::cout<<
OKBLUE<<(*moditr)->getCommand()<<
INFO;
1092 std::cout<<
" ["<<(*moditr)->getHost()<<
"] ["<<(*moditr)->getParam()<<
"]";
1093 std::cout<<
" ["<<(*moditr)->getEnv()<<
"]"<<
ENDC<<
'\n';
1095 std::cout<<
'\n'<<
HEADER<<
"Connections: "<<
ENDC<<
'\n';
1099 std::cout<<
INFO<<
"("<<
id++<<
") ";
1100 std::cout<<
OKBLUE<<(*cnnitr).from()<<
" - "<<(*cnnitr).to()<<
INFO;
1101 std::cout<<
" ["<<(*cnnitr).carrier()<<
"]";
1102 std::cout<<
ENDC<<
'\n';
1105 std::cout<<
'\n'<<
HEADER<<
"Resources:"<<
ENDC<<
'\n';
1110 std::cout<<
INFO<<
"("<<
id++<<
") ";
1116void YConsoleManager::checkStates()
1120 unsigned int id = 0;
1128 bool isRunning =
false;
1130 if (
exe &&
exe->getBrokerType() == BrokerType::yarp) {
1131 const std::string host =
exe->getHost();
1136 const std::string
exeCmd =
exe->getCommand();
1138 for (
const auto& proc :
procIt->second) {
1139 const bool statusRunning = proc.status.empty() || proc.status ==
"running";
1160 std::cout<<
OKGREEN<<
"<RUNNING> ";
1162 std::cout <<
FAIL <<
"<STOPPED> ";
1164 std::cout<<
INFO<<
"("<<
id<<
") ";
1165 std::cout<<(*moditr)->getCommand();
1166 std::cout<<
" ["<<(*moditr)->getHost()<<
"]"<<
ENDC<<
'\n';
1171void YConsoleManager::checkConnections()
1179 std::cout<<
OKGREEN<<
"<CONNECTED> ";
1181 std::cout <<
FAIL <<
"<DISCONNECTED> ";
1184 std::cout<<
INFO<<
"("<<
id<<
") ";
1185 std::cout<<(*cnnitr).from()<<
" - "<<(*cnnitr).to();
1186 std::cout<<
" ["<<(*cnnitr).carrier()<<
"]"<<
ENDC<<
'\n';
1191void YConsoleManager::reportErrors()
1217 if (config.
find(
"module_failure").
asString() ==
"prompt") {
1218 std::cout <<
exe->getCommand() <<
" from " <<
exe->getHost() <<
" is failed!" <<
'\n';
1221 if(config.
find(
"module_failure").
asString() ==
"recover")
1223 std::cout<<
'\n'<<
exe->getCommand()<<
" from "<<
exe->getHost()<<
" is failed! (restarting...)"<<
'\n';
1227 if(config.
find(
"module_failure").
asString() ==
"terminate")
1229 std::cout<<
'\n'<<
exe->getCommand()<<
" from "<<
exe->getHost()<<
" is failed! (terminating application...)"<<
'\n';
1241 if (config.
check(
"connection_failure") && config.
find(
"connection_failure").
asString() ==
"prompt") {
1243 <<
"connection failed between " <<
cnn->from() <<
" and " <<
cnn->to() <<
'\n';
1246 if(bShouldRun && config.
check(
"connection_failure") &&
1247 config.
find(
"connection_failure").
asString() ==
"terminate")
1249 std::cout<<
'\n'<<
"connection failed between "<<
cnn->from()<<
" and "<<
cnn->to()<<
"(terminating application...)"<<
'\n';
1257bool YConsoleManager::loadRecursiveApplications(
const char*
szPath)
1260 std::string strPath =
szPath;
1267 if ((
dir =
opendir(strPath.c_str())) ==
nullptr) {
1275 if((std::string(
entry->d_name) != std::string(
"."))
1276 && (std::string(
entry->d_name) != std::string(
"..")))
1278 std::string name = strPath + std::string(
entry->d_name);
1279 loadRecursiveApplications(name.c_str());
1288void YConsoleManager::updateAppNames(std::vector<std::string>* names)
1293 for (
auto& app : apps) {
1294 names->push_back(app->getName());
1344#ifdef YARP_HAS_Libedit
1399 if (
strncmp(name, text, len) == 0) {
1405 return ((
char *)
nullptr);
1424 if (
strncmp(name, text, len) == 0) {
1429 return ((
char *)
nullptr);
void onCnnFailed(void *which) override
void onExecutableStop(void *which) override
~YConsoleManager() override
void onExecutableFailed(void *which) override
void onCnnStablished(void *which) override
void onExecutableStart(void *which) override
YConsoleManager(int argc, char *argv[])
Class YConsoleManager.
void onExecutableDied(void *which) override
Singleton class For storing execution start time.
static ClockStart & getInstance()
Singleton class ErrorLogger.
const char * getLastError()
void addError(const char *szError)
static ErrorLogger * Instance()
Singleton class ErrorLogger.
const char * getLastWarning()
bool addApplication(Application *application, char **szAppName_=nullptr, bool modifyName=false)
ExecutablePContainer & getExecutables()
bool addModule(const char *szFileName)
CnnContainer & getConnections()
ResourcePContainer & getResources()
bool addModules(const char *szPath)
const char * getApplicationName()
bool addResources(const char *szPath)
bool addApplication(const char *szFileName, char **szAppName_=nullptr, bool modifyName=false)
void disableAutoDependency()
bool addResource(const char *szFileName)
void collectYarprunProcessesByHost(std::map< std::string, ProcessContainer > &hostProcesses, std::map< std::string, bool > &hostQueryOk)
void enableAutoDependency()
bool addApplications(const char *szPath)
bool loadApplication(const char *szAppName)
bool exportDependencyGraph(const char *szFileName)
KnowledgeBase * getKnowledgeBase()
void disableAutoConnect()
A mini-server for performing network communication in the background.
std::string getName() const override
Get name of port.
BufferedPort()
Constructor.
A controller for an individual connection.
A class for storing options and configuration information.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
void fromString(const std::string &txt, bool wipe=true)
Interprets a string as a list of properties.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
void unput(const std::string &key)
Remove the association from the given key to a value, if present.
Helper class for finding config files and other external resources.
bool setDefaultContext(const std::string &contextName)
Sets the context for the current ResourceFinder object.
bool configure(int argc, char *argv[], bool skipFirstArgument=true)
Sets up the ResourceFinder.
std::string toString() const override
Return a standard text representation of the content of the object.
std::string findFile(const std::string &name)
Find the full path to a file.
bool setDefaultConfigFile(const std::string &fname)
Provide a default value for the configuration file (can be overridden from command line with the –fro...
virtual std::string asString() const
Get string value.
static constexpr value_type preferred_separator
bool compareString(const char *szFirst, const char *szSecond)
std::vector< Executable * >::iterator ExecutablePIterator
void trimString(std::string &str)
std::vector< GenericResource * >::iterator ResourcePIterator
std::vector< Connection >::iterator CnnIterator
std::vector< Executable * > ExecutablePContainer
std::vector< Module * > ModulePContainer
std::vector< GenericResource * > ResourcePContainer
std::vector< Application * > ApplicaitonPContainer
std::vector< Connection > CnnContainer
An interface to the operating system, including Port based communication.
const char * getenv(const char *var)
Portable wrapper for the getenv() function.
bool isAbsolute(const char *path)
bool isAbsolute(const char *path)