knowL: Knowledge Libraries
|
#include <MetaType.h>
Classes | |
struct | Private |
Public Member Functions | |
DeserialisationContexts (const DeserialisationContexts &_rhs) | |
DeserialisationContexts & | operator= (const DeserialisationContexts &_rhs) |
knowCore::ReturnValue< AbstractDeserialisationContext * > | getContext (const knowCore::Uri &_uri) const |
template<typename _T_ > | |
knowCore::ReturnValue< _T_ * > | getContext (const knowCore::Uri &_uri) const |
void | addContext (const knowCore::Uri &_uri, AbstractDeserialisationContext *_context) |
Store AbstractDeserialisationContext 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 DeserialisationContexts::addContext | ( | const knowCore::Uri & | _uri, |
AbstractDeserialisationContext * | _context ) |
Add a context to the set of contexts. The ownership of _context
is transfered to this DeserialisationContexts.
knowCore::ReturnValue< AbstractDeserialisationContext * > DeserialisationContexts::getContext | ( | const knowCore::Uri & | _uri | ) | const |
knowCore::ReturnValue< _T_ * > knowCore::DeserialisationContexts::getContext | ( | const knowCore::Uri & | _uri | ) | const |