diff options
Diffstat (limited to 'project2/rdbmsDataSource.h')
-rw-r--r-- | project2/rdbmsDataSource.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/project2/rdbmsDataSource.h b/project2/rdbmsDataSource.h new file mode 100644 index 0000000..74ed829 --- /dev/null +++ b/project2/rdbmsDataSource.h @@ -0,0 +1,23 @@ +#ifndef RDBMSDATASOURCE_H +#define RDBMSDATASOURCE_H + +#include <libxml/tree.h> +#include <boost/shared_ptr.hpp> +#include <map> +#include "sourceObject.h" +#include "connection.h" +#include "ustring.h" + +class _RdbmsDataSource : public _Project2SourceObject { + public: + _RdbmsDataSource(xmlNodePtr p); + operator ODBC::Connection &(); + const ustring masterDsn; + private: + boost::shared_ptr<ODBC::Connection> database; +}; +typedef boost::shared_ptr<_RdbmsDataSource> RdbmsDataSource; +typedef std::map<ustring, RdbmsDataSource> RdbmsDataSources; + +#endif + |