fintp_base
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DllMain.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 
26 #pragma once
27 
28 #ifdef WIN32
29  #ifdef _BASEDLL
30  #define ExportedObject __declspec( dllexport )
31  #ifdef QPAYEXT
32  #define ExportedObjectExt __declspec( dllexport )
33  #else
34  #define ExportedObjectExt __declspec( dllimport )
35  #endif
36  //#define EXPIMP_TEMPLATE
37  #else
38  #define ExportedObject __declspec( dllimport )
39  #define ExportedObjectExt __declspec( dllimport )
40  //#define EXPIMP_TEMPLATE extern
41  #endif
42 #else
43  #define ExportedObject
44  #define ExportedObjectExt
45  //#define EXPIMP_TEMPLATE
46 #endif
47 
48 #ifndef DLLMAIN_FINTP_LIB
49 #define DLLMAIN_FINTP_LIB
50 
51 #ifdef WIN32
52  #pragma warning( disable : 4251 )
53  //to disable specific warning for std classes
54  //warning C4251: : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class <class>
55 #endif
56 
57 //#define USE_FinTP using namespace FinTP;
58 
59 #include <string>
60 
61 using namespace std;
62 
63 namespace FinTP
64 {
71  {
72  private :
75 
76  public :
78  static std::string Name();
80  static std::string Id();
82  static std::string Url();
84  static std::string BuildDate();
85  };
86 }
87 
88 #endif // DLLMAIN_FINTP_LIB