UniSet 2.44.3
Класс OPCUATestServer

#include <OPCUATestServer.h>

Граф связей класса OPCUATestServer:

Классы

struct  IONode

Открытые члены

 OPCUATestServer (const std::string &host, uint16_t port=15480)
bool start ()
void stop ()
bool isRunning () const noexcept
void setInt (const std::string &name, int32_t value)
void setFloat (const std::string &name, float value)
void setBool (const std::string &name, bool value)
int32_t getInt (const std::string &name) const
float getFloat (const std::string &name) const
bool getBool (const std::string &name) const
std::string nodeIdString (const std::string &name) const
 OPCUATestServer (const std::string &addr, uint16_t port=4840)
void setVerbose (bool state)
void start ()
void stop ()
bool isRunning ()
void setI32 (const std::string &varname, int32_t val)
void setBool (const std::string &varname, bool set)
void setI32 (int num, int32_t val)
void setF32 (const std::string &varname, float val)
void setRWLimits (unsigned int rlim, unsigned int wlim)
void setX (int num, int32_t val, opcua::DataTypeId type)
int32_t getX (int num, opcua::DataTypeId type)
int32_t getI32 (int num)
int32_t getI32 (const std::string &name)
float getF32 (const std::string &name)
bool getBool (const std::string &name)

Защищенные члены

void work ()

Защищенные данные

opcua::Server server
std::unique_ptr< IONodeioNode
std::string addr
bool verbose = {true}
std::unordered_map< int, std::unique_ptr< IONode > > imap
std::unordered_map< std::string, std::unique_ptr< IONode > > smap
std::shared_ptr< uniset::ThreadCreator< OPCUATestServer > > serverThread

Подробное описание

Реализация OPCUATestServer для тестирования