Hi
I want to know what kind of syntax (macro) you use to write down names of header file in style_*.h. For example when I compile the LIGGGHTS,
#include "run.h"
is written in the file, style_command.h to execute run.command(). I wonder how it is made.
Thanks.
Masa
ckloss | Sun, 08/05/2012 - 14:09
Hi Masa, the style_*.h files
Hi Masa,
the style_*.h files are auto-generated upon compilation. The name of the commands is defined in the header files, e.g. in run.h:
CommandStyle(run,Run)
This associates command "run" with the C++ class "Run"
Cheers, Christoph
Masayuki | Sun, 08/05/2012 - 17:09
What syntax do you exactly use to generate style_*.h?
Thanks for replying rapidly.
I want to know about "auto-generated upon compilation". Please tell me where and how style_*.h are generated, because before
CommandStyle(run,Run)
is executed,
style_command.h should be generated.
Thanks,
Masa
ckloss | Sun, 08/05/2012 - 19:44
style_*.h files are
style_*.h files are autogenerated by the makefile.
>>because before CommandStyle(run,Run) is executed, style_command.h should be generated.
no, style_command.h is put together from all "CommandStyle(xxx,XXX)" statements in header files.
As a user, all you need to do to add a new command is to add a "CommandStyle(xxx,XXX)" statement in your header file - no need for further manipulation
Cheers, Christoph
Masayuki | Sun, 08/05/2012 - 21:44
Thanks
I see, it is executed in the makefile.
Thank you so much for your really good advices and rapid answers.
Masa.