Common Cross-platform Geographic Library (CCGL) 更多...
命名空间 | |
namespace | db_mongoc |
Simple wrappers of the API of MongoDB C driver mongo-c-driver , see MongoDB C Driver for more information. | |
namespace | utils_array |
Array related functions include vector and pointer array. | |
namespace | utils_filesystem |
File Input and output related functions | |
namespace | utils_math |
Basic mathematics related functions | |
namespace | utils_string |
String related functions | |
namespace | utils_time |
Time related functions | |
类 | |
class | Interface |
Base type of all interfaces. 更多... | |
class | ModelException |
Print the exception message 更多... | |
class | NotCopyable |
Base class for classes that cannot be copied. 更多... | |
class | Object |
Base of all classes. 更多... | |
函数 | |
bool | IsIpAddress (const char *ip) |
Check if the IP address is valid. 更多... | |
void | Log (const string &msg, const string &logpath="debugInfo.log") |
Writes an entry to the log file. 更多... | |
int | GetAvailableThreadNum () |
Detect the available threads number 更多... | |
void | SetDefaultOpenMPThread () |
Set the default omp thread number if necessary | |
void | SetOpenMPThread (int n) |
Set the omp thread number by given thread number 更多... | |
void | StatusMessage (const char *msg) |
Print status messages for Debug 更多... | |
void | StatusMessage (const string &msg) |
Print status messages for Debug 更多... | |
void | SleepMs (const int millisecs) |
Sleep milliseconds 更多... | |
Common Cross-platform Geographic Library (CCGL)
int ccgl::GetAvailableThreadNum | ( | ) |
Detect the available threads number
Reference:
bool ccgl::IsIpAddress | ( | const char * | ip | ) |
Check if the IP address is valid.
[in] | ip | char* IP address. |
void ccgl::Log | ( | const string & | msg, |
const string & | logpath = "debugInfo.log" |
||
) |
Writes an entry to the log file.
Normally only used for debug
[in] | msg | string log message |
[in] | logpath | string Optional |
void ccgl::SetOpenMPThread | ( | int | n | ) |
Set the omp thread number by given thread number
[in] | n | Thread number greater than 1. |
void ccgl::SleepMs | ( | const int | millisecs | ) |
Sleep milliseconds
[in] | millisecs | Sleep timespan. |
void ccgl::StatusMessage | ( | const char * | msg | ) |
Print status messages for Debug
[in] | msg | char* Message |
void ccgl::StatusMessage | ( | const string & | msg | ) |
Print status messages for Debug
[in] | msg | char* Message |