#include "Define.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <cmath>
#include <errno.h>
#include <signal.h>
#include <assert.h>
#include <set>
#include <unordered_set>
#include <list>
#include <string>
#include <map>
#include <unordered_map>
#include <queue>
#include <sstream>
#include <algorithm>
#include <memory>
#include <vector>
#include <array>
#include <boost/optional.hpp>
#include <boost/utility/in_place_factory.hpp>
#include <boost/functional/hash.hpp>
#include "Debugging/Errors.h"
#include "Threading/LockedQueue.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netdb.h>
#include <float.h>
Go to the source code of this file.
|
| typedef std::vector< std::string > | StringVector |
| |
| template<typename T > |
| using | Optional = boost::optional< T > |
| | Optional helper class to wrap optional values within. More...
|
| |
|
| enum | TimeConstants {
MINUTE = 60,
HOUR = MINUTE*60,
DAY = HOUR*24,
WEEK = DAY*7,
MONTH = DAY*30,
YEAR = MONTH*12,
IN_MILLISECONDS = 1000
} |
| |
| enum | AccountTypes {
SEC_PLAYER = 0,
SEC_MODERATOR = 1,
SEC_GAMEMASTER = 2,
SEC_ADMINISTRATOR = 3,
SEC_CONSOLE = 4
} |
| |
| enum | LocaleConstant {
LOCALE_enUS = 0,
LOCALE_koKR = 1,
LOCALE_frFR = 2,
LOCALE_deDE = 3,
LOCALE_zhCN = 4,
LOCALE_zhTW = 5,
LOCALE_esES = 6,
LOCALE_esMX = 7,
LOCALE_ruRU = 8,
LOCALE_none = 9,
LOCALE_ptBR = 10,
LOCALE_itIT = 11,
TOTAL_LOCALES
} |
| |
- Todo:
- convert in simple system
| #define M_PI 3.14159265358979323846 |
| #define MAX_QUERY_LEN 32*1024 |
| #define snprintf _snprintf |
| #define STRINGIZE |
( |
|
a | ) |
#a |
| #define vsnprintf _vsnprintf |
Optional helper class to wrap optional values within.
| Enumerator |
|---|
| SEC_PLAYER |
|
| SEC_MODERATOR |
|
| SEC_GAMEMASTER |
|
| SEC_ADMINISTRATOR |
|
| SEC_CONSOLE |
|
| Enumerator |
|---|
| LOCALE_enUS |
|
| LOCALE_koKR |
|
| LOCALE_frFR |
|
| LOCALE_deDE |
|
| LOCALE_zhCN |
|
| LOCALE_zhTW |
|
| LOCALE_esES |
|
| LOCALE_esMX |
|
| LOCALE_ruRU |
|
| LOCALE_none |
|
| LOCALE_ptBR |
|
| LOCALE_itIT |
|
| TOTAL_LOCALES |
|
| Enumerator |
|---|
| MINUTE |
|
| HOUR |
|
| DAY |
|
| WEEK |
|
| MONTH |
|
| YEAR |
|
| IN_MILLISECONDS |
|
| unsigned long atoul |
( |
char const * |
str | ) |
|
|
inline |
90 {
return strtoul(str,
nullptr, 10); }
| unsigned long long atoull |
( |
char const * |
str | ) |
|
|
inline |
91 {
return strtoull(str,
nullptr, 10); }
| float finiteAlways |
( |
float |
f | ) |
|
|
inline |
88 {
return std::isfinite(f) ? f : 0.0f; }
LocaleConstant
Definition: Common.h:115
uint32_t uint32
Definition: Define.h:150
TC_COMMON_API char const * localeNames[TOTAL_LOCALES]
Definition: Common.cpp:21