fintp_udal
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ODBCColumn.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 ODBCCOLUMN_H
22
#define ODBCCOLUMN_H
23
24
#include "StringUtil.h"
25
#include "../DataColumn.h"
26
#include "
ODBCParameter.h
"
27
28
#include <string>
29
#include <vector>
30
#include <map>
31
using namespace
std;
32
33
#define MAX_ODBC_COLUMN_NAME 50
34
35
namespace
FinTP
36
{
37
template
<
class
T>
42
class
ODBCColumn
:
public
DataColumn
< T >
43
{
44
public
:
45
52
ODBCColumn
(
unsigned
int
dimension,
int
scale,
const
string
name =
""
);
53
~
ODBCColumn
();
54
55
void
setValue( T value );
56
T getValue();
57
58
int
getInt()
59
{
60
return
DataColumn< T >::getInt
();
61
}
62
63
long
getLong()
64
{
65
return
DataColumn< T >::getLong
();
66
}
67
68
short
getShort()
69
{
70
return
DataColumn< T >::getShort
();
71
}
72
//copy column
73
DataColumnBase
* Clone();
74
void
Sync();
75
};
76
77
template
<>
78
inline
long
ODBCColumn< string >::getLong
()
79
{
80
return
StringUtil::ParseLong( m_Value );
81
}
82
83
template
<>
84
inline
int
ODBCColumn< string >::getInt
()
85
{
86
return
StringUtil::ParseInt( m_Value );
87
}
88
89
template
<>
90
inline
short
ODBCColumn< string >::getShort
()
91
{
92
return
StringUtil::ParseShort( m_Value );
93
}
94
//typedef std::pair< std::string, Db2ColumnBase *> ODBCResultColumn;
95
}
96
97
#endif // ODBCCOLUMN_H
src
ODBC
ODBCColumn.h
Generated on Tue Aug 12 2014 09:51:21 for fintp_udal by
1.8.3.1