summaryrefslogtreecommitdiff
path: root/project2/common/cache.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-12-14 21:42:31 +0000
committerrandomdan <randomdan@localhost>2011-12-14 21:42:31 +0000
commitbc8dbfb89265694cba39a5553e3ee15407587c99 (patch)
tree4b0a3414ba881a3118630c41ca24129d23f996df /project2/common/cache.cpp
parentDon't write JSON numbers in scientific notation, use native C++ boolalpha for... (diff)
downloadproject2-bc8dbfb89265694cba39a5553e3ee15407587c99.tar.bz2
project2-bc8dbfb89265694cba39a5553e3ee15407587c99.tar.xz
project2-bc8dbfb89265694cba39a5553e3ee15407587c99.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.cpp4
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>())
{
}