Abstract base class that encapsulates a field in a model object. Primarily used to get around requirement that implementation needs exact type of data encapsulated in the field as template type.
More...
#include <ODMObject.h>
|
| | MetaField (const std::string &field) |
| | Create a new instance representing the field with the specified name.
|
| |
| virtual | ~MetaField () |
| | Virtual dtor for sub-classing.
|
| |
| virtual Value & | getValue (Model *model)=0 |
| | Return the value for the field represented by this instance.
|
| |
| virtual void | setValue (Model *model, const Value &value)=0 |
| | Set the value for the field represented by this instance.
|
| |
| const std::string & | getName () const |
| | Return the name of the field encapsulated in this meta field instance.
|
| |
template<typename Model>
class uma::bson::ODMObject< Model >::MetaField
Abstract base class that encapsulates a field in a model object. Primarily used to get around requirement that implementation needs exact type of data encapsulated in the field as template type.
- Template Parameters
-
| Model | The type of the class whose field is to be represented |
template<typename Model >
Create a new instance representing the field with the specified name.
- Parameters
-
| field | The name of the field. |
template<typename Model >
Virtual dtor for sub-classing.
template<typename Model >
Return the name of the field encapsulated in this meta field instance.
- Returns
- const std::string The field name.
template<typename Model >
template<typename Model >
The documentation for this class was generated from the following file:
- /Users/rakesh/projects/opensource/mongoviewer/bson/src/api/uma/bson/ODMObject.h