00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #if !defined(MYSQLPP_WNP_CONNECTION_H)
00028 #define MYSQLPP_WNP_CONNECTION_H
00029
00030 #include "connection.h"
00031
00032 namespace mysqlpp {
00033
00038
00039 class MYSQLPP_EXPORT WindowsNamedPipeConnection : public Connection
00040 {
00041 public:
00043 WindowsNamedPipeConnection() :
00044 Connection()
00045 {
00046 }
00047
00055 WindowsNamedPipeConnection(const char* db, const char* user = 0,
00056 const char* password = 0) :
00057 Connection()
00058 {
00059 connect(db, user, password);
00060 }
00061
00066 WindowsNamedPipeConnection(const WindowsNamedPipeConnection& other) :
00067 Connection(other)
00068 {
00069 }
00070
00072 ~WindowsNamedPipeConnection() { }
00073
00082 bool connect(const char* db = 0, const char* user = 0,
00083 const char* password = 0);
00084
00092 static bool is_wnp(const char* server);
00093 };
00094
00095
00096 }
00097
00098 #endif // !defined(MYSQLPP_WNP_CONNECTION_H)
00099