Poco

template < class B >

class Manifest

File Information

Library: Foundation
Package: SharedLibrary
Header: Poco/Manifest.h

Description

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.

Inheritance

Direct Base Classes: ManifestBase

All Base Classes: ManifestBase

Member Summary

Member Functions: begin, className, clear, empty, end, find, insert, size

Inherited Functions: className

Nested Classes

class Iterator

The Manifest's very own iterator class. 

Types

Meta

typedef AbstractMetaObject < B > Meta;

MetaMap

typedef std::map < std::string, const Meta * > MetaMap;

Constructors

Manifest inline

Manifest();

Creates an empty Manifest.

Destructor

~Manifest virtual inline

virtual ~Manifest();

Destroys the Manifest.

Member Functions

begin inline

Iterator begin() const;

className virtual inline

const char * className() const;

clear inline

void clear();

Removes all MetaObjects from the manifest.

empty inline

bool empty() const;

Returns true iff the Manifest does not contain any MetaObjects.

end inline

Iterator end() const;

find inline

Iterator find(
    const std::string & className
) const;

Returns an iterator pointing to the MetaObject for the given class. If the MetaObject cannot be found, the iterator points to end().

insert inline

bool insert(
    const Meta * pMeta
);

Inserts a MetaObject. Returns true if insertion was successful, false if a class with the same name already exists.

size inline

int size() const;

Returns the number of MetaObjects in the Manifest.

Securely control IoT edge devices from anywhere   Connect a Device