Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

MySQLServer Class Reference
[MySQL C++ Wrappers]

#include <mysqlServer.hpp>

Inheritance diagram for MySQLServer:

Inheritance graph
[legend]

Public Member Functions

 MySQLServer (const std::string &_userName, const std::string &_passWord) throw (Error)
virtual void connect (const std::string &database, MYSQL *m)=0 throw (Error)
MYSQL * getConnection (void)

Protected Attributes

MYSQL connection
std::string passWord

Detailed Description

Store information for connecting to a MySQL server.
Date:
Sun Feb 19 2006
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 29 of file mysqlServer.hpp.


Constructor & Destructor Documentation

MySQLServer::MySQLServer ( const std::string &  _userName,
const std::string &  _passWord 
) throw (Error) [inline]

Constructor. Store information for connecting to a MySQL server.

Parameters:
_userName Name of database user.
_passWord Password of database-user.

Definition at line 36 of file mysqlServer.hpp.

00037                                                          :
00038     Server( _userName ), passWord( _passWord ) {}


Member Function Documentation

virtual void MySQLServer::connect ( const std::string &  database,
MYSQL *  m 
) throw (Error) [pure virtual]

Implemented in MySQLNetwork, and MySQLSocket.

MYSQL* MySQLServer::getConnection ( void   )  [inline]

Definition at line 43 of file mysqlServer.hpp.

References connection.

00043 { return &connection; }


Field Documentation

MYSQL MySQLServer::connection [protected]

Connection to MySQL server. The connection is required for creating databases and user-accounts.

Definition at line 47 of file mysqlServer.hpp.

Referenced by getConnection(), MySQLNetwork::~MySQLNetwork(), and MySQLSocket::~MySQLSocket().

std::string MySQLServer::passWord [protected]

Definition at line 49 of file mysqlServer.hpp.


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

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:29 2008 - GNU Free Documentation License