Aldebaran documentation
|
C++ Libraries
|
index
servicemanager
release-2.5.3-2016-11-18
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Pages
servicemanager
servicemanager_structs.h
Go to the documentation of this file.
1
4
#ifndef SERVICEMANAGER_STRUCTS_H
5
#define SERVICEMANAGER_STRUCTS_H
6
7
#include <string>
8
#include <qi/anyobject.hpp>
9
#include <qipackage/package_info.hpp>
10
11
namespace
qi
12
{
13
14
enum
ServiceEventReason
15
{
16
ProcessStartRequest
,
17
ProcessStopRequest
,
18
ProcessStopped
,
19
ProcessCrashed
,
20
ProcessCrashedWhileStopping
21
};
22
23
struct
ServiceProcessInfo
24
{
25
// Default constructor for registering
26
ServiceProcessInfo
()
27
:
running
(false),
name
(
""
),
execStart
(
""
),
autorun
(false)
28
{ }
29
30
ServiceProcessInfo
(
const
qi::PackageService& pkgService,
bool
_running =
false
)
31
:
running
(_running),
name
(pkgService.
name
)
32
,
execStart
(pkgService.
execStart
),
autorun
(pkgService.autoRun)
33
{ }
34
35
bool
running
;
36
std::string
name
;
37
std::string
execStart
;
38
bool
autorun
;
39
};
40
41
}
42
43
QI_TYPE_ENUM
(
qi::ServiceEventReason
);
44
QI_TYPE_STRUCT
(
qi::ServiceProcessInfo
, running, name, execStart, autorun);
45
46
#endif
qi::ProcessCrashedWhileStopping
Definition:
servicemanager_structs.h:20
qi::ServiceProcessInfo
Definition:
servicemanager_structs.h:23
QI_TYPE_STRUCT
QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun)
qi::ServiceProcessInfo::name
std::string name
Definition:
servicemanager_structs.h:36
qi::ProcessStartRequest
Definition:
servicemanager_structs.h:16
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo(const qi::PackageService &pkgService, bool _running=false)
Definition:
servicemanager_structs.h:30
QI_TYPE_ENUM
QI_TYPE_ENUM(qi::ServiceEventReason)
qi::ProcessStopRequest
Definition:
servicemanager_structs.h:17
qi::ProcessStopped
Definition:
servicemanager_structs.h:18
qi::ServiceProcessInfo::autorun
bool autorun
Definition:
servicemanager_structs.h:38
qi::ProcessCrashed
Definition:
servicemanager_structs.h:19
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo()
Definition:
servicemanager_structs.h:26
qi::ServiceProcessInfo::execStart
std::string execStart
Definition:
servicemanager_structs.h:37
qi::ServiceEventReason
ServiceEventReason
Definition:
servicemanager_structs.h:14
qi::ServiceProcessInfo::running
bool running
Definition:
servicemanager_structs.h:35
Copyright Aldebaran Robotics