mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
[Core] Remove obsolete directive
This commit is contained in:
parent
deb9a167ea
commit
2d06f70da2
57 changed files with 139 additions and 139 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
class ACE_Configuration_Heap;
|
||||
|
||||
class MANGOS_DLL_SPEC Config
|
||||
class Config
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class Database;
|
|||
#define MAX_QUERY_LEN (32*1024)
|
||||
|
||||
//
|
||||
class MANGOS_DLL_SPEC SqlConnection
|
||||
class SqlConnection
|
||||
{
|
||||
public:
|
||||
virtual ~SqlConnection() {}
|
||||
|
|
@ -106,7 +106,7 @@ class MANGOS_DLL_SPEC SqlConnection
|
|||
StmtHolder m_holder;
|
||||
};
|
||||
|
||||
class MANGOS_DLL_SPEC Database
|
||||
class Database
|
||||
{
|
||||
public:
|
||||
virtual ~Database();
|
||||
|
|
@ -243,7 +243,7 @@ class MANGOS_DLL_SPEC Database
|
|||
// factory method to create SqlDelayThread objects
|
||||
virtual SqlDelayThread* CreateDelayThread();
|
||||
|
||||
class MANGOS_DLL_SPEC TransHelper
|
||||
class TransHelper
|
||||
{
|
||||
public:
|
||||
TransHelper() : m_pTrans(NULL) {}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
#endif
|
||||
|
||||
// MySQL prepared statement class
|
||||
class MANGOS_DLL_SPEC MySqlPreparedStatement : public SqlPreparedStatement
|
||||
class MySqlPreparedStatement : public SqlPreparedStatement
|
||||
{
|
||||
public:
|
||||
MySqlPreparedStatement(const std::string& fmt, SqlConnection& conn, MYSQL* mysql);
|
||||
|
|
@ -72,7 +72,7 @@ class MANGOS_DLL_SPEC MySqlPreparedStatement : public SqlPreparedStatement
|
|||
MYSQL_RES* m_pResultMetadata;
|
||||
};
|
||||
|
||||
class MANGOS_DLL_SPEC MySQLConnection : public SqlConnection
|
||||
class MySQLConnection : public SqlConnection
|
||||
{
|
||||
public:
|
||||
MySQLConnection(Database& db) : SqlConnection(db), mMysql(NULL) {}
|
||||
|
|
@ -102,7 +102,7 @@ class MANGOS_DLL_SPEC MySQLConnection : public SqlConnection
|
|||
MYSQL* mMysql;
|
||||
};
|
||||
|
||||
class MANGOS_DLL_SPEC DatabaseMysql : public Database
|
||||
class DatabaseMysql : public Database
|
||||
{
|
||||
friend class MaNGOS::OperatorNew<DatabaseMysql>;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
#include <libpq-fe.h>
|
||||
#endif
|
||||
|
||||
class MANGOS_DLL_SPEC PostgreSQLConnection : public SqlConnection
|
||||
class PostgreSQLConnection : public SqlConnection
|
||||
{
|
||||
public:
|
||||
PostgreSQLConnection() : mPGconn(NULL) {}
|
||||
|
|
@ -65,7 +65,7 @@ class MANGOS_DLL_SPEC PostgreSQLConnection : public SqlConnection
|
|||
PGconn* mPGconn;
|
||||
};
|
||||
|
||||
class MANGOS_DLL_SPEC DatabasePostgre : public Database
|
||||
class DatabasePostgre : public Database
|
||||
{
|
||||
friend class MaNGOS::OperatorNew<DatabasePostgre>;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
#include "Errors.h"
|
||||
#include "Field.h"
|
||||
|
||||
class MANGOS_DLL_SPEC QueryResult
|
||||
class QueryResult
|
||||
{
|
||||
public:
|
||||
QueryResult(uint64 rowCount, uint32 fieldCount)
|
||||
|
|
@ -54,7 +54,7 @@ class MANGOS_DLL_SPEC QueryResult
|
|||
|
||||
typedef std::vector<std::string> QueryFieldNames;
|
||||
|
||||
class MANGOS_DLL_SPEC QueryNamedResult
|
||||
class QueryNamedResult
|
||||
{
|
||||
public:
|
||||
explicit QueryNamedResult(QueryResult* query, QueryFieldNames const& names) : mQuery(query), mFieldNames(names) {}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ enum SqlStmtFieldType
|
|||
|
||||
// templates might be the best choice here
|
||||
// but I didn't have time to play with them
|
||||
class MANGOS_DLL_SPEC SqlStmtFieldData
|
||||
class SqlStmtFieldData
|
||||
{
|
||||
public:
|
||||
SqlStmtFieldData() : m_type(FIELD_NONE) { m_binaryData.ui64 = 0; }
|
||||
|
|
@ -145,7 +145,7 @@ template<> inline void SqlStmtFieldData::set(const char* val) { m_type = FIELD_S
|
|||
|
||||
class SqlStatement;
|
||||
// prepared statement executor
|
||||
class MANGOS_DLL_SPEC SqlStmtParameters
|
||||
class SqlStmtParameters
|
||||
{
|
||||
public:
|
||||
typedef std::vector<SqlStmtFieldData> ParameterContainer;
|
||||
|
|
@ -194,7 +194,7 @@ class SqlStatementID
|
|||
};
|
||||
|
||||
// statement index
|
||||
class MANGOS_DLL_SPEC SqlStatement
|
||||
class SqlStatement
|
||||
{
|
||||
public:
|
||||
~SqlStatement() { delete m_pParams; }
|
||||
|
|
@ -301,7 +301,7 @@ class MANGOS_DLL_SPEC SqlStatement
|
|||
};
|
||||
|
||||
// base prepared statement class
|
||||
class MANGOS_DLL_SPEC SqlPreparedStatement
|
||||
class SqlPreparedStatement
|
||||
{
|
||||
public:
|
||||
virtual ~SqlPreparedStatement() {}
|
||||
|
|
@ -336,7 +336,7 @@ class MANGOS_DLL_SPEC SqlPreparedStatement
|
|||
};
|
||||
|
||||
// prepared statements via plain SQL string requests
|
||||
class MANGOS_DLL_SPEC SqlPlainPreparedStatement : public SqlPreparedStatement
|
||||
class SqlPlainPreparedStatement : public SqlPreparedStatement
|
||||
{
|
||||
public:
|
||||
SqlPlainPreparedStatement(const std::string& fmt, SqlConnection& conn);
|
||||
|
|
|
|||
|
|
@ -481,43 +481,43 @@ class Log : public MaNGOS::Singleton<Log, MaNGOS::ClassLevelLockable<Log, ACE_Th
|
|||
*
|
||||
* @param str...
|
||||
*/
|
||||
void MANGOS_DLL_SPEC outstring_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
void outstring_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param str...
|
||||
*/
|
||||
void MANGOS_DLL_SPEC detail_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
void detail_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param str...
|
||||
*/
|
||||
void MANGOS_DLL_SPEC debug_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
void debug_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param str...
|
||||
*/
|
||||
void MANGOS_DLL_SPEC error_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
void error_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param str...
|
||||
*/
|
||||
void MANGOS_DLL_SPEC error_db_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
void error_db_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param fname
|
||||
* @param libName
|
||||
*/
|
||||
void MANGOS_DLL_SPEC setScriptLibraryErrorFile(char const* fname, char const* libName);
|
||||
void setScriptLibraryErrorFile(char const* fname, char const* libName);
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param str...
|
||||
*/
|
||||
void MANGOS_DLL_SPEC script_error_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
void script_error_log(const char* str, ...) ATTR_PRINTF(1, 2);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
* @brief
|
||||
*
|
||||
*/
|
||||
class MANGOS_DLL_SPEC BarGoLink
|
||||
class BarGoLink
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -68,19 +68,19 @@ class WorldTimer
|
|||
*
|
||||
* @return uint32
|
||||
*/
|
||||
static MANGOS_DLL_SPEC uint32 tickTime();
|
||||
static uint32 tickTime();
|
||||
/**
|
||||
* @brief get previous world tick time
|
||||
*
|
||||
* @return uint32
|
||||
*/
|
||||
static MANGOS_DLL_SPEC uint32 tickPrevTime();
|
||||
static uint32 tickPrevTime();
|
||||
/**
|
||||
* @brief tick world timer
|
||||
*
|
||||
* @return uint32
|
||||
*/
|
||||
static MANGOS_DLL_SPEC uint32 tick();
|
||||
static uint32 tick();
|
||||
|
||||
private:
|
||||
/**
|
||||
|
|
@ -103,8 +103,8 @@ class WorldTimer
|
|||
*/
|
||||
static uint32 getMSTime_internal(bool savetime = false);
|
||||
|
||||
static MANGOS_DLL_SPEC uint32 m_iTime; /**< TODO */
|
||||
static MANGOS_DLL_SPEC uint32 m_iPrevTime; /**< TODO */
|
||||
static uint32 m_iTime; /**< TODO */
|
||||
static uint32 m_iPrevTime; /**< TODO */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ inline uint32 secsToTimeBitFields(time_t secs)
|
|||
* @param max
|
||||
* @return int32
|
||||
*/
|
||||
MANGOS_DLL_SPEC int32 irand(int32 min, int32 max);
|
||||
int32 irand(int32 min, int32 max);
|
||||
|
||||
/**
|
||||
* @brief Return a random number in the range min..max (inclusive).
|
||||
|
|
@ -126,7 +126,7 @@ MANGOS_DLL_SPEC int32 irand(int32 min, int32 max);
|
|||
* @param max
|
||||
* @return uint32
|
||||
*/
|
||||
MANGOS_DLL_SPEC uint32 urand(uint32 min, uint32 max);
|
||||
uint32 urand(uint32 min, uint32 max);
|
||||
|
||||
/**
|
||||
* @brief Return a random number in the range min..max (inclusive).
|
||||
|
|
@ -135,14 +135,14 @@ MANGOS_DLL_SPEC uint32 urand(uint32 min, uint32 max);
|
|||
* @param max
|
||||
* @return float
|
||||
*/
|
||||
MANGOS_DLL_SPEC float frand(float min, float max);
|
||||
float frand(float min, float max);
|
||||
|
||||
/**
|
||||
* @brief Return a random number in the range 0 .. RAND32_MAX.
|
||||
*
|
||||
* @return int32
|
||||
*/
|
||||
MANGOS_DLL_SPEC int32 rand32();
|
||||
int32 rand32();
|
||||
|
||||
/**
|
||||
* @brief Return a random double from 0.0 to 1.0 (exclusive).
|
||||
|
|
@ -153,14 +153,14 @@ MANGOS_DLL_SPEC int32 rand32();
|
|||
*
|
||||
* @return double
|
||||
*/
|
||||
MANGOS_DLL_SPEC double rand_norm(void);
|
||||
double rand_norm(void);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
MANGOS_DLL_SPEC float rand_norm_f(void);
|
||||
float rand_norm_f(void);
|
||||
|
||||
/**
|
||||
* @brief Return a random double from 0.0 to 99.9999999999999.
|
||||
|
|
@ -171,14 +171,14 @@ MANGOS_DLL_SPEC float rand_norm_f(void);
|
|||
*
|
||||
* @return double
|
||||
*/
|
||||
MANGOS_DLL_SPEC double rand_chance(void);
|
||||
double rand_chance(void);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
MANGOS_DLL_SPEC float rand_chance_f(void);
|
||||
float rand_chance_f(void);
|
||||
|
||||
/**
|
||||
* @brief Return true if a random roll gets above the given chance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue