scaffold  1.0.0
Generates files and directories based on templates and user input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
scaffold_global.h
Go to the documentation of this file.
1 /* ========================================================================= */
2 /* ------------------------------------------------------------------------- *//*
11 
12 
13  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14  Please read COPYING and README files in root folder
15  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 */
17 /* ------------------------------------------------------------------------- */
18 /* ========================================================================= */
19 #ifndef __SCAFFOLD_GLOBAL_HEADER_INC__
20 #define __SCAFFOLD_GLOBAL_HEADER_INC__
21 //
22 //
23 //
24 //
25 /* INCLUDES ------------------------------------------------------------ */
26 
27 #include <QtGlobal>
28 #include <QMap>
29 #include <QStringList>
30 #include <scaffold/scaffold_config.h>
31 
32 /* INCLUDES ============================================================ */
33 //
34 //
35 //
36 //
37 /* DEFINITIONS --------------------------------------------------------- */
38 
39 namespace scaffold {
40 
41 #ifndef SCAFFOLD_STANDALONE
42 # if defined(scaffold_LIBRARY)
43 
46 # define SCAFFOLDSHARED_EXPORT Q_DECL_EXPORT
47 # else
48 
51 # define SCAFFOLDSHARED_EXPORT Q_DECL_IMPORT
52 # endif
53 #else
54 
57 # define SCAFFOLDSHARED_EXPORT
58 #endif
59 
63 #define SCAFFOLD_NAME "scaffold"
64 
65 #ifndef ADD_PTR_INT
66 
67 # define ADD_PTR_INT(p,i) ( ((char*)p) + i )
68 #endif
69 
70 #define xstr(s) str(s)
71 #define str(s) #s
72 #define foo 4
73 
75 #define _tr(txt) QObject::tr( txt )
76 
79 #define _fileError(txt) Scaffold::fileError( txt )
80 #define _fileError_tr(txt) _fileError( _tr ( txt ) )
81 #define _fileError_tr1(txt,arg1) _fileError( _tr ( txt ).arg( arg1 ) )
82 #define _fileError_tr2(txt,arg1,arg2) _fileError( _tr ( txt ).arg( arg1 ).arg( arg2 ) )
83 #define _fileError_tr3(txt,arg1,arg2,arg3) _fileError( _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )
84 
85 
88 #define _error(txt) Scaffold::error( txt )
89 #define _error_tr(txt) _error( _tr ( txt ) )
90 #define _error_tr1(txt,arg1) _error( _tr ( txt ).arg( arg1 ) )
91 #define _error_tr2(txt,arg1,arg2) _error( _tr ( txt ).arg( arg1 ).arg( arg2 ) )
92 #define _error_tr3(txt,arg1,arg2,arg3) _error( _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )
93 
94 
97 #define _log(ty,txt) Scaffold::log( Scaffold::LOG_ ## ty, txt )
98 #define _log_tr(ty,txt) _log( ty, _tr ( txt ) )
99 #define _log_tr1(ty,txt,arg1) _log( ty, _tr ( txt ).arg( arg1 ) )
100 #define _log_tr2(ty,txt,arg1,arg2) _log( ty, _tr ( txt ).arg( arg1 ).arg( arg2 ) )
101 #define _log_tr3(ty,txt,arg1,arg2,arg3) _log( ty, _tr ( txt ).arg( arg1 ).arg( arg2 ).arg( arg3 ) )
102 
103 
104 
105 /* DEFINITIONS ========================================================= */
106 //
107 //
108 //
109 //
110 /* DATA ---------------------------------------------------------------- */
111 
112 /* DATA ================================================================ */
113 //
114 //
115 //
116 //
117 /* FUNCTIONS ----------------------------------------------------------- */
118 
119 /* FUNCTIONS =========================================================== */
120 //
121 //
122 //
123 //
124 
125 } // namespace scaffold
126 
127 #endif // __SCAFFOLD_GLOBAL_HEADER_INC__
128 /* ------------------------------------------------------------------------- */
129 /* ========================================================================= */