summaryrefslogtreecommitdiff
path: root/project2/commonObjects.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-19 17:19:49 +0000
committerrandomdan <randomdan@localhost>2011-02-19 17:19:49 +0000
commitdb5559c6175ffba57a7c4d946be9adff4e66e2e3 (patch)
tree9b87e9d10bbd25030b887989990caf152407aafb /project2/commonObjects.cpp
parentUse a smart pointer to ensure sqlRows query handle is always deleted (diff)
downloadproject2-db5559c6175ffba57a7c4d946be9adff4e66e2e3.tar.bz2
project2-db5559c6175ffba57a7c4d946be9adff4e66e2e3.tar.xz
project2-db5559c6175ffba57a7c4d946be9adff4e66e2e3.zip
Tidy up the class hierarchy and reduce header dependencies
Diffstat (limited to 'project2/commonObjects.cpp')
-rw-r--r--project2/commonObjects.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/commonObjects.cpp b/project2/commonObjects.cpp
index 89eb913..fcf479c 100644
--- a/project2/commonObjects.cpp
+++ b/project2/commonObjects.cpp
@@ -1,4 +1,5 @@
#include "commonObjects.h"
+#include "xmlObjectLoader.h"
#include <libxml++/parsers/domparser.h>
#include <libxml/xinclude.h>
@@ -18,7 +19,7 @@ CommonObjects::getSource(const std::string & name) const
throw CommonObjects::DataSourceNotFound(name);
}
-DataSources::index<bySOName>::type::const_iterator
+CommonObjects::DataSources::index<bySOName>::type::const_iterator
CommonObjects::loadDataSource(const std::string & name) const
{
xmlpp::DomParser xml("datasources/" + name + ".xml");