Files can be written from command line interface

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1054 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-04 21:01:40 +00:00
parent ef598f2d8c
commit 6a71b20d26
8 changed files with 78 additions and 18 deletions
+10 -2
View File
@@ -11,15 +11,19 @@
#include <util/prec.hpp>
#include <data/set.hpp>
#include <data/export_template.hpp>
// ----------------------------------------------------------------------------- : Command line interface
class CLISetInterface : public SetView {
public:
CLISetInterface();
/// The set is optional
CLISetInterface(const SetP& set, bool quiet = false);
~CLISetInterface();
protected:
void onAction(const Action&, bool) {}
virtual void onAction(const Action&, bool) {}
virtual void onChangeSet();
virtual void onBeforeChangeSet();
private:
bool quiet; ///< Supress prompts and other non-vital stuff
bool running; ///< Still running?
@@ -33,6 +37,10 @@ class CLISetInterface : public SetView {
/// our own context, when no set is loaded
Context& getContext();
Context* our_context;
size_t scope;
// export info, so we can write files
ExportInfo ei;
};
// ----------------------------------------------------------------------------- : EOF