BusBoy
2
|
Base class for types of metadata that may be cloned. More...
#include <MetadataElement.h>
Public Member Functions | |
virtual CloneableMetadataElement * | clone () const =0 |
Public Member Functions inherited from BUSBOY::MetadataElement | |
virtual Type | getMetadataElementType () const =0 |
virtual bool | operator== (const MetadataElement &element) const =0 |
virtual bool | operator!= (const MetadataElement &element) const =0 |
template<typename T > | |
const T * | castElement (const MetadataElement *element, Type type) |
template<typename T > | |
T * | castElement (MetadataElement *element, Type type) |
template<typename T > | |
const T & | castElement (const MetadataElement &element, Type type) |
template<typename T > | |
T & | castElement (MetadataElement &element, Type type) |
Additional Inherited Members | |
Public Types inherited from BUSBOY::MetadataElement | |
enum | Type { FIELD, ARRAY, LIST, MAP, KEY } |
Static Public Member Functions inherited from BUSBOY::MetadataElement | |
static Type | enumFromString (std::string strType) |
Parses the string equivalent of the enum. More... | |
static std::string | enumToString (Type type) |
Returns the string equivalent of the enum. More... | |
Static Protected Member Functions inherited from BUSBOY::MetadataElement | |
template<typename T > | |
static const T * | castElement (const MetadataElement *element, Type type) |
template<typename T > | |
static T * | castElement (MetadataElement *element, Type type) |
template<typename T > | |
static const T & | castElement (const MetadataElement &element, Type type) |
template<typename T > | |
static T & | castElement (MetadataElement &element, Type type) |
Base class for types of metadata that may be cloned.
These classes are expected to be immutable as well.
|
pure virtual |
Implemented in BUSBOY::MetadataArray, BUSBOY::MetadataField, and BUSBOY::MetadataKey.
Copyright 2014 Google Inc. All rights reserved.