Aldebaran documentation
|
C++ Libraries
|
index
servicemanager
2.4.3.28
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
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
ProcessCrashed
19
};
20
21
struct
ServiceProcessInfo
22
{
23
// Default constructor for registering
24
ServiceProcessInfo
()
25
:
running
(false),
name
(
""
),
execStart
(
""
),
autorun
(false)
26
{ }
27
28
ServiceProcessInfo
(
const
qi::PackageService& pkgService,
bool
_running =
false
)
29
:
running
(_running),
name
(pkgService.
name
)
30
,
execStart
(pkgService.
execStart
),
autorun
(pkgService.autoRun)
31
{ }
32
33
bool
running
;
34
std::string
name
;
35
std::string
execStart
;
36
bool
autorun
;
37
};
38
39
}
40
41
QI_TYPE_ENUM_REGISTER
(
qi::ServiceEventReason
);
42
QI_TYPE_STRUCT
(
qi::ServiceProcessInfo
, running, name, execStart, autorun);
43
44
#endif
qi::ServiceProcessInfo
Definition:
servicemanager_structs.h:21
QI_TYPE_STRUCT
QI_TYPE_STRUCT(qi::ServiceProcessInfo, running, name, execStart, autorun)
qi::ServiceProcessInfo::name
std::string name
Definition:
servicemanager_structs.h:34
qi::ProcessStartRequest
Definition:
servicemanager_structs.h:16
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo(const qi::PackageService &pkgService, bool _running=false)
Definition:
servicemanager_structs.h:28
qi::ProcessStopRequest
Definition:
servicemanager_structs.h:17
QI_TYPE_ENUM_REGISTER
QI_TYPE_ENUM_REGISTER(qi::ServiceEventReason)
qi::ServiceProcessInfo::autorun
bool autorun
Definition:
servicemanager_structs.h:36
qi::ProcessCrashed
Definition:
servicemanager_structs.h:18
qi::ServiceProcessInfo::ServiceProcessInfo
ServiceProcessInfo()
Definition:
servicemanager_structs.h:24
qi::ServiceProcessInfo::execStart
std::string execStart
Definition:
servicemanager_structs.h:35
qi::ServiceEventReason
ServiceEventReason
Definition:
servicemanager_structs.h:14
qi::ServiceProcessInfo::running
bool running
Definition:
servicemanager_structs.h:33
Copyright Aldebaran Robotics