17 #ifndef UniExchange_H_ 18 #define UniExchange_H_ 23 #include "IOController.h" 24 #include "SMInterface.h" 25 #include "SharedMemory.h" 26 #include "PassiveTimer.h" 59 const std::shared_ptr<SharedMemory>& ic =
nullptr,
const std::string& prefix =
"unet" );
64 static std::shared_ptr<UniExchange> init_exchange(
int argc,
const char*
const* argv,
66 const std::string& prefix =
"unet" );
69 static void help_print(
int argc,
const char** argv );
71 virtual IOController_i::ShortMapSeq* getSensors()
override;
76 virtual void askSensors( UniversalIO::UIOCommand cmd );
79 xmlNode* cnode = { 0 };
80 std::string s_field = {
"" };
81 std::string s_fvalue = {
"" };
82 std::shared_ptr<SMInterface> shm;
96 type(UniversalIO::UnknownIOType)
99 IOController::IOStateList::iterator ioit;
102 UniversalIO::IOType type;
106 typedef std::vector<SInfo> SList;
119 CORBA::Object_var oref;
120 IOController_i_var shm;
124 IOController::IOStateList::iterator conn_it;
127 void update(IOController_i::ShortMapSeq_var& map,
const std::shared_ptr<SMInterface>& shm );
130 typedef std::list<NetNodeInfo> NetNodeList;
133 void readConfiguration();
134 bool readItem(
const std::shared_ptr<UniXML>& xml,
UniXML::iterator& it, xmlNode* sec );
136 void updateLocalData();
137 void initIterators();
139 timeout_t polltime = { 200 };
141 bool init_ok = {
false };
144 size_t maxIndex = { 0 };
145 timeout_t smReadyTimeout = { 60000 };
147 std::atomic_bool cancelled = {
false };
154 #endif // UniExchange_H_ Пассивный таймер
Definition: PassiveTimer.h:92
Definition: UniExchange.h:84
Definition: CommonEventLoop.h:14
virtual bool deactivateObject() override
Definition: UniExchange.cc:339
Definition: UniExchange.h:54
Definition: MessageType.h:170
const ObjectId DefaultObjectId
Definition: UniSetTypes.h:69
static void help_print(int argc, const char **argv)
Definition: UniExchange.cc:470
Definition: IOController.h:46
Definition: UniExchange.h:108
uniset::ObjectId sidConnection
Definition: UniExchange.h:123
long ObjectId
Definition: UniSetTypes_i.idl:30