commit 2025-08-25 00:23 edit a bit ZCppMainTest/ZtCLoadXml_000.cpp
This commit is contained in:
@ -13,7 +13,7 @@ namespace ZNsMain
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0)
|
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)
|
||||||
{
|
{
|
||||||
typedef ZNsMain::ZtCStringBase<char> ZCStringData ;
|
typedef ZNsMain::ZtCStringBase<char> ZCStringData ;
|
||||||
|
|
||||||
@ -100,8 +100,22 @@ namespace ZNsMain
|
|||||||
ZCViewLoadXml VO_CViewLoadXml;
|
ZCViewLoadXml VO_CViewLoadXml;
|
||||||
ZCLoadXml VO_CLoadXml ;
|
ZCLoadXml VO_CLoadXml ;
|
||||||
|
|
||||||
VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData1, ZNsMain::ZftLength(CPC_XmlData1));
|
if(AI_ArgCnt<2)
|
||||||
VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData2, ZNsMain::ZftLength(CPC_XmlData2));
|
{
|
||||||
|
VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData1, ZNsMain::ZftLength(CPC_XmlData1));
|
||||||
|
VO_CLoadXml.Exec(VO_CViewLoadXml, CPC_XmlData2, ZNsMain::ZftLength(CPC_XmlData2));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for(int i=1; i<AI_ArgCnt; ++i) VO_CLoadXml.Exec
|
||||||
|
(
|
||||||
|
VO_CViewLoadXml, APP_ArgVal[i], ZNsMain::ZftLength(APP_ArgVal[i])
|
||||||
|
);
|
||||||
|
/*:::::::::::::::::::::::::::::::::::::::::::*/
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}/*
|
||||||
|
else*/
|
||||||
|
|
||||||
|
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
@ -123,7 +137,7 @@ namespace ZNsMain
|
|||||||
"EWaitByte="<<VO_CLoadXml.GetMSG_EWaitByte() <<", "
|
"EWaitByte="<<VO_CLoadXml.GetMSG_EWaitByte() <<", "
|
||||||
"Error MSG="<<VO_CViewLoadXmlOfXmlInfo.GetErrorMSG()<<endl;
|
"Error MSG="<<VO_CViewLoadXmlOfXmlInfo.GetErrorMSG()<<endl;
|
||||||
|
|
||||||
cin.get(); return 0;
|
return 0;
|
||||||
}/*
|
}/*
|
||||||
if(VE_ERunEx!=ZNsMain::ZNsEnum::ZERunEx_OK)*/
|
if(VE_ERunEx!=ZNsMain::ZNsEnum::ZERunEx_OK)*/
|
||||||
|
|
||||||
@ -137,7 +151,7 @@ namespace ZNsMain
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}/*
|
}/*
|
||||||
static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0)*/
|
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)*/
|
||||||
|
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
|
@ -23,7 +23,7 @@ namespace ZNsMain
|
|||||||
}/*
|
}/*
|
||||||
static void ShowDataInNode(int AI_Data)*/
|
static void ShowDataInNode(int AI_Data)*/
|
||||||
|
|
||||||
static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0)
|
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)
|
||||||
{
|
{
|
||||||
using namespace std ;
|
using namespace std ;
|
||||||
using namespace ZNsMain;
|
using namespace ZNsMain;
|
||||||
@ -42,7 +42,7 @@ namespace ZNsMain
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}/*
|
}/*
|
||||||
static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0)*/
|
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)*/
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user