Added eoParser
This commit is contained in:
parent
46b6a9e17a
commit
0d8648c0e6
8 changed files with 1038 additions and 7 deletions
41
eo/src/UException.h
Normal file
41
eo/src/UException.h
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// UException.h
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef _UEXCEPTION_H
|
||||
#define _UEXCEPTION_H
|
||||
|
||||
#include <string>
|
||||
#if defined (__BCPLUSPLUS__)
|
||||
#include <stdexcept>
|
||||
#else
|
||||
#include <exception>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Class UException
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//@{
|
||||
/**
|
||||
* This class manages exceptions. It´s barely an extension of the standard exception,
|
||||
* but it can be initialized with an STL string. Called UException (utils-exception)+
|
||||
* to avoid conflicts with other classes.
|
||||
*/
|
||||
class UException: public exception {
|
||||
public:
|
||||
///
|
||||
UException( const string& _msg ): msg( _msg ) { };
|
||||
|
||||
///
|
||||
virtual const char* what() const { return msg.c_str(); };
|
||||
|
||||
private:
|
||||
string msg;
|
||||
};
|
||||
|
||||
|
||||
//@}
|
||||
#endif
|
||||
Reference in a new issue