#include <Manifest.h>
Classes | |
class | Iterator |
The Manifest's very own iterator class. More... | |
Public Types | |
typedef AbstractMetaObject< B > | Meta |
typedef std::map< std::string, const Meta * > | MetaMap |
Public Member Functions | |
Iterator | begin () const |
const char * | className () const |
void | clear () |
Removes all MetaObjects from the manifest. | |
bool | empty () const |
Returns true iff the Manifest does not contain any MetaObjects. | |
Iterator | end () const |
Iterator | find (const std::string &className) const |
bool | insert (const Meta *pMeta) |
Manifest () | |
Creates an empty Manifest. | |
int | size () const |
Returns the number of MetaObjects in the Manifest. | |
virtual | ~Manifest () |
Destroys the Manifest. | |
Private Attributes | |
MetaMap | _metaMap |
A Manifest maintains a list of all classes contained in a dynamically loadable class library. Internally, the information is held in a map. An iterator is provided to iterate over all the classes in a Manifest.
Definition at line 66 of file Manifest.h.
typedef AbstractMetaObject<B> Poco::Manifest< B >::Meta |
Definition at line 75 of file Manifest.h.
typedef std::map<std::string, const Meta*> Poco::Manifest< B >::MetaMap |
Definition at line 76 of file Manifest.h.
Poco::Manifest< B >::Manifest | ( | ) | [inline] |
Creates an empty Manifest.
Definition at line 130 of file Manifest.h.
virtual Poco::Manifest< B >::~Manifest | ( | ) | [inline, virtual] |
Destroys the Manifest.
Definition at line 135 of file Manifest.h.
Iterator Poco::Manifest< B >::begin | ( | ) | const [inline] |
Definition at line 149 of file Manifest.h.
const char* Poco::Manifest< B >::className | ( | ) | const [inline, virtual] |
Implements Poco::ManifestBase.
Definition at line 189 of file Manifest.h.
void Poco::Manifest< B >::clear | ( | ) | [inline] |
Removes all MetaObjects from the manifest.
Definition at line 167 of file Manifest.h.
bool Poco::Manifest< B >::empty | ( | ) | const [inline] |
Returns true iff the Manifest does not contain any MetaObjects.
Definition at line 183 of file Manifest.h.
Iterator Poco::Manifest< B >::end | ( | ) | const [inline] |
Definition at line 154 of file Manifest.h.
Iterator Poco::Manifest< B >::find | ( | const std::string & | className | ) | const [inline] |
Returns an iterator pointing to the MetaObject for the given class. If the MetaObject cannot be found, the iterator points to end().
Definition at line 141 of file Manifest.h.
bool Poco::Manifest< B >::insert | ( | const Meta * | pMeta | ) | [inline] |
Inserts a MetaObject. Returns true if insertion was successful, false if a class with the same name already exists.
Definition at line 159 of file Manifest.h.
int Poco::Manifest< B >::size | ( | ) | const [inline] |
Returns the number of MetaObjects in the Manifest.
Definition at line 177 of file Manifest.h.
MetaMap Poco::Manifest< B >::_metaMap [private] |
Definition at line 195 of file Manifest.h.