GCpp general purpose C++ library  version 1.0
GBaseFunctions.hh File Reference
#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
 

Detailed Description

Include file for various base functions

Function Documentation

void GSetMonochromeTerminal ( )
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.

Parameters
array32-bits integer array
nnumber 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.

Parameters
array16-bits integer array
nnumber of 16-bits integers