[Codemill-spec] Re: Codemill spec
Status: Planning
Brought to you by:
richard_kolb
|
From: John L. <ja...@al...> - 2000-12-04 22:03:38
|
> The command line interface should properly look +- like this :
> "codemill -c NewClass -d DeriveClass -I./ -t template.5 -o output.cc
> output.h"
> Where -c is the class to create
> -d for the class to derive from
> -I for the search paths
> -t coding standard to use.
> -o the output files to create the class in.
>
> This would look for file template.5 in the codemill template directory
> and generate a class to the users coding standards.
I would suggest -b instead of -d, since the standard terminology is "base
class".
Also, to allow it to be used via make, which is the easiest way to specify
the include paths, I would suggest the same syntax as makedepend:
codemill -- <garbage> -I./ <garbage> -DMY_DEFINE <garbage> -- -c
NewClass -b BaseClass -t template.5 -o output.cc output.h
This allows one to dump ${CPPFLAGS} between the --'s. This also brings up
the point that many people use preprocessor symbols in the class
declarations to allow the code to compile on UNIX/Win/Mac. This means that
-D also has to be parsed when it occurs between the --'s.
John
|