Changeset 59061f6 in network-game for server/DataAccess.h
- Timestamp:
- Nov 27, 2012, 7:03:33 PM (12 years ago)
- Branches:
- master
- Children:
- 371ce29
- Parents:
- 36082e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/DataAccess.h
r36082e8 r59061f6 1 1 #ifndef _DATA_ACCES_H 2 2 #define _DATA_ACCESS_H 3 4 #include <string> 5 6 #include <mysql/mysql.h> 7 8 #include "Player.h" 9 10 using namespace std; 3 11 4 12 class DataAccess { … … 7 15 ~DataAccess(); 8 16 9 int dbtest(); 17 int insertPlayer(string username, string password); 18 19 Player *getPlayer(string username); 20 int printPlayers(); 21 22 int insert(string table, string rows, string values); 23 MYSQL_RES *select(string table, string filter); 24 25 private: 26 MYSQL *connection, mysql; 10 27 }; 11 28
Note:
See TracChangeset
for help on using the changeset viewer.