diff options
author | randomdan <randomdan@localhost> | 2011-12-14 21:42:31 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-12-14 21:42:31 +0000 |
commit | 8a7980bff41ccb8dc42b18eb1edd4b3938977fc3 (patch) | |
tree | 4b0a3414ba881a3118630c41ca24129d23f996df /project2/common/cache.cpp | |
parent | Don't write JSON numbers in scientific notation, use native C++ boolalpha for... (diff) | |
download | project2-8a7980bff41ccb8dc42b18eb1edd4b3938977fc3.tar.bz2 project2-8a7980bff41ccb8dc42b18eb1edd4b3938977fc3.tar.xz project2-8a7980bff41ccb8dc42b18eb1edd4b3938977fc3.zip |
Pluggable script engines
XML script parser moved to XML module
Script parsing object multiple instantiation bug fix
Scripts changed to match new standardized format and layout
Diffstat (limited to 'project2/common/cache.cpp')
-rw-r--r-- | project2/common/cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/common/cache.cpp b/project2/common/cache.cpp index 7ad4053..f5edc43 100644 --- a/project2/common/cache.cpp +++ b/project2/common/cache.cpp @@ -5,10 +5,10 @@ #include "logger.h" #include <boost/foreach.hpp> -Cache::Cache(const xmlpp::Element * p) : +Cache::Cache(ScriptNodePtr p) : IHaveParameters(p), SourceObject(p), - inherit(p->get_attribute_value("inherit") != "false") + inherit(p->value("inherit", true).as<bool>()) { } |