File: FrontEnd.hpp

package info (click to toggle)
yade 2026.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,448 kB
  • sloc: cpp: 97,645; python: 52,173; sh: 677; makefile: 162
file content (30 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (4)
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