15 const std::string&
name ):
31 const std::type_info& typeInfo,
32 const std::string& option )
43 if( !cntH.
getOption(containerOption).isSuccess() )
return false;
44 return containerOption.
i_getValue(typeInfo, data).isSuccess();
51 const std::type_info& typeInfo,
52 const std::string& option )
57 if( !containerOption.
i_setValue(typeInfo,
const_cast<void*
>( data )).isSuccess() )
return false;
64 return cntH.
setOption(containerOption).isSuccess();
virtual ITokenIterator * tokens() override
Starts an iteration over the tokens in the container.
virtual long technology() const override final
Returns the technology identifier for this container.
long m_technology
The technology identifier.
virtual const std::string & name() const override final
Returns the name of this container.
FileDescriptor & m_fileDescriptor
Reference to file descriptor of the parent database.
std::string m_name
The name of the container.
virtual bool attributeOfType(const std::string &attributeName, void *data, const std::type_info &typeInfo, const std::string &option) override
The actual method returning the attribute data given a name.
virtual bool setAttributeOfType(const std::string &attributeName, const void *data, const std::type_info &typeInfo, const std::string &option) override
The actual method setting the attribute data given a name.
Container(FileDescriptor &fileDescriptor, long technology, const std::string &name)
Description: Definition of the object describing a database container Handle managing a DbContainerOb...
StatusCode getOption(DbOption &refOpt)
Access options.
StatusCode open(DbDatabase &dbH, const std::string &nam, const DbTypeInfo *typ, const DbType &dbtyp, Io::IoFlag mod)
Open the container residing in <file> with given name and access mode.
StatusCode setOption(const DbOption &refOpt)
Pass options to the implementation.
Description: Handle managing a DbDatabaseObj, a generic Database object.
const DbContainerObj * find(const std::string &nam) const
Select container object in Database.
bool isValid() const
Validity check (Objy like).
const DbType & type() const
Inquire storage type of the handle.
Description: Definition an option to be supplied to database objects.
StatusCode i_setValue(const std::type_info &typ, const void *value)
Set the option value.
StatusCode i_getValue(const std::type_info &typ, void *value) const
Read the option value.
ITokenIterator is the interface class for iterators of tokens.
TokenIterator is an implementation of the ITokenIterator interface.