blob: d53574f7959f0a43031d8937d12ad4293847ebd9 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef CONSOLEAPPENGINE_H
#define CONSOLEAPPENGINE_H
#include "appEngine.h"
#include "task.h"
#include "paramChecker.h"
#include "presenter.h"
#include "commonObjects.h"
#include "view.h"
#include "taskHost.h"
#include "viewHost.h"
#include <boost/intrusive_ptr.hpp>
#include <libxml++/document.h>
class ConsoleEnvironment;
class ConsoleApplicationEngine : public ApplicationEngine, TaskHost, ViewHost {
public:
ConsoleApplicationEngine(const ConsoleEnvironment *, ScriptReaderPtr);
virtual ~ConsoleApplicationEngine();
void process() const;
const Environment * env() const;
SessionPtr session() const;
virtual void addAppData(const MultiRowSetPresenter * p) const;
virtual void addEnvData(const MultiRowSetPresenter * p) const;
protected:
const ConsoleEnvironment * _env;
private:
typedef std::map<Glib::ustring, const Glib::ustring> ConsolePlatforms;
mutable ConsolePlatforms conplat;
void loadEngineSection(const xmlpp::Element *) const;
private:
SessionPtr runtime;
};
#endif
|