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 | 64992fdf169c55f8575e9d3926a66d8bb90f39d2 (patch) | |
| tree | e24f74a9b227d13ee91c55d65e47d983cb0cd179 /project2/urlRows.h | |
| parent | Add option to use a temporary view instead of a table to reduce WAL churn dur... (diff) | |
| download | project2-64992fdf169c55f8575e9d3926a66d8bb90f39d2.tar.bz2 project2-64992fdf169c55f8575e9d3926a66d8bb90f39d2.tar.xz project2-64992fdf169c55f8575e9d3926a66d8bb90f39d2.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/urlRows.h')
| -rw-r--r-- | project2/urlRows.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/project2/urlRows.h b/project2/urlRows.h index f94e149..d9eb413 100644 --- a/project2/urlRows.h +++ b/project2/urlRows.h @@ -2,6 +2,7 @@ #define URLROWS_H #include <libxml++/nodes/element.h> +#include <boost/intrusive_ptr.hpp> #include <boost/shared_ptr.hpp> #include <map> #include "view.h" @@ -12,6 +13,7 @@ class _UrlRows : public PerRowValues { _UrlRows(const xmlpp::Element * p); ~_UrlRows(); + virtual void loadComplete(); void execute() const; unsigned int columnCount() const; const Glib::ustring & getColumnName(unsigned int col) const; @@ -45,14 +47,14 @@ class _UrlRows : public PerRowValues { mutable bool prevWasQuote; mutable Glib::ustring tok; }; -typedef boost::shared_ptr<_UrlRows> UrlRows; +typedef boost::intrusive_ptr<_UrlRows> UrlRows; typedef _GenericView<_UrlRows> _UrlView; -typedef boost::shared_ptr<_UrlView> UrlView; +typedef boost::intrusive_ptr<_UrlView> UrlView; typedef std::map<std::string, UrlView> UrlViews; typedef _GenericIterate<_UrlRows> _UrlIterate; -typedef boost::shared_ptr<_UrlIterate> UrlIterate; +typedef boost::intrusive_ptr<_UrlIterate> UrlIterate; typedef std::map<std::string, UrlIterate> UrlIterates; #endif |
