forked from r-dbi/RPostgres
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDbDataFrame.h
More file actions
38 lines (29 loc) · 819 Bytes
/
Copy pathDbDataFrame.h
File metadata and controls
38 lines (29 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef DB_DATAFRAME_H
#define DB_DATAFRAME_H
#include <boost/container/stable_vector.hpp>
#include <boost/scoped_ptr.hpp>
#include "DbColumnDataType.h"
class DbColumn;
class DbColumnDataSourceFactory;
class DbDataFrame {
boost::scoped_ptr<DbColumnDataSourceFactory> factory;
const int n_max;
int i;
boost::container::stable_vector<DbColumn> data;
std::vector<std::string> names;
public:
DbDataFrame(DbColumnDataSourceFactory* factory,
std::vector<std::string> names,
const int n_max_,
const std::vector<DATA_TYPE>& types);
virtual ~DbDataFrame();
public:
void set_col_values();
bool advance();
List get_data();
List get_data(std::vector<DATA_TYPE>& types);
size_t get_ncols() const;
private:
void finalize_cols();
};
#endif //DB_DATAFRAME_H