diff options
Diffstat (limited to 'project2/rdbmsDataSource.h')
-rw-r--r-- | project2/rdbmsDataSource.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/project2/rdbmsDataSource.h b/project2/rdbmsDataSource.h index 1fd9fac..622754e 100644 --- a/project2/rdbmsDataSource.h +++ b/project2/rdbmsDataSource.h @@ -4,17 +4,17 @@ #include <libxml/tree.h> #include <boost/shared_ptr.hpp> #include <map> -#include "sourceObject.h" +#include "dataSource.h" #include "connection.h" -class _RdbmsDataSource : public _Project2SourceObject { +class _RdbmsDataSource : public _DataSource { public: _RdbmsDataSource(const xmlpp::Element * p); - ODBC::Connection & getReadonly(); - ODBC::Connection & getWritable(); + ODBC::Connection & getReadonly() const; + ODBC::Connection & getWritable() const; const std::string masterDsn; private: - boost::shared_ptr<ODBC::Connection> database; + mutable boost::shared_ptr<ODBC::Connection> database; }; typedef boost::shared_ptr<_RdbmsDataSource> RdbmsDataSource; typedef std::map<std::string, RdbmsDataSource> RdbmsDataSources; |