Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InputParameter.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2005-2013 (http://safir.sourceforge.net)
4 *
5 * Created by: Jörgen Johansson / stjrjo
6 *
7 *******************************************************************************
8 *
9 * This file is part of Safir SDK Core.
10 *
11 * Safir SDK Core is free software: you can redistribute it and/or modify
12 * it under the terms of version 3 of the GNU General Public License as
13 * published by the Free Software Foundation.
14 *
15 * Safir SDK Core is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22 *
23 ******************************************************************************/
24 #if !defined(Safir_Databases_Odbc_Input_Parameter_h)
25 #define Safir_Databases_Odbc_Input_Parameter_h
26 
29 #include "Safir/Databases/Odbc/Internal/InternalDefs.h"
30 #include "Safir/Databases/Odbc/Internal/Parameter.h"
31 #include "Safir/Databases/Odbc/Internal/BufferedWideStringParameter.h"
32 #include "Safir/Databases/Odbc/Internal/NonBufferedWideStringParameter.h"
33 #include "Safir/Databases/Odbc/Internal/BufferedBinaryParameter.h"
34 #include "Safir/Databases/Odbc/Internal/NonBufferedBinaryParameter.h"
35 
36 namespace Safir
37 {
38 namespace Databases
39 {
40 namespace Odbc
41 {
42 
44 // Input parameters.
46 
47 typedef Internal::BufferedBinaryParameter<SQL_VARBINARY, SQL_PARAM_INPUT> BinaryParameter;
48 
49 typedef Internal::NonBufferedBinaryParameter<SQL_LONGVARBINARY, SQL_PARAM_INPUT> LongBinaryParameter;
50 
51 typedef Internal::BufferedWideStringParameter<SQL_WVARCHAR, SQL_PARAM_INPUT> WideStringParameter;
52 
53 typedef Internal::NonBufferedWideStringParameter<SQL_WLONGVARCHAR, SQL_PARAM_INPUT> LongWideStringParameter;
54 
55 typedef Internal::BooleanParameter<SQL_PARAM_INPUT> BooleanParameter;
56 
57 typedef Internal::TimeParameter<SQL_PARAM_INPUT> TimeParameter;
58 
59 typedef Internal::Parameter<SQL_C_FLOAT, SQL_FLOAT, Safir::Dob::Typesystem::Float32,SQL_PARAM_INPUT,15> Float32Parameter;
60 
61 typedef Internal::Parameter<SQL_C_DOUBLE, SQL_DOUBLE, Safir::Dob::Typesystem::Float64,SQL_PARAM_INPUT,15> Float64Parameter;
62 
63 typedef Internal::Parameter<SQL_C_SLONG, SQL_INTEGER, Safir::Dob::Typesystem::Int32,SQL_PARAM_INPUT,10> Int32Parameter;
64 
65 typedef Internal::Parameter<SQL_C_SBIGINT, SQL_BIGINT, Safir::Dob::Typesystem::Int64,SQL_PARAM_INPUT,20> Int64Parameter;
66 
67 }; // Odbc
68 
69 }; // Databases
70 
71 }; // Safir
72 
73 #endif //Safir_Databases_Odbc_Input_Parameter_h
Internal::Parameter< SQL_C_SLONG, SQL_INTEGER, Safir::Dob::Typesystem::Int32, SQL_PARAM_INPUT, 10 > Int32Parameter
Definition: InputParameter.h:63
Internal::BufferedBinaryParameter< SQL_VARBINARY, SQL_PARAM_INPUT > BinaryParameter
Definition: InputParameter.h:47
Internal::BooleanParameter< SQL_PARAM_INPUT > BooleanParameter
Definition: InputParameter.h:55
Internal::BufferedWideStringParameter< SQL_WVARCHAR, SQL_PARAM_INPUT > WideStringParameter
Definition: InputParameter.h:51
Internal::NonBufferedBinaryParameter< SQL_LONGVARBINARY, SQL_PARAM_INPUT > LongBinaryParameter
Definition: InputParameter.h:49
Internal::Parameter< SQL_C_FLOAT, SQL_FLOAT, Safir::Dob::Typesystem::Float32, SQL_PARAM_INPUT, 15 > Float32Parameter
Definition: InputParameter.h:59
Internal::NonBufferedWideStringParameter< SQL_WLONGVARCHAR, SQL_PARAM_INPUT > LongWideStringParameter
Definition: InputParameter.h:53
Internal::Parameter< SQL_C_SBIGINT, SQL_BIGINT, Safir::Dob::Typesystem::Int64, SQL_PARAM_INPUT, 20 > Int64Parameter
Definition: InputParameter.h:65
Internal::Parameter< SQL_C_DOUBLE, SQL_DOUBLE, Safir::Dob::Typesystem::Float64, SQL_PARAM_INPUT, 15 > Float64Parameter
Definition: InputParameter.h:61
Internal::TimeParameter< SQL_PARAM_INPUT > TimeParameter
Definition: InputParameter.h:57