#pragma once
|
|
// CMBAMDBFun command target
|
|
class AFX_EXT_CLASS CMBAMDBFun : public CObject
|
{
|
public:
|
CMBAMDBFun();
|
virtual ~CMBAMDBFun();
|
|
public:
|
static CString GetDefaultIniFile();
|
static void WriteDBErrToFile( CString strErrInfo );
|
static void WriteRowToFile(CString strFileName, CString strContent );
|
static CString GetDBReplaceStr( CString strData );
|
static CString FormatDBTIMEToStr( COleDateTime dtData );
|
static int GetStringLen(CString strText);
|
static CString GetSubjectFromFormatText( CString strFormatText);
|
static CString GetRelSubject( CString strSubject, long nMaxLen );
|
static int FindStringInArray( CString strData, CStringArray &asData, bool bCheckCompare = true );
|
static bool GetParam( CString strStuff, CStringArray &asVarName , CStringArray &asValue , CString strApart);
|
static BOOL GetParam( CString strStuff, CString strParamName , CString &strParam , CString strApart);
|
|
static int GetElementCount(CString strStuff,CString strApart );
|
static BOOL GetElementItem(CString &strStuff, CString &strItem,CString strApart);
|
static void DelElementItem(CString &strStuff, CString strItem,CString strApart);
|
static void AddElementItem(CString &strStuff, CString strItem,CString strApart);
|
static BOOL ExistElementItem(CString strStuff, CString strItem,CString strApart);
|
|
static void AddElementItem(CString &strStuff, CString strItem1, CString strItme2, CString strApart);
|
static BOOL GetElementItem(CString &strStuff, CString &strItem1, CString &strItem2,CString strApart);
|
static BOOL ExistElementItem(CString strStuff, CString strItem1, CString strItem2,CString strApart);
|
static BOOL GetElementItemByIndex(CString strStuff, int nIndex, CString &strItem , CString strApart );
|
|
static CString GetWorkDir();
|
static CString GetModulePath();
|
static CString GetPathName( CString strFileName );
|
static CString GetFileName( CString strFilePathName );
|
static BOOL ExistPath( CString strPathName );
|
static BOOL ExistFile( CString strFileName );
|
|
|
};
|