commit 2025-08-24 23:37 add ZCppMain/ZMainCGI.H and ZCppMainTest/ZMainCGI_000_EnvSet.cpp
This commit is contained in:
@ -4914,9 +4914,10 @@ namespace ZNsMain
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
template<typename TViewDir, typename TTypeHelp>
|
||||
static ZNsMain::ZNsEnum::ZERun IterDirEx(
|
||||
ZTypCPCh APC_DirPath, TViewDir AR_CViewDir, TTypeHelp AR_CTypeHelp)
|
||||
template
|
||||
<typename TViewDir, typename TTypeHelp>
|
||||
static ZNsMain::ZNsEnum::ZERun IterDirEx
|
||||
( ZTypCPCh APC_DirPath, TViewDir AR_CViewDir, TTypeHelp AR_CTypeHelp )
|
||||
{
|
||||
using ZNsMain::ZNsEnum::ZERun ;
|
||||
using ZNsMain::ZNsEnum::ZERun_OK;
|
||||
@ -5072,20 +5073,21 @@ namespace ZNsMain
|
||||
|
||||
return VE_ERun;
|
||||
}/*
|
||||
template<typename TViewDir, typename TTypeHelp>
|
||||
static ZNsMain::ZNsEnum::ZERun IterDirEx(
|
||||
ZTypCPCh APC_DirPath, TViewDir AR_CViewDir, TTypeHelp AR_CTypeHelp) */
|
||||
template
|
||||
<typename TViewDir, typename TTypeHelp>
|
||||
static ZNsMain::ZNsEnum::ZERun IterDirEx
|
||||
( ZTypCPCh APC_DirPath, TViewDir AR_CViewDir, TTypeHelp AR_CTypeHelp ) */
|
||||
|
||||
|
||||
// APC_DirPath 는 디렉토리 구분자로 끝나지 않게 하자.
|
||||
|
||||
static ZNsMain::ZNsEnum::ZERun IterFile
|
||||
static ZNsMain::ZNsEnum::ZERun IterFile /*#################################*/
|
||||
(
|
||||
ZTypCPCh APC_DirPath, void* APC_VoidKey,
|
||||
ZNsMain::ZNsEnum::ZERun (*APF_EachFile)(ZTypCPCh APC_NowPath, ZCFileData& AR_CFileData, void* APC_VoidKey),
|
||||
ZNsMain::ZNsEnum::ZERun (*APF_EachDir )(ZTypCPCh APC_NowPath, ZCFileData& AR_CFileData, void* APC_VoidKey)=0
|
||||
)
|
||||
///////////////////////////////////////
|
||||
/*##########################################################################*/
|
||||
{
|
||||
ZNsMain::ZNsEnum::ZERun VE_ERun=ZNsMain::ZNsEnum::ZERun_OK;
|
||||
|
||||
@ -5152,7 +5154,7 @@ namespace ZNsMain
|
||||
dirent VO_DirEnt;
|
||||
#endif
|
||||
dirent* VP_DirEnt;
|
||||
TypeDirID VH_File= ::opendir(APC_DirPath);
|
||||
TypeDirID VH_File = ::opendir(APC_DirPath) ;
|
||||
char VCA_Search[_MAX_PATH2+1]={_T('0')};
|
||||
|
||||
if(VH_File==NULL)
|
||||
@ -5164,7 +5166,7 @@ namespace ZNsMain
|
||||
while(VP_DirEnt= ::readdir(VH_File))
|
||||
#endif
|
||||
{
|
||||
const bool CB_IsNotValid=(
|
||||
const bool CB_IsNotValid = (
|
||||
::strcmp(".", VP_DirEnt->d_name)==0 ||
|
||||
::strcmp("..", VP_DirEnt->d_name)==0
|
||||
/*//////////*/ );
|
||||
@ -5218,13 +5220,13 @@ namespace ZNsMain
|
||||
|
||||
return VE_ERun;
|
||||
}/*
|
||||
static ZNsMain::ZNsEnum::ZERun IterFile
|
||||
static ZNsMain::ZNsEnum::ZERun IterFile ####################################
|
||||
(
|
||||
ZTypCPCh APC_DirPath, void* APC_VoidKey,
|
||||
ZNsMain::ZNsEnum::ZERun (*APF_EachFile)(ZTypCPCh APC_NowPath, ZCFileData& AR_CFileData, void* APC_VoidKey),
|
||||
ZNsMain::ZNsEnum::ZERun (*APF_EachDir )(ZTypCPCh APC_NowPath, ZCFileData& AR_CFileData, void* APC_VoidKey)=0
|
||||
)
|
||||
/////////////////////////////////////*/
|
||||
/*##########################################################################*/
|
||||
|
||||
|
||||
/*////////////////////////////////////////////////////
|
||||
|
@ -133,7 +133,7 @@ namespace ZNsMain
|
||||
}/*
|
||||
if(mb_DoFindStart==true)*/
|
||||
|
||||
return GetChildObj.ExecBlockOut(APC_Data, AL_Length);
|
||||
return GetChildObj().ExecBlockOut(APC_Data, AL_Length);
|
||||
}/*
|
||||
_NP_ ZERun OnMeetNormal(const TypeChar* APC_Data, TypeLength AL_Length)*/
|
||||
|
||||
@ -343,9 +343,8 @@ namespace ZNsMain
|
||||
template<typename THelpType> ZERun LoadData(
|
||||
const TypeChar* APC_Data, TypeLength AL_Length, THelpType AO_CHelpType)
|
||||
{
|
||||
typedef ZNsMain::
|
||||
ZtCCheckRef<THelpType> ZCCheckRef;
|
||||
typedef ZCCheckRef::TypeData TypeObject;
|
||||
typedef ZNsMain::ZtCCheckRef<THelpType> ZCCheckRef;
|
||||
typedef typename ZCCheckRef::TypeData TypeObject;
|
||||
|
||||
bool VB_IsOK =false ;
|
||||
ZTypLength VL_StartPos=0 ;
|
||||
|
Reference in New Issue
Block a user