#include <boost/shared_ptr.hpp>
-#include <Moof/Exception.hh>
#include <Moof/Layer.hh>
#include <Moof/Math.hh>
class Engine
{
- class Impl;
- boost::shared_ptr<Impl> mImpl;
-
public:
Engine(int argc, char* argv[], const std::string& name,
LayerP pop(Layer* layer);
void clear();
- struct Exception : public Mf::Exception
- {
- explicit Exception(unsigned error) :
- Mf::Exception(error) {}
+private:
- void raise()
- {
- throw *this;
- }
- };
+ class Impl;
+ boost::shared_ptr<Impl> mImpl;
};