2026-10-04 00:04:20 +08:00
|
|
|
//-------------------------------------------------------------------------------------------------------+
|
2026-09-28 15:28:50 +08:00
|
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
2026-10-04 00:04:20 +08:00
|
|
|
// = FileName : TSqlCondition 类
|
2026-09-28 15:28:50 +08:00
|
|
|
// = Version : ver2.0
|
|
|
|
|
// = Author : wlw
|
|
|
|
|
// = CreateDate : 2002-09-09
|
2026-10-04 00:04:20 +08:00
|
|
|
// = Description: TSqlCondition 声明
|
2026-09-28 15:28:50 +08:00
|
|
|
// = Maintainers:
|
|
|
|
|
//
|
|
|
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
|
|
|
#ifndef _TSQLCONDITION_H_
|
|
|
|
|
#define _TSQLCONDITION_H_
|
|
|
|
|
|
|
|
|
|
#ifndef _TACSTRING_H_
|
|
|
|
|
#include "TACString.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef _TWCSTRING_H_
|
|
|
|
|
#include "TWCString.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
enum DataType
|
|
|
|
|
{
|
|
|
|
|
SQL_INT,
|
|
|
|
|
SQL_REAL,
|
|
|
|
|
SQL_CHAR,
|
|
|
|
|
SQL_DATE
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum DataCompare
|
|
|
|
|
{
|
|
|
|
|
GREAT,
|
|
|
|
|
GREAT_EQUAL,
|
|
|
|
|
EQUAL,
|
|
|
|
|
LITTLE,
|
|
|
|
|
LITTLE_EQUAL,
|
|
|
|
|
NOT_EQUAL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class GEOAPI TSqlCondition
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
TSqlCondition();
|
|
|
|
|
|
|
|
|
|
~TSqlCondition();
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
{
|
|
|
|
|
int rint;
|
|
|
|
|
double rreal;
|
|
|
|
|
char *rstring;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
DataType type;
|
|
|
|
|
|
|
|
|
|
DataCompare opr;
|
|
|
|
|
|
|
|
|
|
TCString fieldName;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|