Public Member Functions

Barry::EnumField< RecordT, EnumT > Class Template Reference
[GenericFieldHandles]

EnumField<RecordT, EnumT> More...

#include <record.h>

Inheritance diagram for Barry::EnumField< RecordT, EnumT >:
Inheritance graph
[legend]
Collaboration diagram for Barry::EnumField< RecordT, EnumT >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual int GetValue (const RecordT &rec) const
 Return value of enum in rec.
virtual void SetValue (RecordT &rec, int value)
 Set value of enum in rec Throws std::logic_error if value is out of range.

Detailed Description

template<class RecordT, class EnumT>
class Barry::EnumField< RecordT, EnumT >

EnumField<RecordT, EnumT>

Definition at line 775 of file record.h.


Member Function Documentation

template<class RecordT , class EnumT >
virtual int Barry::EnumField< RecordT, EnumT >::GetValue ( const RecordT &  rec  )  const [inline, virtual]

Return value of enum in rec.

Implements Barry::EnumFieldBase< RecordT >.

Definition at line 785 of file record.h.

template<class RecordT , class EnumT >
virtual void Barry::EnumField< RecordT, EnumT >::SetValue ( RecordT &  rec,
int  value 
) [inline, virtual]

Set value of enum in rec Throws std::logic_error if value is out of range.

Implements Barry::EnumFieldBase< RecordT >.

Definition at line 790 of file record.h.

References Barry::EnumConstants::IsConstantValid().

Here is the call graph for this function:


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