DDS  ver. 2.0
Classes | Namespaces | Macros | Typedefs | Functions
ErrorCode.h File Reference
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

class  MiscCommon::system_error
 The system_error exception class retrieves a string, which represent the last error. More...
 

Namespaces

 MiscCommon
 Miscellaneous functions and helpers are located here.
 

Macros

#define SUCCEEDED(er)   (er <= erOK)
 
#define FAILED(er)   (!SUCCEEDED(er))
 

Typedefs

typedef int MiscCommon::ERRORCODE
 
typedef const ERRORCODE MiscCommon::ERRORCODE_C
 

Functions

ERRORCODE_C MiscCommon::erOK (EXIT_SUCCESS)
 
ERRORCODE_C MiscCommon::erTrue (-1)
 
ERRORCODE_C MiscCommon::erFalse (-2)
 
ERRORCODE_C MiscCommon::erError (EXIT_FAILURE)
 
ERRORCODE_C MiscCommon::erNotImpl (3)
 
ERRORCODE_C MiscCommon::BASE_FOR_GENERAL_ERR (50)
 
ERRORCODE_C MiscCommon::erNULLArg (BASE_FOR_GENERAL_ERR+1)
 
ERRORCODE_C MiscCommon::erFILE_NOT_FOUND (BASE_FOR_GENERAL_ERR+2)
 
ERRORCODE_C MiscCommon::BASE_FOR_XML_ERR (100)
 
ERRORCODE_C MiscCommon::erXMLInit (BASE_FOR_XML_ERR+1)
 
ERRORCODE_C MiscCommon::erXMLReadConfig (BASE_FOR_XML_ERR+2)
 
ERRORCODE_C MiscCommon::erXMLNullNode (BASE_FOR_XML_ERR+3)
 
int MiscCommon::errno2str (std::string *_msg)
 Retrieves a string, which represent the last error. More...
 
std::string MiscCommon::errno2str ()
 Retrieves a string, which represent the last error. More...
 

Macro Definition Documentation

◆ FAILED

#define FAILED (   er)    (!SUCCEEDED(er))

◆ SUCCEEDED

#define SUCCEEDED (   er)    (er <= erOK)