OtlType extends otl_value<long> with a conversion from an OSB object type identifier, which converts an unset type id to a NULL value.
This makes it easy to use a nullable id in a database transaction.
Definition at line 58 of file otltype.h.
OSB_DB::OtlType::OtlType | ( | const otl_null & | rhs | ) | [inline] |
OSB_DB::OtlType::OtlType | ( | const OSB_LIB::TypeId< T, ST > & | rhs | ) | [inline, explicit] |
Conversion from type safe OSB type identifiers.
Value is mapped to NULL if the type identifier is not set.
Definition at line 73 of file otltype.h.
References OSB_LIB::TypeId< T, ST >::notSet().
OSB_LIB::TypeId<T, ST> OSB_DB::OtlType::mkType | ( | OSB_LIB::TypeId< T, ST > & | dest | ) | const [inline] |
For use in the constructor of an OSB type identifier.
A NULL value is translated to OSB_LIB::Type<T>().
dest | Type identifier to populate, see below. |
OtlType origin; OtlType dest; // fetch into origin ... OSB_LIB::CpMapper::Type t; OSB_LIB::UsageMapping mapDef(ut, origin.mkType(t), dest.mkType(t));