UniSet  2.6.0
Открытые типы | Открытые члены | Защищенные члены | Защищенные данные | Полный список членов класса
Класс uniset::ObjectRepository
Граф связей класса uniset::ObjectRepository:
Collaboration graph
[см. легенду]

Открытые типы

enum  ObjectType { ObjectRef, Section }

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

 ObjectRepository (const std::shared_ptr< uniset::Configuration > &conf)
void registration (const std::string &name, const uniset::ObjectPtr oRef, const std::string &section, bool force=false) const throw (uniset::ORepFailed, uniset::ObjectNameAlready, uniset::InvalidObjectName, uniset::NameNotFound)
 Функция регистрации объекта по имени с указанием секции
void registration (const std::string &fullName, const uniset::ObjectPtr oRef, bool force=false) const throw (uniset::ORepFailed, uniset::ObjectNameAlready, uniset::InvalidObjectName, uniset::NameNotFound)
 Функция регистрации объекта по полному имени.
void unregistration (const std::string &name, const std::string &section) const throw (uniset::ORepFailed, uniset::NameNotFound)
 Удаление записи об объекте name в секции section.
void unregistration (const std::string &fullName) const throw (uniset::ORepFailed, uniset::NameNotFound)
 Удаление записи об объекте по полному имени
uniset::ObjectPtr resolve (const std::string &name, const std::string &NSName="NameService") const throw (uniset::ORepFailed, uniset::NameNotFound)
bool isExist (const uniset::ObjectPtr &oref) const
bool isExist (const std::string &fullName) const
bool list (const std::string &section, uniset::ListObjectName *ls, size_t how_many=300) throw (uniset::ORepFailed)
 Получение списка how_many объектов из секции section.
bool listSections (const std::string &in_section, uniset::ListObjectName *ls, size_t how_many=300) throw (uniset::ORepFailed)
 Получние списка how_many подсекций из секции in_section.
bool createSection (const std::string &name, const std::string &in_section) throw (uniset::ORepFailed, uniset::InvalidObjectName)
 Создание секции
bool createSectionF (const std::string &fullName) throw (uniset::ORepFailed, uniset::InvalidObjectName)
bool createRootSection (const std::string &name)
 Функция создания секции в корневом 'каталоге'.
bool removeSection (const std::string &fullName, bool recursive=false)
 Функция удаления секции
bool renameSection (const std::string &newName, const std::string &fullName)
 Функция переименования секции
void printSection (const std::string &fullName)

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

bool list (const std::string &section, uniset::ListObjectName *ls, unsigned int how_many, ObjectType type)
bool createContext (const std::string &cname, CosNaming::NamingContext_ptr ctx)

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

std::string nsName
std::shared_ptr
< uniset::Configuration
uconf

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

... а здесь идет кратенькое описание... (коротенько минут на 40!...)
Заметки
Репозиторий работает только, с локальным репозиторием

Методы

bool ObjectRepository::createContext ( const std::string &  cname,
CosNaming::NamingContext_ptr  ctx 
)
protected

Создание нового контекста(секции)

bool ObjectRepository::isExist ( const uniset::ObjectPtr oref) const

Проверка существования и доступности объекта

bool ObjectRepository::isExist ( const std::string &  fullName) const

Проверка существования и доступности объекта

bool ObjectRepository::list ( const std::string &  section,
uniset::ListObjectName ls,
unsigned int  how_many,
ObjectType  type 
)
protected
Аргументы
ls- указатель на список который надо заполнить
how_many- максимальное количество заносимых элементов
in_section- полное имя секции начиная с Root.
type- тип вынимаемых(заносимых в список) объектов.
Возвращает
Функция возвращает true, если в список были внесены не все элементы. Т.е. действительное количество объектов в этой секции превышает заданное how_many.
Исключения
ORepFailed- генерируется если произошла при получении доступа к секции
ObjectPtr ObjectRepository::resolve ( const std::string &  name,
const std::string &  NSName = "NameService" 
) const throw (uniset::ORepFailed, uniset::NameNotFound)

Получение ссылки по заданному полному имени (разыменовывание)