80 lines
1.3 KiB
C++
80 lines
1.3 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TSqlQuiry 类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TSqlQuiry 声明
|
|
// = Maintainers:
|
|
//
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
#ifndef _TSQLQUIRY_H_
|
|
#define _TSQLQUIRY_H_
|
|
|
|
#ifndef _TACSTRING_H_
|
|
#include "TACString.h"
|
|
#endif
|
|
|
|
#ifndef _TWCSTRING_H_
|
|
#include "TWCString.h"
|
|
#endif
|
|
|
|
#ifndef _TACSTRINGLIST_H_
|
|
#include "TACStringList.h"
|
|
#endif
|
|
|
|
#ifndef _TWCSTRINGLIST_H_
|
|
#include "TWCStringList.h"
|
|
#endif
|
|
|
|
#ifndef _TDPTRLIST_H_
|
|
#include "TDPtrList.h"
|
|
#endif
|
|
|
|
#ifndef _TSQLCONDITION_H_
|
|
#include "TSqlCondition.h"
|
|
#endif
|
|
|
|
#include <ostream>
|
|
#include "io.h"
|
|
#include "afxdisp.h"
|
|
#include "stdio.h"
|
|
|
|
#if (ADS<=15)
|
|
#include <iostream.h>
|
|
#endif
|
|
|
|
class GEOAPI TSqlQuiry
|
|
{
|
|
public:
|
|
|
|
TSqlQuiry();
|
|
~TSqlQuiry();
|
|
|
|
int Execute();
|
|
|
|
void QuiryOut(
|
|
#if (ADS > 15)
|
|
std::
|
|
#endif
|
|
ostream &out);
|
|
|
|
int AppendOutput(TCStringList *rec);
|
|
|
|
public:
|
|
|
|
int isDistinct;
|
|
|
|
TCString dbfFile;
|
|
|
|
TCStringList outputFields;
|
|
|
|
TDPtrList<TCStringList> outbuf;
|
|
|
|
TDPtrList<TSqlCondition> conditions;
|
|
|
|
};
|
|
|
|
#endif
|
|
|