EoaCore.hxx File Reference

#include <exception>
#include <string>
Include dependency graph for EoaCore.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EoaCore

Defines

#define OA_EXCEPTION(__name, __parent)

Define Documentation

#define OA_EXCEPTION ( __name,
__parent   ) 
Value:
class __name : public __parent {            \
    public:                                     \
    __name() {AppendWhat(#__name);}             \
    }

A macro to build an exception class __name that is derived from __parent. The __parent class must be derived from EoaCore which provides the AppendWhat method. This macro builds an exception class that can be used:

/// OA_EXCEPTION(EChild,EoaCore);
/// ...
/// try {
///   throw EChild();
/// }
/// catch (EoaCore& ex) {
///   std::cout << ex.what << std::endl;
/// }
/// 

Definition at line 86 of file EoaCore.hxx.


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1