30 #error "NO_ERROR previously defined but not equal to zero"    36 #ifndef DEBUG_ERROR_OFFSET    37 #define  DEBUG_ERROR_OFFSET -39901     41 #ifndef WSOLA_ERROR_OFFSET    42 #define  WSOLA_ERROR_OFFSET -40001     45 #ifndef SOX_ERROR_OFFSET    46 #define SOX_ERROR_OFFSET -40020     49 #ifndef JACK_ERROR_OFFSET    50 #define JACK_ERROR_OFFSET -40040     53 #ifndef DECOMPOSITION_ERROR_OFFSET    54 #define DECOMPOSITION_ERROR_OFFSET -40080     57 #ifndef AUDIOMASKER_ERROR_OFFSET    58 #define AUDIOMASKER_ERROR_OFFSET -40090     61 #ifndef OVERLAPADD_ERROR_OFFSET    62 #define OVERLAPADD_ERROR_OFFSET -40110     65 #ifndef IIO_ERROR_OFFSET    66 #define IIO_ERROR_OFFSET -40150     69 #ifndef DIRSCAN_ERROR_OFFSET    70 #define DIRSCAN_ERROR_OFFSET -40200     73 #ifndef THREAD_ERROR_OFFSET    74 #define THREAD_ERROR_OFFSET -40300     77 #ifndef DRAGNDROP_ERROR_OFFSET    78 #define DRAGNDROP_ERROR_OFFSET -40400     81 #ifndef ALSA_ERROR_OFFSET    82 #define ALSA_ERROR_OFFSET -40500     85 #ifndef IIR_ERROR_OFFSET    86 #define IIR_ERROR_OFFSET -40600     89 #ifndef FIR_ERROR_OFFSET    90 #define FIR_ERROR_OFFSET -40650     97 #define MAX_ERROR_OFFSET DEBUG_ERROR_OFFSET     98 #define MIN_ERROR_OFFSET (FIR_ERROR_OFFSET-1000)     99 //#define MIN_ERROR_OFFSET (DSF_ERROR_OFFSET-1000)    113     #define MALLOC_ERROR DEBUG_ERROR_OFFSET-0    119         errors[
NO_ERROR]=std::string(
"No error. ");
   120         errors[
MALLOC_ERROR]=std::string(
"Couldn't allocate the memory error. ");
   135         if (errors.find(errorNum)==errors.end()) 
   136           fprintf(stderr, 
"Error : %d strerror reports : %s ", errorNum, strerror(errno));
   138           fprintf(stderr, 
"Error : %d %s ", errorNum, errors[errorNum].c_str());
   154         fprintf(stderr, 
"%s", append.c_str());
   164         if (errors.find(errorNum)==errors.end()) 
   165             return std::string(
"Unknown Error");
   166         return errors[errorNum];
   170 #if !defined(DEBUG_OUTPUT) || !defined(DEBUG_LOCAL_OUTPUT)   186 template <
class cT, 
class traits = std::
char_traits<cT> >
   188     typename traits::int_type 
overflow(
typename traits::int_type c) {
   189         return traits::not_eof(c); 
   193 template <
class cT, 
class traits = std::
char_traits<cT> >
   209 #define Debugger std::cout   214 #ifdef DEBUG_LOCAL_OUTPUT   215 #define DebuggerLocal std::cout virtual int evaluateError(int errorNum, std::string append)
basic_nullbuf< cT, traits > m_sbuf
Debugger & operator<<(const char *str)
virtual int evaluateError(int errorNum)
std::map< int, std::string > errors
This will contain a map between error numbers and descriptive std::strings for the errors...
#define NO_ERROR
There is no error. 
#define MALLOC_ERROR
Error when trying to allocate memory. 
static NullStream nullstream
traits::int_type overflow(typename traits::int_type c)
Debugger & operator<<(const int nothing)
basic_onullstream< char > NullStream
std::string getErrorString(int errorNum)