Commit b19052ff authored by Ahmed's avatar Ahmed

fix some errors

parent d6f097b7
......@@ -208,10 +208,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()) {
......@@ -222,8 +225,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