1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
/*************************************************************************
* Copyright (C) 2004 by Olivier Galizzi *
* olivier.galizzi@imag.fr *
* *
* This program is free software; it is licensed under the terms of the *
* GNU General Public License v2 or later. See file LICENSE for details. *
*************************************************************************/
#pragma once
#include "Omega.hpp"
#include <lib/factory/Factorable.hpp>
namespace yade { // Cannot have #include directive inside.
class FrontEnd : public Factorable {
public:
FrontEnd() {};
virtual ~FrontEnd() {};
virtual int run(int, char*[]) { return -1; };
// called before actually invoking it
virtual bool available() { return false; }
REGISTER_CLASS_AND_BASE(FrontEnd, Factorable);
};
REGISTER_FACTORABLE(FrontEnd);
} // namespace yade
|