Repositories are provided to store objects retrieved by name. Both the repositories and the content of the repositories are created by the API; the user can only retrieve objects from repositories. Iterators are provided to navigate the repositories.
This method accesses an item in an odb_Repository object. This method should be used with caution because it does not perform any checking of the index range.
type [odb_string name] const;
Required argument
A char* or an odb_String specifying the object to be retrieved.
Optional arguments
Return value
The object of type type saved in the repository under the given name.
Exceptions
This method accesses an item in an odb_Repository object.
type get(const char* name); const type& constGet(const char* name) const;
Required argument
A char* or an odb_String specifying the object to be retrieved.
Optional arguments
Return value
The object of type type saved in the repository under the given name.
Exceptions
This method checks whether an object with a given name is stored in the repository.
bool isMember(const odb_String& name) const; bool isMember(const char* name) const;
Required argument
A char* or an odb_String specifying the name under which the object is stored.
Optional arguments
Return value
A Boolean specifying whether the object is stored in the repository.
Exceptions