00001 #pragma once 00002 00003 namespace AppSecInc 00004 { 00005 namespace Databases 00006 { 00007 namespace Access 00008 { 00010 class AccessDatabase : public AppSecInc::Databases::ODBC::ODBCDatabase 00011 { 00012 private: 00013 AppSecInc::Databases::ODBC::ODBCConnection _connection; 00014 std::wstring _connection_string; 00015 std::wstring _dbq; 00016 AccessDatabase& operator=(const AccessDatabase&); 00017 public: 00019 const std::wstring GetDBQ() const { return _dbq; } 00021 void SetDBQ(const std::wstring& value) { _dbq = value; } 00023 AppSecInc::Databases::ODBC::ODBCConnection& GetConnection() { return _connection; } 00024 const AppSecInc::Databases::ODBC::ODBCConnection& GetConnection() const { return _connection; } 00025 public: 00027 AccessDatabase(); 00028 AccessDatabase(const AppSecInc::Databases::ODBC::ODBCConnectionInfo& connectioninfo); 00029 void Create(); 00030 bool Exists(); 00031 void Connect(); 00032 void Disconnect(); 00033 void Drop(); 00034 ~AccessDatabase(); 00036 MSXML2::IXMLDOMNodePtr Save(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr parent) const; 00038 void Load(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr root); 00039 }; 00040 } 00041 } 00042 }
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |