UniSet  1.4.0
Функции
Пространство имен ORepHelpers

Функции

CosNaming::NamingContext_ptr getRootNamingContext (CORBA::ORB_ptr orb, const std::string &nsName, int timeOutSec=2)
 Получение ссылки на корень репозитория
CosNaming::NamingContext_ptr getContext (const std::string &cname, int argc, const char *const *argv, const std::string &nsName) throw (UniSetTypes::ORepFailed)
 Получение контекста по заданному имени
CosNaming::NamingContext_ptr getContext (CORBA::ORB_ptr orb, const std::string &cname, const std::string &nsName) throw (UniSetTypes::ORepFailed)
const std::string getSectionName (const std::string &fullName, const std::string brk="/")
 Функция отделяющая имя секции от полного имени
const std::string getShortName (const std::string &fullName, const std::string brk="/")
 Функция выделения имени из полного имени
char checkBadSymbols (const std::string &str)
 Проверка на наличие недопустимых символов
std::string BadSymbolsToStr ()
CosNaming::NamingContext_ptr getContext (const string &cname, int argc, const char *const *argv, const string &nsName) throw (ORepFailed)
CosNaming::NamingContext_ptr getContext (CORBA::ORB_ptr orb, const string &cname, const string &servname) throw (ORepFailed)
CosNaming::NamingContext_ptr getRootNamingContext (CORBA::ORB_ptr orb, const string &nsName, int timeoutSec)
const string getShortName (const string &fname, const std::string brk)
const string getSectionName (const string &fullName, const std::string brk)
char checkBadSymbols (const string &str)

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

В этом пространстве имен заключены вспомогательные функции используемые функциями ObjectRepository


Функции

Получение строки запрещенных символов в виде '.', '/', и т.д.

Перекрестные ссылки UniSetTypes::BadSymbols.

char ORepHelpers::checkBadSymbols ( const std::string &  str)

Проверка на наличие недопустимых символов

Используется в ObjectRepositoryFactory::createSection().

CosNaming::NamingContext_ptr ORepHelpers::getContext ( const string &  cname,
int  argc,
const char *const *  argv,
const string &  nsName 
) throw (ORepFailed)
Аргументы:
cname- полное имя контекста ссылку на который, возвратит функция.
argc,argv- параметры инициализации ORB

Перекрестные ссылки DebugStream::debugging(), getContext() и UniSetTypes::unideb.

CosNaming::NamingContext_ptr ORepHelpers::getContext ( const std::string &  cname,
int  argc,
const char *const *  argv,
const std::string &  nsName 
) throw (UniSetTypes::ORepFailed)

Получение контекста по заданному имени

Используется в ObjectRepositoryFactory::createSection(), getContext(), ObjectRepositoryFactory::removeSection() и ObjectRepositoryFactory::renameSection().

CosNaming::NamingContext_ptr ORepHelpers::getRootNamingContext ( CORBA::ORB_ptr  orb,
const std::string &  nsName,
int  timeOutSec = 2 
)

Получение ссылки на корень репозитория

Используется в ObjectRepositoryFactory::createRootSection().

CosNaming::NamingContext_ptr ORepHelpers::getRootNamingContext ( CORBA::ORB_ptr  orb,
const string &  nsName,
int  timeoutSec 
)
Аргументы:
orb- ссылка на ORB

Перекрестные ссылки DebugStream::debugging() и UniSetTypes::unideb.

const std::string ORepHelpers::getSectionName ( const std::string &  fullName,
const std::string  brk = "/" 
)

Функция отделяющая имя секции от полного имени

Используется в ObjectRepositoryFactory::createSectionF(), ObjectRepository::registration(), ObjectRepositoryFactory::removeSection() и ObjectRepositoryFactory::renameSection().

const string ORepHelpers::getSectionName ( const string &  fullName,
const std::string  brk 
)
Аргументы:
fullName- полное имя включающее в себя путь
brk- используемый символ разделитель
Заметки:
Функция возвращает путь без последнего символа разделителя ("Root/Section1/name" -> "Root/Section1")
const std::string ORepHelpers::getShortName ( const std::string &  fullName,
const std::string  brk = "/" 
)

Функция выделения имени из полного имени

Используется в SharedMemory::init_smemory().

const string ORepHelpers::getShortName ( const string &  fname,
const std::string  brk 
)
Аргументы:
fname- полное имя включающее в себя путь ("Root/Section1/name|Node:Alias")
brk- используемый символ разделитель

Перекрестные ссылки UniSetTypes::conf и UniSetTypes::Configuration::oind.