mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
We want to use winsock2.h rather than winsock.h. This was mostly enforced from the global_defines.h file, but I wanted to make it consistent. Most of these includes can be removed since they're included via global_defines.h, but someone on windows should clean that up
39 lines
770 B
C++
39 lines
770 B
C++
#ifndef MYSQL_REQUEST_ROW_H
|
|
#define MYSQL_REQUEST_ROW_H
|
|
|
|
#ifdef _WINDOWS
|
|
#include <winsock2.h>
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
#include <mysql.h>
|
|
#include <iterator>
|
|
#include "types.h"
|
|
|
|
class MySQLRequestRow : public std::iterator<std::input_iterator_tag, MYSQL_ROW>
|
|
{
|
|
|
|
private:
|
|
MYSQL_RES* m_Result;
|
|
MYSQL_ROW m_MySQLRow;
|
|
|
|
public:
|
|
|
|
MySQLRequestRow();
|
|
MySQLRequestRow(MYSQL_RES *result);
|
|
MySQLRequestRow(const MySQLRequestRow& row);
|
|
MySQLRequestRow(MySQLRequestRow&& moveItem);
|
|
MySQLRequestRow& operator=(MySQLRequestRow& moveItem);
|
|
MySQLRequestRow& operator++();
|
|
MySQLRequestRow operator++(int);
|
|
bool operator==(const MySQLRequestRow& rhs);
|
|
bool operator!=(const MySQLRequestRow& rhs);
|
|
MySQLRequestRow operator*();
|
|
char* operator[](int index);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|