All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BuilderExtensionSignature.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 /**
34  \file BuilderExtensionSignature.hpp
35  \brief Header of ...
36 
37  \author Jean-Christophe FABRE <fabrejc@supagro.inra.fr>
38  */
39 
40 
41 #ifndef __BUILDEREXTENSIONSIGNATURE_HPP__
42 #define __BUILDEREXTENSIONSIGNATURE_HPP__
43 
44 
46 #include <openfluid/config.hpp>
47 #include <openfluid/dllexport.hpp>
48 
49 #include <QString>
50 
51 /**
52  Macro for the beginning of definition of signature hook
53 */
54 #define BEGIN_BUILDEREXT_SIGNATURE(id,exttype) \
55  openfluid::builderext::BuilderExtensionSignature* WARESIGNATURE_PROC_DECL() \
56  { \
57  openfluid::builderext::BuilderExtensionSignature* Signature = new openfluid::builderext::BuilderExtensionSignature(); \
58  Signature->setABIVersion(openfluid::config::FULL_VERSION); \
59  Signature->ID = (id); \
60  Signature->Type = (exttype);
61 
62 
63 /**
64  Macro for the end of definition of signature hook
65 */
66 #define END_BUILDEREXT_SIGNATURE \
67  return Signature; \
68  }
69 
70 
71 /**
72  Macro for declaration of a Builder extension configuration parameter
73  @param[in] name name of the parameter
74  @param[in] description description of the parameter
75 */
76 #define DECLARE_CONFIGURATION_PARAM(name,description) \
77  Signature->ConfigParameters[(name)] = (description);
78 
79 
80 /**
81  Macro for declaration of the Builder extension category
82 */
83 #define DECLARE_CATEGORY(category) Signature->Category = (category);
84 
85 
86 /**
87  Macro for declaration of the Builder extension menu text
88 */
89 #define DECLARE_MENUTEXT(menutext) Signature->MenuText = (menutext);
90 
91 
92 // =====================================================================
93 // =====================================================================
94 
95 
96 #include <QString>
97 
98 
99 namespace openfluid { namespace builderext {
100 
101 
103 
105 
106 
108 {
109  public:
110 
112 
114 
115  QString MenuText;
116 
117  std::map<QString,QString> ConfigParameters;
118 
119 
121  Category(CAT_OTHER), Type(TYPE_UNKNOWN)
122  { };
123 
124 };
125 
126 } } // namespaces
127 
128 #endif /* __BUILDEREXTENSIONSIGNATURE_HPP__ */
Definition: WareSignature.hpp:119
Definition: BuilderExtensionSignature.hpp:104
ExtensionType
Definition: BuilderExtensionSignature.hpp:104
Definition: BuilderExtensionSignature.hpp:102
Definition: BuilderExtensionSignature.hpp:104
Definition: BuilderExtensionSignature.hpp:102
ExtensionCategory
Definition: BuilderExtensionSignature.hpp:102
Definition: BuilderExtensionSignature.hpp:107
Definition: BuilderExtensionSignature.hpp:102
Definition: BuilderExtensionSignature.hpp:104
std::map< QString, QString > ConfigParameters
Definition: BuilderExtensionSignature.hpp:117
Header of ...
ExtensionType Type
Definition: BuilderExtensionSignature.hpp:113
ExtensionCategory Category
Definition: BuilderExtensionSignature.hpp:111
QString MenuText
Definition: BuilderExtensionSignature.hpp:115
Definition: BuilderExtensionSignature.hpp:104
Definition: BuilderExtensionSignature.hpp:102
BuilderExtensionSignature()
Definition: BuilderExtensionSignature.hpp:120
#define DLLEXPORT
Definition: dllexport.hpp:51