From 1fd51557946393a0b20c6b43e0f24a273ec2df7c Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 25 Jan 2024 21:48:11 +0100 Subject: [PATCH] Add generation date/time and include guards --- generator/src/generator/Declaration.egl | 1 + generator/src/generator/Generator.java | 2 +- generator/src/generator/Instance.egl | 3 +++ generator/src/generator/Interface.egl | 5 +++++ test/generated/IScXmlTestImpl.hxx | 5 +++++ test/generated/IXmiTestImpl.hxx | 5 +++++ test/generated/ScXmlTestDeclaration.hxx | 1 + test/generated/ScXmlTestInstance.hxx | 3 +++ test/generated/XmiTestDeclaration.hxx | 1 + test/generated/XmiTestInstance.hxx | 3 +++ 10 files changed, 28 insertions(+), 1 deletion(-) diff --git a/generator/src/generator/Declaration.egl b/generator/src/generator/Declaration.egl index 90f9018..fa87859 100644 --- a/generator/src/generator/Declaration.egl +++ b/generator/src/generator/Declaration.egl @@ -1,4 +1,5 @@ // Statemachine [%=statemachine.name%] declaration +// Generated: [%=new Native("java.text.SimpleDateFormat").format(new Native("java.util.Date"))%] #pragma once diff --git a/generator/src/generator/Generator.java b/generator/src/generator/Generator.java index 1969356..8028706 100644 --- a/generator/src/generator/Generator.java +++ b/generator/src/generator/Generator.java @@ -65,7 +65,7 @@ public static void main(String[] args) throws Exception { scxml.load(); scxml_module.getContext().getModelRepository().addModel(scxml); scxml_module.getContext().setUserInput(new UserInput()); - + System.out.println("Generating SCXML model " + filename + " to " + out_path); scxml_module.execute(); diff --git a/generator/src/generator/Instance.egl b/generator/src/generator/Instance.egl index 596a7fb..09900b0 100644 --- a/generator/src/generator/Instance.egl +++ b/generator/src/generator/Instance.egl @@ -1,4 +1,7 @@ // Statemachine [%=statemachine.name%] instance +// Generated: [%=new Native("java.text.SimpleDateFormat").format(new Native("java.util.Date"))%] + +#pragma once // Override the following defines according to your needs if you are not using cpp_event_framework: diff --git a/generator/src/generator/Interface.egl b/generator/src/generator/Interface.egl index fce5785..6dc30b7 100644 --- a/generator/src/generator/Interface.egl +++ b/generator/src/generator/Interface.egl @@ -1,3 +1,8 @@ +// Statemachine [%=statemachine.name%] implementation interface +// Generated: [%=new Native("java.text.SimpleDateFormat").format(new Native("java.util.Date"))%] + +#pragma once + class I[%=statemachine.name%]Impl { public: diff --git a/test/generated/IScXmlTestImpl.hxx b/test/generated/IScXmlTestImpl.hxx index d700edf..87a9a9b 100644 --- a/test/generated/IScXmlTestImpl.hxx +++ b/test/generated/IScXmlTestImpl.hxx @@ -1,3 +1,8 @@ +// Statemachine ScXmlTest implementation interface +// Generated: 25.01.24, 21:47 + +#pragma once + class IScXmlTestImpl { public: diff --git a/test/generated/IXmiTestImpl.hxx b/test/generated/IXmiTestImpl.hxx index 88e48da..6cb65cb 100644 --- a/test/generated/IXmiTestImpl.hxx +++ b/test/generated/IXmiTestImpl.hxx @@ -1,3 +1,8 @@ +// Statemachine XmiTest implementation interface +// Generated: 25.01.24, 21:47 + +#pragma once + class IXmiTestImpl { public: diff --git a/test/generated/ScXmlTestDeclaration.hxx b/test/generated/ScXmlTestDeclaration.hxx index 18869f6..476aa9b 100644 --- a/test/generated/ScXmlTestDeclaration.hxx +++ b/test/generated/ScXmlTestDeclaration.hxx @@ -1,4 +1,5 @@ // Statemachine ScXmlTest declaration +// Generated: 25.01.24, 21:47 #pragma once diff --git a/test/generated/ScXmlTestInstance.hxx b/test/generated/ScXmlTestInstance.hxx index cec2803..3444b4a 100644 --- a/test/generated/ScXmlTestInstance.hxx +++ b/test/generated/ScXmlTestInstance.hxx @@ -1,4 +1,7 @@ // Statemachine ScXmlTest instance +// Generated: 25.01.24, 21:47 + +#pragma once // Override the following defines according to your needs if you are not using cpp_event_framework: diff --git a/test/generated/XmiTestDeclaration.hxx b/test/generated/XmiTestDeclaration.hxx index ef1d59e..c4829b7 100644 --- a/test/generated/XmiTestDeclaration.hxx +++ b/test/generated/XmiTestDeclaration.hxx @@ -1,4 +1,5 @@ // Statemachine XmiTest declaration +// Generated: 25.01.24, 21:47 #pragma once diff --git a/test/generated/XmiTestInstance.hxx b/test/generated/XmiTestInstance.hxx index 2c29fc6..ed595e6 100644 --- a/test/generated/XmiTestInstance.hxx +++ b/test/generated/XmiTestInstance.hxx @@ -1,4 +1,7 @@ // Statemachine XmiTest instance +// Generated: 25.01.24, 21:47 + +#pragma once // Override the following defines according to your needs if you are not using cpp_event_framework: