1*fce4895dSRene Gollent /* 2*fce4895dSRene Gollent * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3*fce4895dSRene Gollent * Distributed under the terms of the MIT License. 4*fce4895dSRene Gollent */ 5*fce4895dSRene Gollent #ifndef INTEGER_FORMATTER_H 6*fce4895dSRene Gollent #define INTEGER_FORMATTER_H 7*fce4895dSRene Gollent 8*fce4895dSRene Gollent 9*fce4895dSRene Gollent #include <Variant.h> 10*fce4895dSRene Gollent 11*fce4895dSRene Gollent 12*fce4895dSRene Gollent enum integer_format { 13*fce4895dSRene Gollent INTEGER_FORMAT_DEFAULT = 0, 14*fce4895dSRene Gollent INTEGER_FORMAT_SIGNED = 1, 15*fce4895dSRene Gollent INTEGER_FORMAT_UNSIGNED = 2, 16*fce4895dSRene Gollent INTEGER_FORMAT_HEX_DEFAULT = 3, 17*fce4895dSRene Gollent INTEGER_FORMAT_HEX_8 = 8, 18*fce4895dSRene Gollent INTEGER_FORMAT_HEX_16 = 16, 19*fce4895dSRene Gollent INTEGER_FORMAT_HEX_32 = 32, 20*fce4895dSRene Gollent INTEGER_FORMAT_HEX_64 = 64 21*fce4895dSRene Gollent }; 22*fce4895dSRene Gollent 23*fce4895dSRene Gollent 24*fce4895dSRene Gollent class IntegerFormatter { 25*fce4895dSRene Gollent public: 26*fce4895dSRene Gollent static bool FormatValue(const BVariant& value, 27*fce4895dSRene Gollent integer_format format, char* buffer, 28*fce4895dSRene Gollent size_t bufferSize); 29*fce4895dSRene Gollent }; 30*fce4895dSRene Gollent 31*fce4895dSRene Gollent 32*fce4895dSRene Gollent #endif // INTEGER_FORMATTER_H 33