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 MetaObject Class (cont'd)<br />

> Base* autoDelete(Base* pObject)<br />

give ownership of pObject to the MetaObject. The MetaObject<br />

will delete all object it owns when it's destroyed.<br />

> bool isAutoDelete(Base* pObject)<br />

returns true if the MetaObject owns pObject, false otherwise.<br />

> void destroy(Base* pObject)<br />

if the MetaObject owns pObject, it will be immedi<strong>at</strong>ely deleted.

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

Saved successfully!

Ooh no, something went wrong!