#if _MSC_VER > 1000
|
#pragma once
|
#endif // _MSC_VER > 1000
|
// QLParam.h : header file
|
//
|
|
#include "QLObj.h"
|
|
/////////////////////////////////////////////////////////////////////////////
|
// CQLParam window
|
|
class AFX_EXT_CLASS CQLParam : public CQLObj
|
{
|
// Construction
|
public:
|
CQLParam();
|
virtual ~CQLParam();
|
|
typedef struct _DATA_STR
|
{
|
CString strName;
|
CString strValue;
|
} DATA_STR;
|
|
typedef struct _DATA_OBJ
|
{
|
CString strName;
|
IDispatch *pDisp;
|
|
_DATA_OBJ() : pDisp( NULL ) {}
|
} DATA_OBJ;
|
|
// Attributes
|
public:
|
CArray<DATA_OBJ, DATA_OBJ &> m_arObject;
|
CArray<DATA_STR, DATA_STR &> m_arDataStr;
|
|
// Operations
|
public:
|
void DetachObjectArray();
|
BOOL ExistObject( CString strName );
|
int FindObject( CString strName );
|
BOOL SetObject( CString strName, IDispatch *pDisp );
|
BOOL GetObject( CString strName, IDispatch **ppDisp );
|
|
BOOL ExistStrData( CString strName );
|
int FindStrData( CString strName );
|
BOOL SetStrData( CString strName, CString strData );
|
BOOL GetStrData( CString strName, CString &strData );
|
|
};
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//{{AFX_INSERT_LOCATION}}
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|