|
UniSet
2.2.1
|
базовые типы и вспомогательные функции библиотеки UniSet. Подробнее...
#include <memory>#include <cstdlib>#include <cstdio>#include <string>#include <list>#include <vector>#include <limits>#include <ostream>#include <unistd.h>#include <omniORB4/CORBA.h>#include "UniSetTypes_i.hh"#include "IOController_i.hh"#include "Mutex.h"#include "UniXML.h"Классы | |
| class | UniSetTypes::IDList |
| struct | UniSetTypes::ObjectInfo |
| struct | UniSetTypes::ParamSInfo |
Пространства имен | |
| namespace | UniSetTypes |
Определения типов | |
| typedef unsigned long | UniSetTypes::KeyType |
| typedef std::list< std::string > | UniSetTypes::ListObjectName |
| typedef ObjectId | UniSetTypes::SysId |
| typedef CORBA::Object_ptr | UniSetTypes::ObjectPtr |
| typedef CORBA::Object_var | UniSetTypes::ObjectVar |
| typedef std::list< NodeInfo > | UniSetTypes::ListOfNode |
Перечисления | |
| enum | UniSetTypes::LampCommand { UniSetTypes::lmpOFF = 0, UniSetTypes::lmpON = 1, UniSetTypes::lmpBLINK = 2, UniSetTypes::lmpBLINK2 = 3, UniSetTypes::lmpBLINK3 = 4 } |
Функции | |
| void | msleep (unsigned int m) |
| static KeyType | UniSetTypes::key (const UniSetTypes::ObjectId id, const UniSetTypes::ObjectId node) |
| static KeyType | UniSetTypes::key (const IOController_i::SensorInfo &si) |
| UniversalIO::IOType | UniSetTypes::getIOType (const std::string &s) |
| std::ostream & | UniSetTypes::operator<< (std::ostream &os, const UniversalIO::IOType t) |
| std::ostream & | UniSetTypes::operator<< (std::ostream &os, const IONotifyController_i::ThresholdInfo &ti) |
| std::ostream & | UniSetTypes::operator<< (std::ostream &os, const IOController_i::ShortIOInfo &s) |
| std::ostream & | UniSetTypes::operator<< (std::ostream &os, const IONotifyController_i::ThresholdState &s) |
| int | UniSetTypes::uni_atoi (const char *str) |
| Преобразование строки в число (воспринимает префикс 0, как 8-ное, префикс 0x, как 16-ное, минус для отриц. чисел) | |
| int | UniSetTypes::uni_atoi (const std::string &str) |
| char * | UniSetTypes::uni_strdup (const std::string &src) |
| std::string | UniSetTypes::timeToString (time_t tm=time(0), const std::string &brk=":") |
| std::string | UniSetTypes::dateToString (time_t tm=time(0), const std::string &brk="/") |
| IDList | UniSetTypes::explode (const std::string &str, char sep= ',') |
| std::vector< std::string > | UniSetTypes::explode_str (const std::string &str, char sep= ',') |
| std::list< ParamSInfo > | UniSetTypes::getSInfoList (const std::string &s, std::shared_ptr< UniSetTypes::Configuration > conf=nullptr) |
| std::list < UniSetTypes::ConsumerInfo > | UniSetTypes::getObjectsList (const std::string &s, std::shared_ptr< UniSetTypes::Configuration > conf=nullptr) |
| bool | UniSetTypes::is_digit (const std::string &s) |
| std::string | UniSetTypes::getArgParam (const std::string &name, int _argc, const char *const *_argv, const std::string &defval="") |
| int | UniSetTypes::getArgInt (const std::string &name, int _argc, const char *const *_argv, const std::string defval="") |
| int | UniSetTypes::findArgParam (const std::string &name, int _argc, const char *const *_argv) |
| std::ostream & | UniSetTypes::operator<< (std::ostream &os, const IOController_i::CalibrateInfo &c) |
| float | UniSetTypes::fcalibrate (float raw, float rawMin, float rawMax, float calMin, float calMax, bool limit=true) |
| long | UniSetTypes::lcalibrate (long raw, long rawMin, long rawMax, long calMin, long calMax, bool limit=true) |
| long | UniSetTypes::setinregion (long raw, long rawMin, long rawMax) |
| long | UniSetTypes::setoutregion (long raw, long rawMin, long rawMax) |
| bool | UniSetTypes::file_exist (const std::string &filename) |
| bool | UniSetTypes::check_filter (UniXML::iterator &it, const std::string &f_prop, const std::string &f_val="") |
| template<typename InputIterator , typename OutputIterator , typename Predicate > | |
| OutputIterator | UniSetTypes::copy_if (InputIterator begin, InputIterator end, OutputIterator destBegin, Predicate p) |
Переменные | |
| const ObjectId | UniSetTypes::DefaultObjectId = -1 |
| const ThresholdId | UniSetTypes::DefaultThresholdId = -1 |
| const ThresholdId | UniSetTypes::DefaultTimerId = -1 |
| const ObjectId | UniSetTypes::AdminID = -2 |
| static const long | UniSetTypes::ChannelBreakValue = std::numeric_limits<long>::max() |
| const char | UniSetTypes::BadSymbols [] = {'.', '/'} |
базовые типы и вспомогательные функции библиотеки UniSet.
| void msleep | ( | unsigned int | m | ) | [inline] |
Задержка в миллисекундах
Используется в UInterface::askRemoteSensor(), UInterface::askSensorsSeq(), UInterface::calibrate(), TCPCheck::check(), UInterface::getChangedTime(), UInterface::getIOType(), UInterface::getSensors(), UInterface::getSensorSeq(), UInterface::getType(), UInterface::getValue(), TCPCheck::ping(), ModbusTCPServer::receive(), ModbusTCPSession::receive(), ModbusRTUSlave::receive(), UniSetActivator::run(), ModbusClient::send(), UInterface::send(), ModbusServer::send(), UInterface::setOutputSeq(), UInterface::setValue() и UniSetActivator::work().
1.7.6.1