Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
4473a733
Commit
4473a733
authored
Jul 24, 2018
by
Christoph Richter
Browse files
Reset AutopilotAdapter to old version to be compatible with EMAS
parent
36e9df71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/cpp/GeneratorCPP.java
View file @
4473a733
...
@@ -8,6 +8,7 @@ import de.monticore.lang.monticar.generator.cmake.CMakeFindModule;
...
@@ -8,6 +8,7 @@ import de.monticore.lang.monticar.generator.cmake.CMakeFindModule;
import
de.monticore.lang.monticar.generator.cpp.converter.MathConverter
;
import
de.monticore.lang.monticar.generator.cpp.converter.MathConverter
;
import
de.monticore.lang.monticar.generator.cpp.converter.TypeConverter
;
import
de.monticore.lang.monticar.generator.cpp.converter.TypeConverter
;
import
de.monticore.lang.monticar.generator.cpp.template.AllTemplates
;
import
de.monticore.lang.monticar.generator.cpp.template.AllTemplates
;
import
de.monticore.lang.monticar.generator.cpp.viewmodel.AutopilotAdapterViewModel
;
import
de.monticore.lang.monticar.generator.cpp.viewmodel.ServerWrapperViewModel
;
import
de.monticore.lang.monticar.generator.cpp.viewmodel.ServerWrapperViewModel
;
import
de.monticore.lang.monticar.ts.MCTypeSymbol
;
import
de.monticore.lang.monticar.ts.MCTypeSymbol
;
import
de.monticore.lang.tagging._symboltable.TaggingResolver
;
import
de.monticore.lang.tagging._symboltable.TaggingResolver
;
...
@@ -375,7 +376,10 @@ public class GeneratorCPP implements Generator {
...
@@ -375,7 +376,10 @@ public class GeneratorCPP implements Generator {
}
}
private
static
FileContent
generateAutopilotAdapter
(
ExpandedComponentInstanceSymbol
componentSymbol
)
{
private
static
FileContent
generateAutopilotAdapter
(
ExpandedComponentInstanceSymbol
componentSymbol
)
{
return
generateWrapper
(
componentSymbol
,
"AutopilotAdapter.cpp"
);
AutopilotAdapterViewModel
vm
=
new
AutopilotAdapterViewModel
();
vm
.
setMainModelName
(
GeneralHelperMethods
.
getTargetLanguageComponentName
(
componentSymbol
.
getFullName
()));
String
fileContents
=
AllTemplates
.
generateAutopilotAdapter
(
vm
);
return
new
FileContent
(
fileContents
,
"AutopilotAdapter.cpp"
);
}
}
private
static
List
<
FileContent
>
getServerWrapperFiles
(
ExpandedComponentInstanceSymbol
componentSymbol
)
{
private
static
List
<
FileContent
>
getServerWrapperFiles
(
ExpandedComponentInstanceSymbol
componentSymbol
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment