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