View Javadoc
1   /*******************************************************************************
2    * jArduino: Arduino C++ Code Generation From Java
3    * Copyright 2020 Tony Washer
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    *   http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   ******************************************************************************/
17  package net.sourceforge.jarduino.message;
18  
19  /**
20   * Arduino templates.
21   */
22  public final class ArduinoTemplate {
23      /**
24       * Private constructor.
25       */
26      private ArduinoTemplate() {
27      }
28  
29      /**
30       * The field template.
31       */
32      static final String HDRFIELD = ArduinoLibrary.loadLibraryTemplate("field.h");
33  
34      /**
35       * The fieldDefs template.
36       */
37      static final String HDRFIELDDEF = ArduinoLibrary.loadLibraryTemplate("defField.h");
38  
39      /**
40       * The fieldDefs template.
41       */
42      static final String BDYFIELDDEF = ArduinoLibrary.loadLibraryTemplate("defField.cpp");
43  
44      /**
45       * The header setter template.
46       */
47      static final String HDRSETTER = ArduinoLibrary.loadLibraryTemplate("setter.h");
48  
49      /**
50       * The header getter template.
51       */
52      static final String HDRGETTER = ArduinoLibrary.loadLibraryTemplate("getter.h");
53  
54      /**
55       * The mux setter template.
56       */
57      static final String MUXSETTER = ArduinoLibrary.loadLibraryTemplate("muxsetter.h");
58  
59      /**
60       * The body parser template.
61       */
62      static final String BDYPARSER = ArduinoLibrary.loadLibraryTemplate("readField.cpp");
63  
64      /**
65       * The body writer template.
66       */
67      static final String BDYWRITER = ArduinoLibrary.loadLibraryTemplate("writeField.cpp");
68  
69      /**
70       * The muxSetPriv template.
71       */
72      static final String MUXSETPRIV = ArduinoLibrary.loadLibraryTemplate("muxsetpriv.cpp");
73  
74      /**
75       * The muxSetPub template.
76       */
77      static final String MUXSETPUB = ArduinoLibrary.loadLibraryTemplate("muxsetpub.cpp");
78  
79      /**
80       * The muxSwitchPriv template.
81       */
82      static final String MUXSWITCHPRIV = ArduinoLibrary.loadLibraryTemplate("muxswitchpriv.cpp");
83  
84      /**
85       * The muxSwitchPub template.
86       */
87      static final String MUXSWITCHPUB = ArduinoLibrary.loadLibraryTemplate("muxswitchpub.cpp");
88  
89      /**
90       * The header class template.
91       */
92      static final String HDRCLASS = ArduinoLibrary.loadLibraryTemplate("class.h");
93  
94      /**
95       * The header multiClass template.
96       */
97      static final String HDRMULTICLASS = ArduinoLibrary.loadLibraryTemplate("multiclass.h");
98  
99      /**
100      * The header parseClass template.
101      */
102     static final String HDRPARSECLASS = ArduinoLibrary.loadLibraryTemplate("parse.class.h");
103 
104     /**
105      * The header buildClass template.
106      */
107     static final String HDRBUILDCLASS = ArduinoLibrary.loadLibraryTemplate("build.class.h");
108 
109     /**
110      * The header buildMultiClass template.
111      */
112     static final String HDRBUILDMULTICLASS = ArduinoLibrary.loadLibraryTemplate("buildMulti.class.h");
113 
114     /**
115      * The body class template.
116      */
117     static final String BDYCLASS = ArduinoLibrary.loadLibraryTemplate("class.cpp");
118 
119     /**
120      * The body multiClass template.
121      */
122     static final String BDYMULTICLASS = ArduinoLibrary.loadLibraryTemplate("multiclass.cpp");
123 
124     /**
125      * The body parseClass template.
126      */
127     static final String BDYPARSECLASS = ArduinoLibrary.loadLibraryTemplate("parse.class.cpp");
128 
129     /**
130      * The body parseMultiClass template.
131      */
132     static final String BDYPARSEMULTICLASS = ArduinoLibrary.loadLibraryTemplate("parseMulti.class.cpp");
133 
134     /**
135      * The body buildClass template.
136      */
137     static final String BDYBUILDCLASS = ArduinoLibrary.loadLibraryTemplate("build.class.cpp");
138 
139     /**
140      * The body buildMultiClass template.
141      */
142     static final String BDYBUILDMULTICLASS = ArduinoLibrary.loadLibraryTemplate("buildMulti.class.cpp");
143 
144     /**
145      * The parse MsgCase template.
146      */
147     static final String PRSMSGCASE = ArduinoLibrary.loadLibraryTemplate("caseMsg.cpp");
148 
149     /**
150      * The parse multiClass template.
151      */
152     static final String PRSMULTIMSG = ArduinoLibrary.loadLibraryTemplate("caseMulti.cpp");
153 
154     /**
155      * The parse multiClassMsg template.
156      */
157     static final String PRSMULTIMSGCASE = ArduinoLibrary.loadLibraryTemplate("caseMultiMsg.cpp");
158 
159     /**
160      * The header template.
161      */
162     static final String HEADER = ArduinoLibrary.loadLibraryTemplate("h");
163 
164     /**
165      * The body template.
166      */
167     static final String BODY = ArduinoLibrary.loadLibraryTemplate("cpp");
168 }