WareSignatureMacros.hpp
Go to the documentation of this file.
1 /*
2 
3  This file is part of OpenFLUID software
4  Copyright(c) 2007, INRA - Montpellier SupAgro
5 
6 
7  == GNU General Public License Usage ==
8 
9  OpenFLUID is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  OpenFLUID is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with OpenFLUID. If not, see <http://www.gnu.org/licenses/>.
21 
22 
23  == Other Usage ==
24 
25  Other Usage means a use of OpenFLUID that is inconsistent with the GPL
26  license, and requires a written agreement between You and INRA.
27  Licensees for Other Usage of OpenFLUID may use this file in accordance
28  with the terms contained in the written agreement between You and INRA.
29 
30 */
31 
32 /**
33  @file WareSignatureMacros.hpp
34 
35  @author Jean-Christophe FABRE <jean-christophe.fabre@inra.fr>
36 */
37 
38 
39 #ifndef __OPENFLUID_WARE_WARESIGNATUREMACROS_HPP__
40 #define __OPENFLUID_WARE_WARESIGNATUREMACROS_HPP__
41 
42 
43 /**
44  Macro for declaration of the ware name
45 
46  @cond OpenFLUID:completion
47  {
48  "contexts" : ["ANYWARE"],
49  "menupath" : ["Signature","General"],
50  "title" : "Declare name",
51  "text" : "DECLARE_NAME(\"%%SEL_START%%name%%SEL_END%%\")"
52  }
53  @endcond
54 */
55 #define DECLARE_NAME(name) \
56  Signature->Name = (name);
57 
58 /**
59  Macro for declaration of the ware description
60 
61  @cond OpenFLUID:completion
62  {
63  "contexts" : ["ANYWARE"],
64  "menupath" : ["Signature","General"],
65  "title" : "Declare description",
66  "text" : "DECLARE_DESCRIPTION(\"%%SEL_START%%desc%%SEL_END%%\")"
67  }
68  @endcond
69 */
70 #define DECLARE_DESCRIPTION(desc) \
71  Signature->Description = (desc);
72 
73 /**
74  Macro for declaration of the ware author name and email
75 
76  @cond OpenFLUID:completion
77  {
78  "contexts" : ["ANYWARE"],
79  "menupath" : ["Signature","General"],
80  "title" : "Declare author",
81  "text" : "DECLARE_AUTHOR(\"%%SEL_START%%firstname lastname%%SEL_END%%\",\"email\")"
82  }
83  @endcond
84 */
85 #define DECLARE_AUTHOR(name,email) \
86  Signature->Authors.push_back(std::make_pair((name),(email)));
87 
88 /**
89  Macro for declaration of the ware version
90 
91  @cond OpenFLUID:completion
92  {
93  "contexts" : ["ANYWARE"],
94  "menupath" : ["Signature", "General"],
95  "title" : "Declare version",
96  "text" : "DECLARE_VERSION(\"%%SEL_START%%1.0%%SEL_END%%\")"
97  }
98  @endcond
99 */
100 #define DECLARE_VERSION(version) \
101  Signature->Version = (version);
102 
103 /**
104  Macro for declaration of the ware status
105 
106  @cond OpenFLUID:completion
107  {
108  "contexts" : ["ANYWARE"],
109  "menupath" : ["Signature", "Status"],
110  "title" : "Declare status as experimental",
111  "text" : "DECLARE_STATUS(openfluid::ware::EXPERIMENTAL)"
112  }
113  @endcond
114 
115  @cond OpenFLUID:completion
116  {
117  "contexts" : ["ANYWARE"],
118  "menupath" : ["Signature", "Status"],
119  "title" : "Declare status as beta",
120  "text" : "DECLARE_STATUS(openfluid::ware::BETA)"
121  }
122  @endcond
123 
124  @cond OpenFLUID:completion
125  {
126  "contexts" : ["ANYWARE"],
127  "menupath" : ["Signature", "Status"],
128  "title" : "Declare status as stable",
129  "text" : "DECLARE_STATUS(openfluid::ware::STABLE)"
130  }
131  @endcond
132 */
133 #define DECLARE_STATUS(status) \
134  Signature->Status = (status);
135 
136 /**
137  Macro for declaration of ABI version used to build the ware
138 */
139 #define DECLARE_SDKVERSION \
140  Signature->setABIVersion(openfluid::config::VERSION_FULL);
141 
142 
143 #endif /* __OPENFLUID_WARE_WARESIGNATUREMACROS_HPP__ */