📄 oratype.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -