|
GCpp general purpose C++ library
version 1.0
|
#include "GBaseFunctions.hh"Functions | |
| void | GSetColorTerminal () |
| void | GSetMonochromeTerminal () |
| void | GSwapBytes (u_int *array, size_t n) |
| void | GSwapBytes (u_short *array, size_t n) |
Variables | |
| string | gPrefixError = string( "" ) + "<E> " |
| ! Prefix for error messages | |
| string | gPrefixWarning = string( "" ) + "<W> " |
| ! Prefix for warning messages | |
| string | gPrefixInfo = string( "<I> " ) |
| ! Prefix for information messages | |
| string | gPrefixDebug = string( "<D> " ) |
| ! Prefix for debugging messages | |
| string | gSuffixError = string( "\n" ) |
| ! Suffix for error messages | |
| string | gSuffixWarning = string( "\n" ) |
| ! Suffix for warning messages | |
| string | gSuffixInfo = string("\n") |
| ! Suffix for information messages | |
| string | gSuffixDebug = string("\n") |
| ! Suffix for debugging messages | |
Source 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 |