IODA Bundle
odc::Select Class Reference

#include <Select.h>

Collaboration diagram for odc::Select:
[legend]

Public Types

typedef IteratorProxy< SelectIterator, Select, const double > iterator
 
typedef iterator::Row row
 

Public Member Functions

 Select (const std::string &selectStatement="", bool manageOwnBuffer=true)
 
 Select (const std::string &selectStatement, eckit::DataHandle &dh, bool manageOwnBuffer=true)
 
 Select (const std::string &selectStatement, const std::string &path, bool manageOwnBuffer=true)
 
 Select (const std::string &selectStatement, const char *path, bool manageOwnBuffer=true)
 
virtual ~Select ()
 
eckit::sql::SQLDatabase & database ()
 
iterator begin ()
 
const iterator end ()
 
SelectIteratorcreateSelectIterator (const std::string &)
 

Private Attributes

std::unique_ptr< eckit::DataHandle > ownDH_
 
std::string selectStatement_
 
std::string delimiter_
 
eckit::sql::SQLSession session_
 
bool initted_
 
iterator it_
 

Friends

class odc::IteratorProxy< odc::SelectIterator, odc::Select, const double >
 

Detailed Description

Definition at line 33 of file Select.h.

Member Typedef Documentation

◆ iterator

Definition at line 36 of file Select.h.

◆ row

Definition at line 37 of file Select.h.

Constructor & Destructor Documentation

◆ Select() [1/4]

odc::Select::Select ( const std::string &  selectStatement = "",
bool  manageOwnBuffer = true 
)

Definition at line 32 of file Select.cc.

◆ Select() [2/4]

odc::Select::Select ( const std::string &  selectStatement,
eckit::DataHandle &  dh,
bool  manageOwnBuffer = true 
)

Definition at line 40 of file Select.cc.

◆ Select() [3/4]

odc::Select::Select ( const std::string &  selectStatement,
const std::string &  path,
bool  manageOwnBuffer = true 
)

Definition at line 49 of file Select.cc.

Here is the call graph for this function:

◆ Select() [4/4]

odc::Select::Select ( const std::string &  selectStatement,
const char *  path,
bool  manageOwnBuffer = true 
)

Definition at line 58 of file Select.cc.

◆ ~Select()

odc::Select::~Select ( )
virtual

Definition at line 62 of file Select.cc.

Member Function Documentation

◆ begin()

Select::iterator odc::Select::begin ( )

Definition at line 81 of file Select.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createSelectIterator()

SelectIterator * odc::Select::createSelectIterator ( const std::string &  sql)

Definition at line 69 of file Select.cc.

Here is the caller graph for this function:

◆ database()

eckit::sql::SQLDatabase & odc::Select::database ( )

Definition at line 64 of file Select.cc.

Here is the caller graph for this function:

◆ end()

const Select::iterator odc::Select::end ( )

Definition at line 77 of file Select.cc.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ odc::IteratorProxy< odc::SelectIterator, odc::Select, const double >

friend class odc::IteratorProxy< odc::SelectIterator, odc::Select, const double >
friend

Definition at line 57 of file Select.h.

Member Data Documentation

◆ delimiter_

std::string odc::Select::delimiter_
private

Definition at line 69 of file Select.h.

◆ initted_

bool odc::Select::initted_
private

Definition at line 75 of file Select.h.

◆ it_

iterator odc::Select::it_
private

Definition at line 76 of file Select.h.

◆ ownDH_

std::unique_ptr<eckit::DataHandle> odc::Select::ownDH_
private

Definition at line 64 of file Select.h.

◆ selectStatement_

std::string odc::Select::selectStatement_
private

Definition at line 68 of file Select.h.

◆ session_

eckit::sql::SQLSession odc::Select::session_
private

Definition at line 71 of file Select.h.


The documentation for this class was generated from the following files: