diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-05 05:30:09 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-05 05:30:09 (GMT) |
commit | 1b8b7aa5faa167af2687970f195e19439dab5a30 (patch) | |
tree | 5a01a4f97c91bbfeb8a975975da5c31232d7b921 /src/module.h | |
parent | c7f83aa3e35baf8a517c40a367ec247a7061b225 (diff) |
I think this should fix issue #217
Diffstat (limited to 'src/module.h')
-rw-r--r-- | src/module.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/module.h b/src/module.h index cc82f81..1f9e303 100644 --- a/src/module.h +++ b/src/module.h @@ -10,7 +10,7 @@ class ModuleInstantiation { public: - ModuleInstantiation(const std::string &name = "") + ModuleInstantiation(const std::string &name = "") : ctx(NULL), tag_root(false), tag_highlight(false), tag_background(false), modname(name) { } virtual ~ModuleInstantiation(); @@ -19,6 +19,10 @@ public: class AbstractNode *evaluate(const class Context *ctx) const; std::vector<AbstractNode*> evaluateChildren(const Context *ctx = NULL) const; + void setPath(const std::string &path) { this->modpath = path; } + const std::string &path() const { return this->modpath; } + std::string getAbsolutePath(const std::string &filename) const; + const std::string &name() const { return this->modname; } bool isBackground() const { return this->tag_background; } bool isHighlight() const { return this->tag_highlight; } @@ -35,6 +39,7 @@ public: bool tag_background; protected: std::string modname; + std::string modpath; friend class Module; }; @@ -61,6 +66,7 @@ class Module : public AbstractModule public: Module() : is_handling_dependencies(false) { } virtual ~Module(); + virtual AbstractNode *evaluate(const Context *ctx, const ModuleInstantiation *inst) const; virtual std::string dump(const std::string &indent, const std::string &name) const; |