Public Member Functions | Private Attributes
librms::rms Class Reference

#include <rms.hpp>

List of all members.

Public Member Functions

bool connect ()
bool connected ()
std::string get_database () const
std::string get_host () const
std::string get_password () const
unsigned int get_port () const
librms::study get_study (unsigned int id)
std::string get_user () const
MYSQL_RES * query (std::string query)
 rms (std::string host, unsigned int port, std::string user, std::string password, std::string database)
 ~rms ()

Private Attributes

MYSQL * conn_
bool connected_
std::string database_
std::string host_
std::string password_
unsigned int port_
std::string user_

Detailed Description

Definition at line 24 of file rms.hpp.


Constructor & Destructor Documentation

rms::rms ( std::string  host,
unsigned int  port,
std::string  user,
std::string  password,
std::string  database 
)

Definition at line 9 of file rms.cpp.

rms::~rms ( )

Definition at line 18 of file rms.cpp.


Member Function Documentation

bool rms::connect ( )

Definition at line 56 of file rms.cpp.

bool rms::connected ( )

Definition at line 51 of file rms.cpp.

string rms::get_database ( ) const

Definition at line 46 of file rms.cpp.

string rms::get_host ( ) const

Definition at line 31 of file rms.cpp.

string rms::get_password ( ) const

Definition at line 41 of file rms.cpp.

unsigned int rms::get_port ( ) const

Definition at line 26 of file rms.cpp.

study rms::get_study ( unsigned int  id)

Definition at line 68 of file rms.cpp.

string rms::get_user ( ) const

Definition at line 36 of file rms.cpp.

MYSQL_RES * rms::query ( std::string  query)

Definition at line 86 of file rms.cpp.


Member Data Documentation

MYSQL* librms::rms::conn_ [private]

Definition at line 50 of file rms.hpp.

bool librms::rms::connected_ [private]

Definition at line 53 of file rms.hpp.

std::string librms::rms::database_ [private]

Definition at line 52 of file rms.hpp.

std::string librms::rms::host_ [private]

Main MySQL connection

Definition at line 52 of file rms.hpp.

std::string librms::rms::password_ [private]

Definition at line 52 of file rms.hpp.

unsigned int librms::rms::port_ [private]

Definition at line 54 of file rms.hpp.

std::string librms::rms::user_ [private]

Definition at line 52 of file rms.hpp.


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


librms
Author(s): Russell Toris
autogenerated on Thu Feb 25 2016 11:42:49