Public Member Functions

Barry::FieldValueHandlerBase Class Reference
[GenericFieldHandles]

This is a pure virtual base class, defining the various types that record fields can be. More...

#include <record.h>

List of all members.

Public Member Functions

virtual void operator() (const std::string &v, const FieldIdentity &id) const =0
 For type std::string.
virtual void operator() (const EmailAddressList &v, const FieldIdentity &id) const =0
 For type EmailAddressList.
virtual void operator() (const Barry::TimeT &v, const FieldIdentity &id) const =0
 For type Barry::TimeT.
virtual void operator() (const uint8_t &v, const FieldIdentity &id) const =0
 For type uint8_t.
virtual void operator() (const uint16_t &v, const FieldIdentity &id) const =0
 For type uint16_t.
virtual void operator() (const uint32_t &v, const FieldIdentity &id) const =0
 For type uint32_t.
virtual void operator() (const uint64_t &v, const FieldIdentity &id) const =0
 For type uint64_t.
virtual void operator() (const bool &v, const FieldIdentity &id) const =0
 For type bool.
virtual void operator() (const int32_t &v, const FieldIdentity &id) const =0
 For type int32_t.
virtual void operator() (const EmailList &v, const FieldIdentity &id) const =0
 For type EmailList.
virtual void operator() (const Date &v, const FieldIdentity &id) const =0
 For type Date.
virtual void operator() (const CategoryList &v, const FieldIdentity &id) const =0
 For type CategoryList.
virtual void operator() (const PostalAddress &v, const FieldIdentity &id) const =0
 For type PostalAddress.
virtual void operator() (const UnknownsType &v, const FieldIdentity &id) const =0
 For type UnknownsType.

Detailed Description

This is a pure virtual base class, defining the various types that record fields can be.

To be able to handle all the types of data in all records, override these virtual functions to do with the data as you wish.

All data from the records and fields will be passed in by value. i.e. if field is string data, the overloaded std::string handler will be called, and a refernce to the string will be passed in.

The advantage of using this virtual class is that less code will be generated by templates. The disadvantage is that this is less flexible. You will only get called for one field and record at a time. So you can't do comparisons this way.

Definition at line 708 of file record.h.


Member Function Documentation

virtual void Barry::FieldValueHandlerBase::operator() ( const std::string &  v,
const FieldIdentity id 
) const [pure virtual]

For type std::string.

virtual void Barry::FieldValueHandlerBase::operator() ( const UnknownsType &  v,
const FieldIdentity id 
) const [pure virtual]

For type UnknownsType.

virtual void Barry::FieldValueHandlerBase::operator() ( const PostalAddress v,
const FieldIdentity id 
) const [pure virtual]

For type PostalAddress.

virtual void Barry::FieldValueHandlerBase::operator() ( const CategoryList v,
const FieldIdentity id 
) const [pure virtual]

For type CategoryList.

virtual void Barry::FieldValueHandlerBase::operator() ( const Date v,
const FieldIdentity id 
) const [pure virtual]

For type Date.

virtual void Barry::FieldValueHandlerBase::operator() ( const EmailList v,
const FieldIdentity id 
) const [pure virtual]

For type EmailList.

virtual void Barry::FieldValueHandlerBase::operator() ( const int32_t &  v,
const FieldIdentity id 
) const [pure virtual]

For type int32_t.

virtual void Barry::FieldValueHandlerBase::operator() ( const bool &  v,
const FieldIdentity id 
) const [pure virtual]

For type bool.

virtual void Barry::FieldValueHandlerBase::operator() ( const uint64_t &  v,
const FieldIdentity id 
) const [pure virtual]

For type uint64_t.

virtual void Barry::FieldValueHandlerBase::operator() ( const uint32_t &  v,
const FieldIdentity id 
) const [pure virtual]

For type uint32_t.

virtual void Barry::FieldValueHandlerBase::operator() ( const uint16_t &  v,
const FieldIdentity id 
) const [pure virtual]

For type uint16_t.

virtual void Barry::FieldValueHandlerBase::operator() ( const uint8_t &  v,
const FieldIdentity id 
) const [pure virtual]

For type uint8_t.

virtual void Barry::FieldValueHandlerBase::operator() ( const Barry::TimeT v,
const FieldIdentity id 
) const [pure virtual]

For type Barry::TimeT.

virtual void Barry::FieldValueHandlerBase::operator() ( const EmailAddressList v,
const FieldIdentity id 
) const [pure virtual]

For type EmailAddressList.


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