#include <mdtraits.h>
Inheritance diagram for MDTraits_BasicInt:
Public Member Functions | |
virtual std::string | Name () const |
A unique name for this trait. | |
Protected Member Functions | |
virtual void | SetInt64 (MDValuePtr Object, Int64 Val) |
Set from an Int64. | |
virtual void | SetUInt (MDValuePtr Object, UInt32 Val) |
Set from a UInt32. | |
virtual void | SetUInt64 (MDValuePtr Object, UInt64 Val) |
Set from a UInt64. | |
virtual void | SetString (MDValuePtr Object, std::string Val) |
Set from a string. | |
virtual Int64 | GetInt64 (MDValuePtr Object) |
Get Int64. | |
virtual UInt64 | GetUInt64 (MDValuePtr Object) |
Get UInt64. | |
virtual std::string | GetString (MDValuePtr Object) |
Get string from an integer. | |
virtual size_t | ReadValue (MDValuePtr Object, const UInt8 *Buffer, size_t Size, int Count=0) |
virtual std::string Name | ( | void | ) | const [inline, virtual] |
A unique name for this trait.
Implements MDTraits.
Reimplemented in MDTraits_Int8, MDTraits_UInt8, MDTraits_Int16, MDTraits_UInt16, MDTraits_Int32, MDTraits_UInt32, MDTraits_ISO7, and MDTraits_UTF16.
void SetInt64 | ( | MDValuePtr | Object, | |
Int64 | Val | |||
) | [protected, virtual] |
void SetUInt | ( | MDValuePtr | Object, | |
UInt32 | Val | |||
) | [protected, virtual] |
void SetUInt64 | ( | MDValuePtr | Object, | |
UInt64 | Val | |||
) | [protected, virtual] |
void SetString | ( | MDValuePtr | Object, | |
std::string | Val | |||
) | [protected, virtual] |
Int64 GetInt64 | ( | MDValuePtr | Object | ) | [protected, virtual] |
UInt64 GetUInt64 | ( | MDValuePtr | Object | ) | [protected, virtual] |
std::string GetString | ( | MDValuePtr | Object | ) | [protected, virtual] |
Get string from an integer.
< Buffer to hold text version of the value (32 bytes must be enough!)
Reimplemented from MDTraits.
Reimplemented in MDTraits_UInt8, MDTraits_UInt16, MDTraits_UInt32, MDTraits_ISO7, and MDTraits_UTF16.
size_t ReadValue | ( | MDValuePtr | Object, | |
const UInt8 * | Buffer, | |||
size_t | Size, | |||
int | Count = 0 | |||
) | [protected, virtual] |