#include <trademgen/DBParams.hpp>
Public Member Functions | |
std::string | getUser () const |
std::string | getPassword () const |
std::string | getHost () const |
std::string | getPort () const |
std::string | getDBName () const |
void | setUser (const std::string &iUser) |
void | setPassword (const std::string &iPasswd) |
void | setHost (const std::string &iHost) |
void | setPort (const std::string &iPort) |
void | setDBName (const std::string &iDBName) |
bool | check () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &) |
std::string | toShortString () const |
std::string | toString () const |
DBParams (const std::string &iDBUser, const std::string &iDBPasswd, const std::string &iDBHost, const std::string &iDBPort, const std::string &iDBName) | |
virtual | ~DBParams () |
Structure modelling a (geographical) dbparams.
Definition at line 21 of file DBParams.hpp.
TRADEMGEN::DBParams::DBParams | ( | const std::string & | iDBUser, |
const std::string & | iDBPasswd, | ||
const std::string & | iDBHost, | ||
const std::string & | iDBPort, | ||
const std::string & | iDBName | ||
) | [inline] |
Main Constructor.
Definition at line 119 of file DBParams.hpp.
virtual TRADEMGEN::DBParams::~DBParams | ( | ) | [inline, virtual] |
Default Constructor. Default copy constructor. Destructor.
Definition at line 132 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::getUser | ( | ) | const [inline] |
Get the database user name.
Definition at line 25 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::getPassword | ( | ) | const [inline] |
Get the database user password.
Definition at line 30 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::getHost | ( | ) | const [inline] |
Get the database host name.
Definition at line 35 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::getPort | ( | ) | const [inline] |
Get the database port number.
Definition at line 40 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::getDBName | ( | ) | const [inline] |
Get the database name.
Definition at line 45 of file DBParams.hpp.
void TRADEMGEN::DBParams::setUser | ( | const std::string & | iUser | ) | [inline] |
Set the database user name.
Definition at line 52 of file DBParams.hpp.
void TRADEMGEN::DBParams::setPassword | ( | const std::string & | iPasswd | ) | [inline] |
Set the database password.
Definition at line 57 of file DBParams.hpp.
void TRADEMGEN::DBParams::setHost | ( | const std::string & | iHost | ) | [inline] |
Set the database host name.
Definition at line 62 of file DBParams.hpp.
void TRADEMGEN::DBParams::setPort | ( | const std::string & | iPort | ) | [inline] |
Set the database port number.
Definition at line 67 of file DBParams.hpp.
void TRADEMGEN::DBParams::setDBName | ( | const std::string & | iDBName | ) | [inline] |
Set the database name.
Definition at line 72 of file DBParams.hpp.
bool TRADEMGEN::DBParams::check | ( | ) | const [inline] |
Check that all the parameters are fine.
Definition at line 80 of file DBParams.hpp.
void TRADEMGEN::DBParams::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a structure into an output stream.
ostream& | the output stream. |
Implements TRADEMGEN::TRADEMGEN_Abstract.
Definition at line 93 of file DBParams.hpp.
References toString().
void TRADEMGEN::DBParams::fromStream | ( | std::istream & | ) | [inline, virtual] |
Read a structure from an input stream.
istream& | the input stream. |
Implements TRADEMGEN::TRADEMGEN_Abstract.
Definition at line 99 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::toShortString | ( | ) | const [inline] |
Get a short display of the DBParams structure.
Definition at line 103 of file DBParams.hpp.
std::string TRADEMGEN::DBParams::toString | ( | ) | const [inline, virtual] |
Get the serialised version of the DBParams structure.
Implements TRADEMGEN::TRADEMGEN_Abstract.
Definition at line 110 of file DBParams.hpp.
Referenced by toStream().