|
kDB: Knowledge DataBase
|
#include <MetaType.h>
Classes | |
| struct | Private |
Public Member Functions | |
| SerialisationContexts (const SerialisationContexts &_rhs) | |
| SerialisationContexts & | operator= (const SerialisationContexts &_rhs) |
| cres_qresult< AbstractSerialisationContext * > | getContext (const knowCore::Uri &_uri) const |
| template<typename _T_ > | |
| cres_qresult< _T_ * > | getContext (const knowCore::Uri &_uri) const |
| void | addContext (const knowCore::Uri &_uri, AbstractSerialisationContext *_context) |
Store AbstractSerialisationContext that are used by the meta-type system during deserialisation of objects. This is mostly useful for deserialising objects whose implementation vary depending on context.
This class use shared data, and cannot be cloned.
| void SerialisationContexts::addContext | ( | const knowCore::Uri & | _uri, |
| AbstractSerialisationContext * | _context ) |
Add a context to the set of contexts. The ownership of _context is transfered to this SerialisationContexts.
| cres_qresult< AbstractSerialisationContext * > SerialisationContexts::getContext | ( | const knowCore::Uri & | _uri | ) | const |
| cres_qresult< _T_ * > knowCore::SerialisationContexts::getContext | ( | const knowCore::Uri & | _uri | ) | const |