Common Cross-platform Geographic Library (CCGL) More...
Namespaces | |
namespace | data_raster |
Raster class to handle various raster data. | |
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. | |
Classes | |
class | Interface |
Base type of all interfaces. More... | |
class | ModelException |
Print the exception message. More... | |
class | NotCopyable |
Base class for classes that cannot be copied. More... | |
class | Object |
Base of all classes. More... | |
Functions | |
bool | IsIpAddress (const char *ip) |
Check if the IP address is valid. More... | |
void | Log (const string &msg, const string &logpath="debugInfo.log") |
Writes an entry to the log file. More... | |
int | GetAvailableThreadNum () |
Detect the available threads number. More... | |
void | SetDefaultOpenMPThread () |
Set the default omp thread number if necessary. More... | |
void | SetOpenMPThread (int n) |
Set the omp thread number by given thread number. More... | |
void | StatusMessage (const char *msg) |
Print status messages for Debug. More... | |
void | StatusMessage (const string &msg) |
Print status messages for Debug. More... | |
void | SleepMs (const int millisecs) |
Sleep milliseconds. More... | |
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::SetDefaultOpenMPThread | ( | ) |
Set the default omp thread number if necessary.
do nothing if OMP is not supported
void ccgl::SetOpenMPThread | ( | int | n | ) |
Set the omp thread number by given thread number.
[in] | n | Thread number greater than 1. |
do nothing if OMP is not supported
|
inline |
Sleep milliseconds.
[in] | millisecs | Sleep timespan. |
void ccgl::StatusMessage | ( | const char * | msg | ) |
Print status messages for Debug.
[in] | msg | char* Message |
Just for debugging
void ccgl::StatusMessage | ( | const string & | msg | ) |
Print status messages for Debug.
[in] | msg | char* Message |