row2.hh
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- #ifndef __row2_hh__
- #define __row2_hh__
- #include <string>
- using namespace std;
- #include "string.h"
- #include "row1.hh"
- #include "result2.hh"
- inline Row::size_type Row::size() const {return res->num_fields();}
- inline const ColData Row::operator [] (size_type i) const {
- return ColData(data[i].c_str(), res->types(i),is_nulls[i]);
- }
- inline const ColData Row::operator[] (const string &i) const {
- return (*this)[res->field_num(i)];
- }
- inline const ColData Row::operator[] (const char *i) const {
- return (*this)[res->field_num(string(i))];
- }
- // RowTemplate
- #endif