ZFFramework
 
Loading...
Searching...
No Matches
ZFNamespaceImpl.h
Go to the documentation of this file.
1
5#ifndef _ZFI_ZFNamespaceImpl_h_
6#define _ZFI_ZFNamespaceImpl_h_
7
8#include "ZFCoreTypeDef.h"
9#include "ZFCoreArray.h"
11
13
14// ============================================================
15extern ZFLIB_ZFCore zfstring _ZFP_ZFNamespaceRegister(
16 ZF_IN const zfchar *parent
17 , ZF_IN const zfchar *child
18 );
19extern ZFLIB_ZFCore void _ZFP_ZFNamespaceUnregister(ZF_IN const zfchar *ns);
20
30#define ZF_NAMESPACE_CURRENT() \
31 _ZFP_ZF_NAMESPACE_NOT_REGISTERED<void>()
32
33// ============================================================
52 , ZF_IN const zfchar *src
53 , ZF_IN_OPT zfindex srcLen = zfindexMax()
54 );
55
56// ============================================================
65 return ret;
66}
67
71 , ZF_IN const zfchar *parent
72 , ZF_IN_OPT zfbool recursive = zffalse
73 );
76 ZF_IN const zfchar *parent
77 , ZF_IN_OPT zfbool recursive = zffalse
78 ) {
80 ZFNamespaceGetAllT(ret, parent, recursive);
81 return ret;
82}
83
85#endif // #ifndef _ZFI_ZFNamespaceImpl_h_
86
light weight array
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
static register util
types for ZFFramework
_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_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
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
zfbool ZFNamespaceSplit(ZFCoreArray< ZFIndexRange > &ret, const zfchar *src, zfindex srcLen=((zfindex) -1))
util to split namespace components, similar to ZFCoreDataPairSplitString
const zfchar * ZFNamespaceSkipGlobal(const zfchar *ns)
skip "zf." in "zf.NS0.NS1.funcName"
void ZFNamespaceGetAllT(ZFCoreArray< zfstring > &ret)
get all namespace
ZFCoreArray< zfstring > ZFNamespaceGetAll(void)
see ZFNamespaceGetAllT
Definition ZFNamespaceImpl.h:62
light weight array
Definition ZFCoreArray.h:331