OEFieldType

template<class T> class OEFieldType

The OEFieldType class is a templated class used to construct OEField objects for interacting with OERecord s.

Constructor

template <class T> OEFieldType<T> ()

Generally, OEFieldType objects are not constructed directly, but are used from the Types namespace.

GetName

std::string GetName() const

Returns the name of this field type.

ToBytes

static OEBytes ToBytes(const T &val)

Returns the binary representation of the value val.

FromBytes

static bool FromBytes(T &val, const OEBytes &data)

Returns true if a T value can be read from the provided bytes.

OEFieldTypeHandler

class OEFieldTypeHandler

The OEFieldTypeHandler class is a base class for field types. OEFieldTypeHandler objects are not constructed by users, but specific handlers are found in the Types namespace.

get_name

get_name() -> str

Returns the name of this field type.

isPOD

isPOD() -> bool

Returns true if the data type represents a simple “plain old data” type.

is_cacheable

is_cacheable() -> bool

Returns true if the data type can be cached on an OERecord object.