YPC  0.2.0
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ypc::plugins::typed_mysql_reader< T, Table > Class Template Reference
Inheritance diagram for ypc::plugins::typed_mysql_reader< T, Table >:
Inheritance graph
[legend]
Collaboration diagram for ypc::plugins::typed_mysql_reader< T, Table >:
Collaboration graph
[legend]

Classes

struct  assign_helper
 
struct  assign_helper< ARGT >
 
struct  assign_helper< ARGT1, ARGT2, ARGS... >
 
struct  assign_package
 
struct  assign_package<::ff::util::ntobject< ARGS... > >
 
struct  read_helper
 
struct  read_helper<::ff::util::ntobject< ARGS... > >
 

Public Types

typedef T item_t
 

Public Member Functions

 typed_mysql_reader (const std::string &extra_param)
 @extra_param should be a json string, like this
 
virtual int reset_for_read ()
 
virtual int read_item_data (char *buf, int *len)
 
virtual int close_item_reader ()
 
virtual int get_item_number ()
 
const item_t & item_at (size_t index) const
 

Protected Member Functions

void read_all_items ()
 

Protected Attributes

const std::string m_extra_param
 
std::unique_ptr<::ff::sql::mysql< ff::sql::cppconn > > m_engine
 
Table::row_collection_type m_all_items
 
size_t m_to_read_index
 

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