oratype.h

来自「在动态库中实现异步导出大数据量的oracle数据」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef __ORATYPE_H_
#define __ORATYPE_H_

#include "ocicpp.h"
#include "OraError.h"

namespace OCICPP {
using std::string;

class OraType {
protected:
	OCIDefine *definehp;
	OCIEnv    *env;
	OCIError  *err;
	string attrName; /* Attribute name this cell belongs to */
	string typeName; /* Type name e.g. varchar2 or CLOB or NUMBER */
	ub2 internalType; /* Oracle internal type e.g. number varchar2 and so on */
	ub2 ReqType; /* Requested type e.g. string for number and so on */
	sb2 *null;
	int nRows;
	unsigned size;
protected:
	virtual void setTypeName();
public:
	OraType(OCIEnv *,OCIError *,OCIParam *,ub2,int nRows);
	virtual ~OraType();
	
	virtual int getType() const;
	virtual int getReqType() const;
	virtual void getTypeName(string &tname) const;
	virtual void getAttrName(string &aname) const;
	virtual bool isNull(int row) const;
	virtual unsigned getSize() const;
public: 	
	
	virtual void getStr(string &,int row) = 0;
	virtual void define(OCIStmt *,int pos) = 0;
};

}

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?