YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ymanager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YCONSOLEMANAGER
7#define YCONSOLEMANAGER
8
9
12#include <yarp/os/Network.h>
13#include <yarp/os/Property.h>
14#include <string>
15
16//namespace ymm {
17
23
24
29
30public:
31 YConsoleManager(int argc, char* argv[]);
32 ~YConsoleManager() override;
33
34
35protected:
36 void onExecutableStart(void* which) override;
37 void onExecutableStop(void* which) override;
38 void onExecutableDied(void* which) override;
39 void onExecutableFailed(void* which) override;
40 void onCnnStablished(void* which) override;
41 void onCnnFailed(void* which) override;
42
43private:
44 bool bShouldRun;
45 yarp::os::Property cmdline;
46 yarp::os::Property config;
47
48 void help();
49 void myMain();
50 bool process(const std::vector<std::string> &cmdList);
51 bool exit();
52 void reportErrors();
53 void which();
54 void checkStates();
55 void checkConnections();
56 bool loadRecursiveApplications(const char* szPath);
57 void updateAppNames(std::vector<std::string>* apps);
58 void setColorTheme(ColorTheme theme);
59 static void onSignal(int signum);
60};
61
62
63#endif //YCONSOLEMANAGER
Class YConsoleManager.
Definition ymanager.h:28
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
void onExecutableDied(void *which) override
Class Manager.
Definition manager.h:20
A class for storing options and configuration information.
Definition Property.h:33
enum _ColorTheme ColorTheme
_ColorTheme
Definition ymanager.h:18
@ THEME_LIGHT
Definition ymanager.h:20
@ THEME_NONE
Definition ymanager.h:21
@ THEME_DARK
Definition ymanager.h:19