17#ifndef PassiveLProcessor_H_
18#define PassiveLProcessor_H_
22#include "UniSetTypes.h"
23#include "UniSetObject.h"
24#include "Extensions.h"
25#include "SharedMemory.h"
26#include "UInterface.h"
27#include "SMInterface.h"
28#include "LProcessor.h"
29#include "USingleProcess.h"
30#ifndef DISABLE_REST_API
31#include <Poco/JSON/Object.h>
32#include "UHttpRequestHandler.h"
46 uniset::ObjectId shmID,
const std::shared_ptr<SharedMemory>& ic =
nullptr,
const std::string& prefix =
"lproc" );
54 static void help_print(
int argc,
const char*
const* argv );
56 static std::shared_ptr<PassiveLProcessor> init_plproc(
int argc,
const char*
const* argv,
58 const std::string& prefix =
"plproc" );
63 shm(0), maxHeartBeat(0) {};
65 virtual void step()
override;
67 virtual void setOuts()
override;
72 void askSensors(
const UniversalIO::UIOCommand cmd );
79 std::shared_ptr<SMInterface> shm;
81#ifndef DISABLE_REST_API
83 virtual Poco::JSON::Object::Ptr httpHelp(
const Poco::URI::QueryParameters& p )
override;
86 Poco::JSON::Object::Ptr httpSchema();
87 Poco::JSON::Object::Ptr httpSchemaElements();
88 Poco::JSON::Object::Ptr httpSchemaInputs();
89 Poco::JSON::Object::Ptr httpSchemaOutputs();
90 Poco::JSON::Object::Ptr httpSchemaConnections();
96 int maxHeartBeat = { 10 };
97 IOController::IOStateList::iterator itHeartBeat;
98 std::mutex mutex_start;
99 std::atomic_bool cannceled = {
false };
Definition LProcessor.h:122
Definition PassiveLProcessor.h:42
virtual bool deactivateObject() override
Деактивация объекта (переопределяется для необходимых действий при завершении работы)
Definition PassiveLProcessor.cc:225
virtual bool activateObject() override
Активизация объекта (переопределяется для необходимых действий после активизации)
Definition PassiveLProcessor.cc:211
virtual void getInputs() override
Definition PassiveLProcessor.cc:111
Пассивный таймер
Definition PassiveTimer.h:94
Definition MessageType.h:127
Definition MessageType.h:171
Definition MessageType.h:214
Definition UniSetObject.h:80
Definition AccessConfig.h:30
const ObjectId DefaultObjectId
Definition UniSetTypes.h:71
long ObjectId
Definition UniSetTypes_i.idl:30
Definition UHttpRequestHandler.h:87