UniSet
2.6.0
|
Открытые члены | |
Configuration (int argc, const char *const *argv, const std::string &xmlfile="") | |
Configuration (int argc, const char *const *argv, std::shared_ptr< ObjectIndex > oind, const std::string &xmlfile="") | |
Configuration (int argc, const char *const *argv, const std::string &fileConf, uniset::ObjectInfo *objectsMap) | |
std::string | getField (const std::string &path) const noexcept |
Получить значение полей с путём path. | |
int | getIntField (const std::string &path) const noexcept |
Получить число из поле с путём path. | |
int | getPIntField (const std::string &path, int def) const noexcept |
Получить число из поле с путём path (или def, если значение <= 0) | |
xmlNode * | findNode (xmlNode *node, const std::string &searchnode, const std::string &name="") const noexcept |
xmlNode * | getNode (const std::string &path) const noexcept |
std::string | getProp (xmlNode *, const std::string &name) const noexcept |
int | getIntProp (xmlNode *, const std::string &name) const noexcept |
int | getPIntProp (xmlNode *, const std::string &name, int def) const noexcept |
std::string | getPropByNodeName (const std::string &nodename, const std::string &prop) const noexcept |
std::string | getRootDir () const noexcept |
int | getArgc () const noexcept |
const char *const * | getArgv () const noexcept |
ObjectId | getDBServer () const noexcept |
ObjectId | getLocalNode () const noexcept |
std::string | getLocalNodeName () const noexcept |
const std::string | getNSName () const noexcept |
std::string | getRootSection () const noexcept |
std::string | getSensorsSection () const noexcept |
std::string | getObjectsSection () const noexcept |
std::string | getControllersSection () const noexcept |
std::string | getServicesSection () const noexcept |
xmlNode * | getXMLSensorsSection () noexcept |
xmlNode * | getXMLObjectsSection () noexcept |
xmlNode * | getXMLControllersSection () noexcept |
xmlNode * | getXMLServicesSection () noexcept |
xmlNode * | getXMLNodesSection () noexcept |
xmlNode * | getXMLObjectNode (uniset::ObjectId) const noexcept |
UniversalIO::IOType | getIOType (uniset::ObjectId) const noexcept |
UniversalIO::IOType | getIOType (const std::string &name) const noexcept |
size_t | getCountOfNet () const noexcept |
timeout_t | getRepeatTimeout () const noexcept |
size_t | getRepeatCount () const noexcept |
uniset::ObjectId | getSensorID (const std::string &name) const noexcept |
uniset::ObjectId | getControllerID (const std::string &name) const noexcept |
uniset::ObjectId | getObjectID (const std::string &name) const noexcept |
uniset::ObjectId | getServiceID (const std::string &name) const noexcept |
uniset::ObjectId | getNodeID (const std::string &name) const noexcept |
uniset::ObjectId | getAnyID (const std::string &name) const noexcept |
const std::string | getConfFileName () const noexcept |
std::string | getImagesDir () const noexcept |
timeout_t | getHeartBeatTime () const noexcept |
const std::string | getConfDir () const noexcept |
const std::string | getDataDir () const noexcept |
const std::string | getBinDir () const noexcept |
const std::string | getLogDir () const noexcept |
const std::string | getLockDir () const noexcept |
const std::string | getDocDir () const noexcept |
bool | isLocalIOR () const noexcept |
bool | isTransientIOR () const noexcept |
std::string | getArgParam (const std::string &name, const std::string &defval="") const noexcept |
std::string | getArg2Param (const std::string &name, const std::string &defval, const std::string &defval2="") const noexcept |
int | getArgInt (const std::string &name, const std::string &defval="") const noexcept |
int | getArgPInt (const std::string &name, int defval) const noexcept |
int | getArgPInt (const std::string &name, const std::string &strdefval, int defval) const noexcept |
xmlNode * | initLogStream (DebugStream &deb, const std::string &nodename) noexcept |
xmlNode * | initLogStream (std::shared_ptr< DebugStream > deb, const std::string &nodename) noexcept |
xmlNode * | initLogStream (DebugStream *deb, const std::string &nodename) noexcept |
uniset::ListOfNode::const_iterator | listNodesBegin () const noexcept |
uniset::ListOfNode::const_iterator | listNodesEnd () const noexcept |
const std::shared_ptr< UniXML > | getConfXML () const noexcept |
CORBA::ORB_ptr | getORB () const |
const CORBA::PolicyList | getPolicy () const noexcept |
Открытые статические члены | |
static std::ostream & | help (std::ostream &os) |
Открытые атрибуты | |
std::shared_ptr< ObjectIndex > | oind |
std::shared_ptr< IORFile > | iorfile |
Защищенные члены | |
virtual void | initConfiguration (int argc, const char *const *argv) |
void | createNodesList () |
virtual void | initNode (uniset::NodeInfo &ninfo, UniXML::iterator &it) noexcept |
void | initRepSections () |
std::string | getRepSectionName (const std::string &sec, xmlNode *secnode=0) |
void | setConfFileName (const std::string &fn="") |
void | initParameters () |
void | setLocalNode (const std::string &nodename) |
std::string | getPort (const std::string &port="") const noexcept |
Защищенные данные | |
std::string | rootDir = { "" } |
std::shared_ptr< UniXML > | unixml |
int | _argc = { 0 } |
const char ** | _argv = { nullptr } |
CORBA::ORB_var | orb |
CORBA::PolicyList | policyList |
std::string | NSName = { "" } |
size_t | countOfNet = { 1 } |
size_t | repeatCount = { 3 } |
timeout_t | repeatTimeout = { 50 } |
uniset::ListOfNode | lnodes |
std::string | secRoot = { "" } |
std::string | secSensors = { "" } |
std::string | secObjects = { "" } |
std::string | secControlles = { "" } |
std::string | secServices = { "" } |
xmlNode * | xmlSensorsSec = { 0 } |
xmlNode * | xmlObjectsSec = { 0 } |
xmlNode * | xmlControllersSec = { 0 } |
xmlNode * | xmlServicesSec = { 0 } |
xmlNode * | xmlNodesSec = { 0 } |
ObjectId | localDBServer = { uniset::DefaultObjectId } |
ObjectId | localNode = { uniset::DefaultObjectId } |
std::string | localNodeName = { "" } |
std::string | fileConfName = { "" } |
std::string | imagesDir = { "" } |
std::string | confDir = { "" } |
std::string | dataDir = { "" } |
std::string | binDir = { "" } |
std::string | logDir = { "" } |
std::string | docDir = { "" } |
std::string | lockDir = { "" } |
bool | localIOR = { false } |
bool | transientIOR = { false } |
timeout_t | heartbeat_msec = { 3000 } |
Конфигуратор системы
uniset::Configuration::Configuration | ( | int | argc, |
const char *const * | argv, | ||
const std::string & | xmlfile = "" |
||
) |
конфигурирование xml-файлом ( предпочтительный способ )
uniset::Configuration::Configuration | ( | int | argc, |
const char *const * | argv, | ||
std::shared_ptr< ObjectIndex > | oind, | ||
const std::string & | xmlfile = "" |
||
) |
конфигурирование xml-файлом
uniset::Configuration::Configuration | ( | int | argc, |
const char *const * | argv, | ||
const std::string & | fileConf, | ||
uniset::ObjectInfo * | objectsMap | ||
) |
устаревший вариант, для поддержки старых проектов
std::string uniset::Configuration::getArg2Param | ( | const std::string & | name, |
const std::string & | defval, | ||
const std::string & | defval2 = "" |
||
) | const |
получить значение, если пустое, то defval, если defval="" return defval2
int uniset::Configuration::getArgInt | ( | const std::string & | name, |
const std::string & | defval = "" |
||
) | const |
получить числовое значение параметра, если не число, то 0. Если параметра нет, используется значение defval
string uniset::Configuration::getArgParam | ( | const std::string & | name, |
const std::string & | defval = "" |
||
) | const |
получить значение указанного параметра, или значение по умолчанию
int uniset::Configuration::getArgPInt | ( | const std::string & | name, |
int | defval | ||
) | const |
получить числовое значение параметра, но если оно не положительное, вернуть defval
const std::shared_ptr< UniXML > uniset::Configuration::getConfXML | ( | ) | const |
указатель на конфигурационный xml
ObjectId uniset::Configuration::getDBServer | ( | ) | const |
< получение идентификатора DBServer-а
string uniset::Configuration::getField | ( | const std::string & | path | ) | const |
Получить значение полей с путём path.
int uniset::Configuration::getIntField | ( | const std::string & | path | ) | const |
Получить число из поле с путём path.
ObjectId uniset::Configuration::getLocalNode | ( | ) | const |
< получение идентификатора локального узла
string uniset::Configuration::getLocalNodeName | ( | ) | const |
< получение название локального узла
int uniset::Configuration::getPIntField | ( | const std::string & | path, |
int | def | ||
) | const |
Получить число из поле с путём path (или def, если значение <= 0)
string uniset::Configuration::getRootDir | ( | ) | const |
Получение каталога, в котором находится выполняющаяся программа
|
protected |
количество резервных каналов
std::shared_ptr<IORFile> uniset::Configuration::iorfile |
интерфейс к работе с локальнымми ior-файлами
|
protected |
имя сервиса именования на данной машине (обычно "NameService")
std::shared_ptr<ObjectIndex> uniset::Configuration::oind |
интерфейс к карте объектов
|
protected |
количество попыток получить доступ к удаленному объекту прежде чем будет выработано исключение TimeOut.
|
protected |
пауза между попытками [мс]