Commit 239df990 authored by Ahmed's avatar Ahmed

fix some errors

parent 608aec4e
......@@ -207,10 +207,13 @@ public class GeneratorCPP implements Generator {
}
if (MathConverter.curBackend.getBackendName().equals("OctaveBackend"))
fileContents.add(OctaveHelper.getOctaveHelperFileContent());
if (MathConverter.curBackend.getBackendName().equals("ArmadilloBackend"))
if (MathConverter.curBackend.getBackendName().equals("ArmadilloBackend")) {
fileContents.add(ArmadilloHelper.getArmadilloHelperFileContent(isGenerateTests));
if(BluePrintCPP.usedCV)
fileContents.add(ConversionHelper.getConversionHelperFileContent(isGenerateTests));
if (BluePrintCPP.usedCV) {
fileContents.add(ConversionHelper.getConversionHelperFileContent(isGenerateTests));
BluePrintCPP.usedCV = false;
}
}
if (shouldGenerateMainClass()) {
//fileContents.add(getMainClassFileContent(componentInstanceSymbol, fileContents.get(0)));
} else if (shouldGenerateSimulatorInterface()) {
......@@ -221,8 +224,6 @@ public class GeneratorCPP implements Generator {
fileContents.add(OctaveHelper.getOctaveHelperFileContent());
if (MathConverter.curBackend.getBackendName().equals("ArmadilloBackend"))
fileContents.add(ArmadilloHelper.getArmadilloHelperFileContent(isGenerateTests));
if(BluePrintCPP.usedCV)
fileContents.add(ConversionHelper.getConversionHelperFileContent(isGenerateTests));
if(componentInstanceSymbol instanceof EMADynamicComponentInstanceSymbol){
//TODO: add Events Value Helper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment