AccessConnectionInfo.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace Databases
6  {
7  namespace Access
8  {
11  {
12  protected:
14  std::wstring _dbq;
16  std::wstring _username;
18  std::wstring _password;
19  public:
21  inline const std::wstring& GetUsername() const { return _username; }
23  inline void SetUsername(const std::wstring& username) { _username = username; }
25  inline const std::wstring& GetPassword() const { return _password; }
27  inline void SetPassword(const std::wstring& password) { _password = password; }
29  inline const std::wstring& GetDBQ() const { return _dbq; }
31  inline void SetDBQ(const std::wstring& dbq) { _dbq = dbq; }
34  AccessConnectionInfo(const std::wstring& dbq = L"");
36  void operator=(const AccessConnectionInfo&);
38  std::wstring GetConnectionString() const;
39  };
40  }
41  }
42 }
~AccessConnectionInfo()
Definition: AccessConnectionInfo.cpp:41
void SetPassword(const std::wstring &password)
set password
Definition: AccessConnectionInfo.h:27
const std::wstring & GetUsername() const
get username
Definition: AccessConnectionInfo.h:21
std::wstring _username
username
Definition: AccessConnectionInfo.h:16
const std::wstring & GetPassword() const
get password
Definition: AccessConnectionInfo.h:25
std::wstring _dbq
the database ip address
Definition: AccessConnectionInfo.h:14
A generic connection info.
Definition: ConnectionInfo.h:10
const std::wstring & GetDBQ() const
get database (.mdf file) name
Definition: AccessConnectionInfo.h:29
std::wstring GetConnectionString() const
get the connection string
Definition: AccessConnectionInfo.cpp:26
void SetUsername(const std::wstring &username)
set username
Definition: AccessConnectionInfo.h:23
void operator=(const AccessConnectionInfo &)
Definition: AccessConnectionInfo.cpp:19
An authenticated Microsoft SQL Server connection info.
Definition: AccessConnectionInfo.h:10
void SetDBQ(const std::wstring &dbq)
set database (.mdf file) name
Definition: AccessConnectionInfo.h:31
std::wstring _password
password
Definition: AccessConnectionInfo.h:18
AccessConnectionInfo(const AccessConnectionInfo &)
constructors/destructors
Definition: AccessConnectionInfo.cpp:14


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