You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
// DefCommon.h: interface for the CDefCommon class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_DEFCOMMON_H__A1AD7AF2_59B2_4836_A487_1E4766A93B5A__INCLUDED_)
|
|
#define AFX_DEFCOMMON_H__A1AD7AF2_59B2_4836_A487_1E4766A93B5A__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#ifdef BUILD_GUIDLL
|
|
#define DLLCLASS __declspec(dllexport)
|
|
#else
|
|
#define DLLCLASS __declspec(dllimport)
|
|
#endif
|
|
|
|
#include "dbini.h"
|
|
|
|
class DLLCLASS CDefCommon
|
|
{
|
|
public:
|
|
CDefCommon();
|
|
virtual ~CDefCommon();
|
|
|
|
// initialied package field name and recipe field name
|
|
static void InitCommDef(int iRecipeNameIndex = RECIPE_NAME_INDEX,
|
|
int iPackageNameIndex = PACKAGE_NAME_INDEX, const char *ccDb = PACKAGE_DB,
|
|
const char *ccTable = RECIPE_MANAGEMENT_TABLE);
|
|
|
|
// get package field name
|
|
static CString GetPackageFieldName();
|
|
|
|
// get recipe field name
|
|
static CString GetRecipeFieldName();
|
|
|
|
private:
|
|
enum
|
|
{
|
|
RECIPE_NAME_INDEX = 1,
|
|
PACKAGE_NAME_INDEX = 2,
|
|
};
|
|
|
|
static CString m_scsPackageName;
|
|
static CString m_scsRecipeName;
|
|
};
|
|
|
|
#endif // !defined(AFX_DEFCOMMON_H__A1AD7AF2_59B2_4836_A487_1E4766A93B5A__INCLUDED_)
|