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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

> Base& instance(const std::string& className)<br />

returns a reference to the only instance of a singleton class or<br />

throws a NotFoundException if the class is unknown.<br />

> Iter<strong>at</strong>or begin() const<br />

Iter<strong>at</strong>or end() const<br />

return a begin/end iter<strong>at</strong>or for iter<strong>at</strong>ing over the manifests of all<br />

loaded <strong>libraries</strong>. Dereferencing the iter<strong>at</strong>or will return a pointer to<br />

a std::pair containing the p<strong>at</strong>h of the class library <strong>and</strong> a pointer to<br />

its manifest.<br />

> Please see the reference document<strong>at</strong>ion for other member<br />

functions.

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

Saved successfully!

Ooh no, something went wrong!