BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
BUSBOY::CloneableMetadataElement Class Referenceabstract

Base class for types of metadata that may be cloned. More...

#include <MetadataElement.h>

Inheritance diagram for BUSBOY::CloneableMetadataElement:
BUSBOY::MetadataElement BUSBOY::MetadataArray BUSBOY::MetadataField BUSBOY::MetadataKey

Public Member Functions

virtual CloneableMetadataElementclone () 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)
 

Detailed Description

Base class for types of metadata that may be cloned.

These classes are expected to be immutable as well.

Member Function Documentation

virtual CloneableMetadataElement* BUSBOY::CloneableMetadataElement::clone ( ) const
pure virtual

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.