01.01.2015 Views

Loading shared libraries and classes dynamically at runtime. - Poco

Loading shared libraries and classes dynamically at runtime. - Poco

Loading shared libraries and classes dynamically at runtime. - Poco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Class Loader (again, cont'd)<br />

> const Meta* findClass(const std::string& className) const<br />

looks for the meta object for the given class in all loaded <strong>libraries</strong>.<br />

Returns a pointer to the meta object if found, null otherwise.<br />

> const Meta& classFor(const std::string& className)<br />

similar to findClass(), but throws a NotFoundException if the class<br />

is not known.<br />

> Base* cre<strong>at</strong>e(const std::string& className)<br />

cre<strong>at</strong>es a new instance of a class or throws a NotFoundException<br />

if the class is unknown.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!