6#ifndef _ZFI_ZFVersion_h_
7#define _ZFI_ZFVersion_h_
86#define ZFComparerForVersion _ZFP_ZFComparerForVersion
115#define ZFVERSION_MAIN() 0
117#define ZFVERSION_SUB() 1
119#define ZFVERSION_MINOR() 2
121#define ZFVERSION_BUILD() 3
common comparer for ZFFramework
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
_ZFT_t_zfuint zfuint
same as unsigned int, see zfindex
Definition ZFCoreTypeDef_CoreType.h:169
ZFCompareResult
compare result of two ZFObjects
Definition ZFCoreTypeDef_OtherType.h:28
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
void ZFVersionGet(zfstring &ret, const zfchar *version, zfindex subVersionIndex)
get sub version at subVersionIndex
void ZFVersionGetInt(zfuint &ret, const zfchar *version, zfindex subVersionIndex)
util method to get int version value of ZFVersionGet
#define ZFComparerForVersion
default comparer for sub version compare, compared by string's integer value
Definition ZFVersion.h:86
void ZFVersionSetInt(zfstring &version, zfindex subVersionIndex, zfuint subVersion, const zfchar *emptySubVersion="0")
util method to set int version value of ZFVersionSet
ZFCompareResult ZFVersionCompare(const zfchar *version0, const zfchar *version1, ZFComparer< const zfchar * >::Comparer subVersionComparer=_ZFP_ZFComparerForVersion)
compare two version
void ZFVersionSet(zfstring &version, zfindex subVersionIndex, const zfchar *subVersion, const zfchar *emptySubVersion="0")
set sub version at subVersionIndex
ZFCompareResult(* Comparer)(T_Comparable const &e0, T_Comparable2 const &e1)
see ZFComparer
Definition ZFCoreTypeDef_OtherType.h:130