Minsky
itemTemplateInstantiations.h
Go to the documentation of this file.
1 /*
2  @copyright Steve Keen 2019
3  @author Russell Standish
4  This file is part of Minsky.
5 
6  Minsky is free software: you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Minsky is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Minsky. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
25 #ifndef ITEMTEMPLATEINSTANTIATION_H
26 #define ITEMTEMPLATEINSTANTIATION_H
27 //#include "operation.h"
28 //#include "ravelWrap.h"
29 //#include "lock.h"
30 //#include "userFunction.h"
31 //#include "sheet.h"
32 //#include "switchIcon.h"
33 //#include "variable.h"
34 
35 #define DEF(type, base) \
36  template void ItemT<type,base>::RESTProcess(classdesc::RESTProcess_t&, const std::string&); \
37  template void ItemT<type,base>::RESTProcess(classdesc::RESTProcess_t&, const std::string&) const; \
38  template void ItemT<type,base>::json_pack(classdesc::json_pack_t&) const;
39 #define DEFOP(type) DEF(Operation<OperationType::type>, OperationBase)
40 #define DEFVAR(type) DEF(Variable<VariableType::type>, VariableBase)
41 
42 #endif
43