23 #ifndef __PLUGINS_GENERATOR_H_ 24 #define __PLUGINS_GENERATOR_H_ 36 std::string year, std::string creation_date,
37 std::string plugin_name, std::string description
54 std::string _plugin_name;
55 std::string _plugin_name_underscore;
56 std::string _class_name_thread;
57 std::string _class_name_plugin;
58 std::string _description;
59 std::string _filename_thread_cpp;
60 std::string _filename_thread_h;
61 std::string _filename_plugin_cpp;
62 std::string _filename_makefile;
63 std::string _deflector;
66 std::string _creation_date;
std::string format_class_name(std::string plugin_name, std::string append)
Format a lowercase plugin name to CamelCase class.
void write_thread_h(FILE *f)
Write h file.
void write_thread_cpp(FILE *f)
Write cpp file.
void write_plugin_cpp(FILE *f)
Write plugin cpp file.
std::string replace_dash_w_undescore(std::string source)
Replace dash with underscore.
void write_makefile_header(FILE *f)
Write makefile header.
void generate()
Generator cpp and h files.
PluginGenerator(std::string directory, std::string author, std::string year, std::string creation_date, std::string plugin_name, std::string description)
Constructor.
void write_header(FILE *f, std::string filename)
Write header to file.
Generate basic plugins from minimal input.
~PluginGenerator()
Destructor.
void write_makefile(FILE *f)
Write Makefile.
void write_deflector(FILE *f)
Write header deflector.