UniSet
2.8.0
Utilities
codegen
tests
TestGen.h
1
// -----------------------------------------------------------------------------
2
#ifndef TestGen_H_
3
#define TestGen_H_
4
// -----------------------------------------------------------------------------
5
#include "TestGen_SK.h"
6
// -----------------------------------------------------------------------------
7
class
TestGen
:
8
public
TestGen_SK
9
{
10
public
:
11
TestGen
(
uniset::ObjectId
id
, xmlNode* confnode =
uniset::uniset_conf
()->getNode(
"TestGen"
) );
12
virtual
~
TestGen
();
13
14
protected
:
15
TestGen
();
16
17
virtual
void
step()
override
;
18
virtual
void
sensorInfo(
const
uniset::SensorMessage
* sm )
override
;
19
virtual
void
timerInfo(
const
uniset::TimerMessage
* tm )
override
;
20
virtual
void
sysCommand(
const
uniset::SystemMessage
* sm )
override
;
21
#ifndef DISABLE_REST_API
22
virtual
void
httpGetUserData( Poco::JSON::Object::Ptr& jdata )
override
;
23
#endif
24
private
:
25
bool
bool_var = {
false
};
26
int
int_var = {0};
27
uniset::timeout_t t_val = { 0 };
28
};
29
// -----------------------------------------------------------------------------
30
#endif // TestGen_H_
31
// -----------------------------------------------------------------------------
uniset::SensorMessage
Definition:
MessageType.h:126
uniset::uniset_conf
std::shared_ptr< Configuration > uniset_conf() noexcept
Definition:
Configuration.cc:91
uniset::TimerMessage
Definition:
MessageType.h:213
uniset::ObjectId
long ObjectId
Definition:
UniSetTypes_i.idl:30
TestGen
Definition:
TestGen.h:7
uniset::SystemMessage
Definition:
MessageType.h:170
Документация по UniSet. Последние изменения: Вс 25 Окт 2020 00:02:12. Создано системой
1.8.17