Book a Demo

Author Topic: Executable States machine - files generation  (Read 3373 times)

YannM

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Executable States machine - files generation
« on: November 30, 2020, 09:33:12 pm »
Hi all,
When EA generates C files from an executable STM the following files :
  • ConsoleManager.c / ConsoleManager.h
  • ContextManager.c / ContextManager.h
  • SimulationManager.c / SimulationManager.h
  • StmCommonForwardDeclaration.h
  • STM.c / STM.h
Is it possible to create an additional header file containing data that will be generated from EA  ?

For example I would like that the enum of the states is in this particular file, that will be included in ContextManager.h.

Best regards,


Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Executable States machine - files generation
« Reply #1 on: December 06, 2020, 08:15:08 pm »
Hi Yann,

I'm not 100% on this but I would say probably not.
While you can modify regular code generation templates, the ones for an executable state machine are not accessible for modification and there are no options that relate to the code structure.

/Uffe
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Executable States machine - files generation
« Reply #2 on: January 11, 2021, 08:50:26 am »
The executable state machine specific templates are in the code template editor as a language Stm_<Language>_Structured. However the templates do not provide a mechanism to create new files.