fintp_udal
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ConnectionString.h
Go to the documentation of this file.
1
/*
2
* FinTP - Financial Transactions Processing Application
3
* Copyright (C) 2013 Business Information Systems (Allevo) S.R.L.
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>
17
* or contact Allevo at : 031281 Bucuresti, 23C Calea Vitan, Romania,
18
* phone +40212554577, office@allevo.ro <mailto:office@allevo.ro>, www.allevo.ro.
19
*/
20
21
#ifndef CONNECTIONSTRING_H
22
#define CONNECTIONSTRING_H
23
24
#include <string>
25
#include "Collections.h"
26
#include "
DllMainUdal.h
"
27
28
using namespace
std;
29
30
namespace
FinTP
31
{
35
class
ExportedUdalObject
ConnectionString
36
{
37
public
:
38
45
explicit
ConnectionString
(
const
string
& dbName =
""
,
const
string
& userName =
""
,
const
string
& userPassword =
""
);
46
52
ConnectionString
& operator=(
const
ConnectionString
&source );
53
54
void
setDatabaseName
(
const
string
& databaseName ) {
55
m_DatabaseName = databaseName;
56
}
57
void
setUserName
(
const
string
& userName ) {
58
m_UserName = userName;
59
}
60
void
setUserPassword
(
const
string
& userPassword ) {
61
m_UserPassword = userPassword;
62
}
63
string
getDatabaseName
()
const
{
64
return
m_DatabaseName;
65
}
66
string
getUserName
()
const
{
67
return
m_UserName;
68
}
69
string
getUserPassword
()
const
{
70
return
m_UserPassword;
71
}
72
77
bool
isValid()
const
78
{
79
return
( ( m_DatabaseName.length() > 0 ) && ( m_UserName.length() > 0 ) && ( m_UserPassword.length() > 0 ) );
80
}
81
82
private
:
84
string
m_DatabaseName
;
86
string
m_UserName
;
88
string
m_UserPassword
;
89
};
90
}
91
92
#endif //CONNECTIONSTRING_H
src
ConnectionString.h
Generated on Tue Aug 12 2014 09:51:21 for fintp_udal by
1.8.3.1