diff options
author | randomdan <randomdan@localhost> | 2010-08-24 20:41:54 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-08-24 20:41:54 +0000 |
commit | ebebd7122873cac40bea2439821f607a94caa46b (patch) | |
tree | e24f74a9b227d13ee91c55d65e47d983cb0cd179 /project2/paramChecker.h | |
parent | Add option to use a temporary view instead of a table to reduce WAL churn dur... (diff) | |
download | project2-ebebd7122873cac40bea2439821f607a94caa46b.tar.bz2 project2-ebebd7122873cac40bea2439821f607a94caa46b.tar.xz project2-ebebd7122873cac40bea2439821f607a94caa46b.zip |
Whole new low dependency object loader
Switch to using intrusive_ptr in cases where the class is mine
Remove deps of funtional type base cpp files on implementation headers
General tidy up in places
Post load event and removal of mutable things initialised on first run
Diffstat (limited to 'project2/paramChecker.h')
-rw-r--r-- | project2/paramChecker.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/project2/paramChecker.h b/project2/paramChecker.h index b22a1f9..d2ccbfc 100644 --- a/project2/paramChecker.h +++ b/project2/paramChecker.h @@ -2,7 +2,7 @@ #define PARAMCHECKER_H #include <libxml/tree.h> -#include <boost/shared_ptr.hpp> +#include <boost/intrusive_ptr.hpp> #include <map> #include "sourceObject.h" #include "xmlObjectLoader.h" @@ -10,7 +10,7 @@ class ApplicationEngine; class _ParamChecker; -typedef boost::shared_ptr<_ParamChecker> ParamChecker; +typedef boost::intrusive_ptr<_ParamChecker> ParamChecker; typedef std::map<std::string, ParamChecker> ParamCheckers; typedef std::map<unsigned int, ParamChecker> OrderedParamCheckers; @@ -19,12 +19,10 @@ class _ParamChecker : public virtual _SourceObject { _ParamChecker(const xmlpp::Element * p); virtual ~_ParamChecker(); - virtual bool performCheck(const ApplicationEngine *) const = 0; + virtual bool performCheck() const = 0; const Glib::ustring message; const std::string present; - - static void AddLoaders(Loaders & l, OrderedParamCheckers & vs); }; #endif |