src/Common/ODBC/AccessConnectionInfo.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc
00004 {
00005         namespace Databases
00006         {
00007                 namespace Access
00008                 {
00010             class AccessConnectionInfo : public AppSecInc::Databases::ODBC::ODBCConnectionInfo
00011                         {
00012                         protected:
00014                                 std::wstring _dbq;
00016                                 std::wstring _username;
00018                                 std::wstring _password;
00019                         public:
00021                                 inline const std::wstring& GetUsername() const { return _username; }
00023                                 inline void SetUsername(const std::wstring& username) { _username = username; }
00025                                 inline const std::wstring& GetPassword() const { return _password; }
00027                                 inline void SetPassword(const std::wstring& password) { _password = password; }
00029                                 inline const std::wstring& GetDBQ() const { return _dbq; }
00031                                 inline void SetDBQ(const std::wstring& dbq) { _dbq = dbq; }
00033                                 AccessConnectionInfo(const AccessConnectionInfo&);
00034                                 AccessConnectionInfo(const std::wstring& dbq = L"");
00035                                 ~AccessConnectionInfo();
00036                                 void operator=(const AccessConnectionInfo&);
00038                 std::wstring GetConnectionString() const;
00039                         };
00040                 }
00041         }
00042 }


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com