UniSet
2.6.0
Титульная страница
Описания
Группы
Пространства имен
Классы
include
SMonitor.h
1
/*
2
* Copyright (c) 2015 Pavel Vainerman.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as
6
* published by the Free Software Foundation, version 2.1.
7
*
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Lesser Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
// -----------------------------------------------------------------------------
17
#ifndef SMonitor_H_
18
#define SMonitor_H_
19
// -----------------------------------------------------------------------------
20
#include <list>
21
#include <UniSetObject.h>
22
#include "UniSetTypes.h"
23
// -----------------------------------------------------------------------------
24
namespace
uniset
25
{
26
27
class
SMonitor
:
28
public
UniSetObject
29
{
30
public
:
31
32
SMonitor
(
uniset::ObjectId
id
);
33
~
SMonitor
();
34
35
// -----
36
protected
:
37
virtual
void
sysCommand(
const
uniset::SystemMessage
* sm )
override
;
38
virtual
void
sensorInfo(
const
uniset::SensorMessage
* si )
override
;
39
virtual
void
timerInfo(
const
uniset::TimerMessage
* tm )
override
;
40
virtual
void
sigterm
(
int
signo )
override
;
41
SMonitor
();
42
43
private
:
44
typedef
std::list<uniset::ParamSInfo> MyIDList;
45
MyIDList lst;
46
std::string script;
47
};
48
// -------------------------------------------------------------------------
49
}
// end of uniset namespace
50
// -----------------------------------------------------------------------------
51
#endif
52
// -----------------------------------------------------------------------------
Документация по UniSet. Последние изменения: Вс 15 Янв 2017 18:59:12. Создано системой
1.8.1.2