Skip to content

Commit

Permalink
SKA-552: Changed default strings in vCDL exporter
Browse files Browse the repository at this point in the history
* Namespace: "DefaultNamespace" -> "FMU"
* InstanceName: "Default": "FmuInstance"
  • Loading branch information
DominikHerr committed Jun 26, 2024
1 parent 3a6d272 commit c724273
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions VcdlExporter/VcdlExporter/CommInterfaceExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public class CommInterfaceExporter : BaseExporter
public string VcdlPath { get; }

private readonly string _interfaceName;
private readonly string _defaultInstanceName = "Default";
private readonly string _defaultInstanceName = "FmuInstance";
private readonly string _defaultNamespace = "FMU";

public CommInterfaceExporter(string communicationInterfaceDescriptionPath, string vcdlPath, string interfaceName)
{
Expand All @@ -30,7 +31,7 @@ public void Export()
var sb = new StringBuilder();

// Add vCDL header
AddVcdlHeader(sb, commInterface.Namespace ?? "DefaultNamespace");
AddVcdlHeader(sb, commInterface.Namespace ?? _defaultNamespace);

// Add enum definitions
AddEnumerationDefinitions(commInterface, sb);
Expand Down

0 comments on commit c724273

Please sign in to comment.