|
GCpp general purpose C++ library
version 1.0
|
#include "GGlobal.hh"Go to the source code of this file.
Macros | |
| #define | G_PREFIX_WARNING "<W> " |
| ! Prefix for warning messages | |
| #define | G_PREFIX_ERROR "<E> " |
| ! Prefix for error messages | |
| #define | G_PREFIX_INFO "<I> " |
| ! Prefix for information messages | |
| #define | G_PREFIX_DEBUG "<D> " |
| ! Prefix for debugging messages | |
Functions | |
| void | GSetColorTerminal () |
| void | GSetMonochromeTerminal () |
| void | GSwapBytes (u_int *array, size_t n=1) |
| void | GSwapBytes (u_short *array, size_t n=1) |
Variables | |
| string | gPrefixError |
| ! Prefix for error messages | |
| string | gPrefixWarning |
| ! Prefix for warning messages | |
| string | gPrefixInfo |
| ! Prefix for information messages | |
| string | gPrefixDebug |
| ! Prefix for debugging messages | |
| string | gSuffixError |
| ! Suffix for error messages | |
| string | gSuffixWarning |
| ! Suffix for warning messages | |
| string | gSuffixInfo |
| ! Suffix for information messages | |
| string | gSuffixDebug |
| ! Suffix for debugging messages | |
Include file for various base functions
| void GSetColorTerminal | ( | ) |
Define prefixes/suffixes for color terminal.
References G_PREFIX_DEBUG, G_PREFIX_ERROR, G_PREFIX_INFO, G_PREFIX_WARNING, G_TERM_BLACK_ON_RED, G_TERM_BLACK_ON_YELLOW, G_TERM_ENDL, gPrefixDebug, gPrefixError, gPrefixInfo, gPrefixWarning, gSuffixDebug, gSuffixError, gSuffixInfo, and gSuffixWarning.
| void GSetMonochromeTerminal | ( | ) |
Define prefixes/suffixes for monochrome terminal.
References G_PREFIX_DEBUG, G_PREFIX_ERROR, G_PREFIX_INFO, G_PREFIX_WARNING, gPrefixDebug, gPrefixError, gPrefixInfo, gPrefixWarning, gSuffixDebug, gSuffixError, gSuffixInfo, and gSuffixWarning.
| void GSwapBytes | ( | u_int * | array, |
| size_t | n | ||
| ) |
Function that swaps bytes in an array of 32 bits integers. The swapping is performed by groups of 4 bytes.
| array | 32-bits integer array |
| n | number of 32-bits integers |
| void GSwapBytes | ( | u_short * | array, |
| size_t | n | ||
| ) |
Function that swaps bytes in an array of 16 bits integers. The swapping is performed by groups of 2 bytes.
| array | 16-bits integer array |
| n | number of 16-bits integers |