#include "ymanager.h"
#include <yarp/manager/xmlapploader.h>
#include <yarp/manager/application.h>
#include <dirent.h>
#include <yarp/conf/filesystem.h>
#include <yarp/os/ResourceFinder.h>
#include <sstream>
#include <cstring>
#include <csignal>
#include <unistd.h>
#include <cerrno>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/prctl.h>
Go to the source code of this file.
Macros | |
#define | CMD_COUNTS 24 |
#define | DEF_CONFIG_FILE "ymanager.ini" |
#define | LOGO_MESSAGE "\__ __\n\\\ \\ / / __ ___ __ _ _ __ __ _ __ _ ___ _ __ \n\ \\ V / '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|\n\ | || | | | | | (_| | | | | (_| | (_| | __/ |\n\ |_||_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|\n\ |___/" |
#define | WELCOME_MESSAGE "type \"help\" for more information." |
#define | VERSION_MESSAGE "Version 1.1" |
#define | HELP_MESSAGE "\Usage:\n\ yarpmanager-console [option...]\n\n\Options:\n\ --application <app> Load a specific application identified by its xml file\n\ --run Run the current application (should be used with --application)\n\ --stop Stop the current application (should be used with --application)\n\ --kill Kill the current application (should be used with --application)\n\ --connect Connect all connections from the current application (should be used with --application)\n\ --disconnect Disconnect all connections from the current application (should be used with --application)\n\ --assign_hosts Automatically assign modules to proper nodes using load balancer. (should be used with --application)\n\ --check_dep Check for all resource dependencies of the current application (should be used with --application)\n\ --check_state Check for running state of modules of the current application (should be used with --application) \n\ --check_con Check the connections states of the of the current application (should be used with --application)\n\ --silent Do not print the status messages (should be used with --application)\n\ --exit Immediately exit after executing the commands (should be used with --application)\n\ --from <conf> Configuration file name\n\ --elapsed_time if present the time stamp for log messages will be relative to the GUI start time\n\ --version Show current version\n\ --help Show help\n" |
Functions | |
bool | isAbsolute (const char *path) |
Variables | |
std::string | HEADER |
std::string | OKBLUE |
std::string | OKGREEN |
std::string | WARNING |
std::string | FAIL |
std::string | INFO |
std::string | ENDC |
#define CMD_COUNTS 24 |
Definition at line 56 of file ymanager.cpp.
#define DEF_CONFIG_FILE "ymanager.ini" |
Definition at line 70 of file ymanager.cpp.
#define HELP_MESSAGE "\Usage:\n\ yarpmanager-console [option...]\n\n\Options:\n\ --application <app> Load a specific application identified by its xml file\n\ --run Run the current application (should be used with --application)\n\ --stop Stop the current application (should be used with --application)\n\ --kill Kill the current application (should be used with --application)\n\ --connect Connect all connections from the current application (should be used with --application)\n\ --disconnect Disconnect all connections from the current application (should be used with --application)\n\ --assign_hosts Automatically assign modules to proper nodes using load balancer. (should be used with --application)\n\ --check_dep Check for all resource dependencies of the current application (should be used with --application)\n\ --check_state Check for running state of modules of the current application (should be used with --application) \n\ --check_con Check the connections states of the of the current application (should be used with --application)\n\ --silent Do not print the status messages (should be used with --application)\n\ --exit Immediately exit after executing the commands (should be used with --application)\n\ --from <conf> Configuration file name\n\ --elapsed_time if present the time stamp for log messages will be relative to the GUI start time\n\ --version Show current version\n\ --help Show help\n" |
Definition at line 83 of file ymanager.cpp.
#define LOGO_MESSAGE "\__ __\n\\\ \\ / / __ ___ __ _ _ __ __ _ __ _ ___ _ __ \n\ \\ V / '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|\n\ | || | | | | | (_| | | | | (_| | (_| | __/ |\n\ |_||_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|\n\ |___/" |
Definition at line 72 of file ymanager.cpp.
#define VERSION_MESSAGE "Version 1.1" |
Definition at line 81 of file ymanager.cpp.
Definition at line 80 of file ymanager.cpp.
Definition at line 109 of file ymanager.cpp.
std::string ENDC |
Definition at line 52 of file ymanager.cpp.
std::string FAIL |
Definition at line 50 of file ymanager.cpp.
std::string HEADER |
Definition at line 46 of file ymanager.cpp.
std::string INFO |
Definition at line 51 of file ymanager.cpp.
std::string OKBLUE |
Definition at line 47 of file ymanager.cpp.
std::string OKGREEN |
Definition at line 48 of file ymanager.cpp.
std::string WARNING |
Definition at line 49 of file ymanager.cpp.