Book a Demo

Author Topic: Generation of multiple source files  (Read 2667 times)

cdow

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Generation of multiple source files
« on: June 02, 2006, 05:50:14 am »
I am a newbie to EA, and I have been playing around with Custom Language and Custom Templates.  How do I configure EA to generate multiple file types?  I know the C++ template will generate a *.cpp and *.h files, but how do I do the same for a custom language?  Also can I generate other files from the C++ template (e.g. *.dat) in addition to the header and implementation files?

thomaskilian

  • Guest
Re: Generation of multiple source files
« Reply #1 on: June 02, 2006, 02:26:30 pm »
I'm quite sure that you can only generate only one file per class since there is only one property holding the filename. Someone might proof me to be wrong, though.

cdow

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Generation of multiple source files
« Reply #2 on: June 05, 2006, 10:49:31 am »
There is a way to generate multiple files, because the C++ generator will generate .h files and .cpp files.  It may just be that the API to create the files is not accessable when executing the Template 'code'.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generation of multiple source files
« Reply #3 on: June 05, 2006, 03:08:23 pm »
It's only possible to generate two files (header and implementation) for C++, it is not supported for any other language.  It is also not possible to generate extra files in addition to the files already defined.