|
UniSet 2.32.1
|
#include <OPCUAServer.h>
Классы | |
| struct | IOMethod |
| struct | IONode |
| struct | IOVariable |
Открытые типы | |
| using | DefaultValueType = int32_t |
| using | DefaultValueUType = uint32_t |
Открытые члены | |
| OPCUAServer (uniset::ObjectId objId, xmlNode *cnode, uniset::ObjectId shmID, const std::shared_ptr< SharedMemory > &ic=nullptr, const std::string &prefix="opcua") | |
| virtual CORBA::Boolean | exist () override |
Открытые члены унаследованные от UObject_SK | |
| UObject_SK (uniset::ObjectId id, xmlNode *node=uniset::uniset_conf() ->getNode("UObject"), const std::string &argprefix="", xmlNode *globalConfNode=nullptr) | |
| long | getValue (uniset::ObjectId sid) |
| void | setValue (uniset::ObjectId sid, long value) |
| void | askSensor (uniset::ObjectId sid, UniversalIO::UIOCommand, uniset::ObjectId node=uniset::uniset_conf() ->getLocalNode()) |
| virtual uniset::SimpleInfo * | getInfo (const char *userparam) override |
| std::shared_ptr< DebugStream > | log () noexcept |
| std::shared_ptr< uniset::LogAgregator > | logAgregator () noexcept |
| void | init_dlog (std::shared_ptr< DebugStream > d) noexcept |
| std::string | dumpVars () |
| std::string | help () const noexcept |
| virtual Poco::JSON::Object::Ptr | httpGet (const Poco::URI::QueryParameters &p) override |
| virtual Poco::JSON::Object::Ptr | httpRequest (const std::string &req, const Poco::URI::QueryParameters &p) override |
| virtual Poco::JSON::Object::Ptr | httpHelp (const Poco::URI::QueryParameters &p) override |
Открытые члены унаследованные от uniset::UniSetObject | |
| UniSetObject (const std::string &name, const std::string §ion) | |
| UniSetObject (uniset::ObjectId id) | |
| virtual uniset::ObjectId | getId () override |
| const uniset::ObjectId | getId () const |
| std::string | getName () const |
| virtual uniset::ObjectType | getType () override |
| const std::string | getStrType () |
| virtual uniset::SimpleInfo * | apiRequest (const char *query) override |
| virtual void | push (const uniset::TransportMessage &msg) override |
| поместить сообщение в очередь | |
| virtual void | pushMessage (const char *msg, ::CORBA::Long mtype, const ::uniset::Timespec &tm, const ::uniset::ProducerInfo &pi, ::CORBA::Long priority, ::CORBA::Long consumer) override |
| поместить текстовое сообщение в очередь | |
| uniset::ObjectPtr | getRef () const |
| std::shared_ptr< UniSetObject > | get_ptr () |
| virtual timeout_t | askTimer (uniset::TimerId timerid, timeout_t timeMS, clock_t ticks=-1, uniset::Message::Priority p=uniset::Message::High) override |
Открытые члены унаследованные от uniset::LT_Object | |
| timeout_t | checkTimers (UniSetObject *obj) |
| timeout_t | getTimeInterval (uniset::TimerId timerid) const |
| timeout_t | getTimeLeft (uniset::TimerId timerid) const |
Открытые статические члены | |
| static std::shared_ptr< OPCUAServer > | init_opcua_server (int argc, const char *const *argv, uniset::ObjectId shmID, const std::shared_ptr< SharedMemory > &ic=nullptr, const std::string &prefix="opcua") |
| static void | help_print () |
| static uint8_t | firstBit (DefaultValueUType mask) |
| static DefaultValueUType | getBits (DefaultValueUType value, DefaultValueUType mask, uint8_t offset) |
| static DefaultValueUType | setBits (DefaultValueUType value, DefaultValueUType set, DefaultValueUType mask, uint8_t offset) |
| static DefaultValueUType | forceSetBits (DefaultValueUType value, DefaultValueUType set, DefaultValueUType mask, uint8_t offset) |
| static UA_StatusCode | UA_setValueMethod (UA_Server *server, const UA_NodeId *sessionId, void *sessionHandle, const UA_NodeId *methodId, void *methodContext, const UA_NodeId *objectId, void *objectContext, size_t inputSize, const UA_Variant *input, size_t outputSize, UA_Variant *output) |
Статические открытые данные | |
| static const opcua::Type | DefaultVariableType = { opcua::Type::Int32 } |
Защищенные члены | |
| virtual void | callback () noexcept override |
| virtual void | sysCommand (const uniset::SystemMessage *sm) override |
| virtual bool | deactivateObject () override |
| Деактивация объекта (переопределяется для необходимых действий при завершении работы) | |
| virtual void | askSensors (UniversalIO::UIOCommand cmd) override |
| virtual void | sensorInfo (const uniset::SensorMessage *sm) override |
| virtual std::string | getMonitInfo () const override |
| void | serverLoopTerminate () |
| void | serverLoop () |
| void | updateLoop () |
| void | update () |
| bool | initVariable (UniXML::iterator &it) |
| bool | readItem (const std::shared_ptr< UniXML > &xml, UniXML::iterator &it, xmlNode *sec) |
| void | readConfiguration () |
Защищенные члены унаследованные от UObject_SK | |
| virtual void | processingMessage (const uniset::VoidMessage *msg) override |
| virtual void | timerInfo (const uniset::TimerMessage *tm) override |
| virtual bool | activateObject () override |
| Активизация объекта (переопределяется для необходимых действий после активизации) | |
| virtual std::string | getTypeOfMessage (int t) const |
| virtual void | httpGetUserData (Poco::JSON::Object::Ptr &jdata) |
| virtual Poco::JSON::Object::Ptr | httpDumpIO () |
| virtual Poco::JSON::Object::Ptr | httpRequestLog (const Poco::URI::QueryParameters &p) |
| virtual Poco::JSON::Object::Ptr | request_params_set (const std::string &req, const Poco::URI::QueryParameters &p) override |
| virtual Poco::JSON::Object::Ptr | request_params_get (const std::string &req, const Poco::URI::QueryParameters &p) override |
| void | preAskSensors (UniversalIO::UIOCommand cmd) |
| void | preSysCommand (const uniset::SystemMessage *sm) |
| bool | waitSM (int wait_msec, uniset::ObjectId testID=uniset::DefaultObjectId) |
| uniset::ObjectId | getSMTestID () const |
| int | getIntProp (const std::string &name) |
| const std::string | getProp (const std::string &name) |
Защищенные члены унаследованные от uniset::UniSetObject | |
| virtual void | onTextMessage (const uniset::TextMessage *tm) |
| VoidMessagePtr | receiveMessage () |
| VoidMessagePtr | waitMessage (timeout_t msec=UniSetTimer::WaitUpTime) |
| void | termWaiting () |
| size_t | countMessages () |
| size_t | getCountOfLostMessages () const |
| void | uterminate () |
| void | thread (bool create) |
| void | offThread () |
| void | onThread () |
| void | setID (uniset::ObjectId id) |
| void | setThreadPriority (Poco::Thread::Priority p) |
| void | setMaxSizeOfMessageQueue (size_t s) |
| size_t | getMaxSizeOfMessageQueue () const |
| bool | isActive () const |
| void | setActive (bool set) |
| virtual Poco::JSON::Object::Ptr | httpGetMyInfo (Poco::JSON::Object::Ptr root) |
| Poco::JSON::Object::Ptr | request_configure (const std::string &req, const Poco::URI::QueryParameters &p) |
| Poco::JSON::Object::Ptr | request_configure_get (const std::string &req, const Poco::URI::QueryParameters &p) |
| Poco::JSON::Object::Ptr | request_configure_by_name (const std::string &name, const std::string &props) |
| Poco::JSON::Object::Ptr | request_params (const std::string &req, const Poco::URI::QueryParameters &p) |
Защищенные члены унаследованные от uniset::LT_Object | |
| virtual std::string | getTimerName (int id) const |
| TimersList | getTimersList () const |
Защищенные данные | |
| std::shared_ptr< SMInterface > | shm |
| std::unique_ptr< ThreadCreator< OPCUAServer > > | serverThread |
| std::unique_ptr< ThreadCreator< OPCUAServer > > | updateThread |
| std::unordered_map< ObjectId, IOVariable > | variables |
| size_t | writeCount = { 0 } |
| std::unordered_map< uint32_t, IOMethod > | methods |
| size_t | methodCount = { 0 } |
Защищенные данные унаследованные от UObject_SK | |
| bool | active |
| const std::string | argprefix |
| uniset::ObjectId | smTestID |
| uniset::PassiveTimer | ptHeartBeat |
| uniset::ObjectId | idHeartBeat |
| long | maxHeartBeat |
| xmlNode * | confnode |
| uniset::timeout_t | smReadyTimeout |
| std::atomic_bool | activated = { false } |
| std::atomic_bool | canceled = { false } |
| uniset::timeout_t | activateTimeout |
| uniset::PassiveTimer | ptStartUpTimeout |
| int | askPause |
| IOController_i::SensorInfo | si |
| std::shared_ptr< uniset::LogAgregator > | loga |
| std::shared_ptr< DebugStream > | mylog |
| std::shared_ptr< uniset::LogServer > | logserv |
| std::string | logserv_host = {""} |
| int | logserv_port = {0} |
| uniset::VMonitor | vmon |
Защищенные данные унаследованные от uniset::UniSetObject | |
| std::shared_ptr< UInterface > | ui |
| std::string | myname |
| std::weak_ptr< UniSetManager > | mymngr |
Защищенные данные унаследованные от uniset::LT_Object | |
| timeout_t | sleepTime |
Дополнительные унаследованные члены | |
Защищенные типы унаследованные от uniset::LT_Object | |
| typedef std::deque< TimerInfo > | TimersList |
Реализация OPCUAServer
|
overrideprotectedvirtual |
Переопределяет метод предка UObject_SK.
|
overrideprotectedvirtualnoexcept |
функция вызываемая из потока
Переопределяет метод предка UObject_SK.
|
overrideprotectedvirtual |
Деактивация объекта (переопределяется для необходимых действий при завершении работы)
Переопределяет метод предка UObject_SK.
|
overridevirtual |
Переопределяет метод предка uniset::UniSetObject.
|
overrideprotectedvirtual |
пользовательская информация выводимая в getInfo()
Переопределяет метод предка UObject_SK.
|
static |
глобальная функция для вывода help-а
|
static |
глобальная функция для инициализации объекта
|
overrideprotectedvirtual |
Переопределяет метод предка UObject_SK.
|
overrideprotectedvirtual |
Переопределяет метод предка UObject_SK.