33 #ifndef __UG__REGDOCU__CPP_GENERATOR_H
34 #define __UG__REGDOCU__CPP_GENERATOR_H
82 void generate_cpp_files();
95 void generate_class_group();
101 void generate_global_functions();
108 void generate_class_docu();
114 void generate_class_cpp();
124 void generate_class_constructors();
128 void generate_class_public_methods();
133 void generate_class_public_members();
147 template<
class TEntity >
148 void write_brief_detail_docu(
const TEntity &entity );
160 template<
class TFunction >
161 void write_parameter_docu(
const TFunction &
function );
175 template<
class TFunction >
176 void write_generic_function(
const TFunction &
function,
bool constant=
false );
181 void write_group_definitions();
199 template<
class TFunction >
200 string generate_parameter_list(
const TFunction &func );
228 inline string name_to_id(
const string& str );
248 inline string sanitize_parameter_name(
const string ¶m )
const;
258 inline string sanitize_docstring(
const string &docstring,
bool is_brief=
false );
267 inline string sanitize_docu(
const string ¶m_docu )
const;
274 vector<string> split_group_hieararchy(
const string group );
283 string write_group_namespaces( vector<string> group_hierarchy,
bool is_global_func=
false );
Definition: class_hierarchy_provider.h:51
Generator to produce valid but dummy C++ files from registered classes and functions.
Definition: cpp_generator.h:65
map< string, string > m_written_classes
Map for keeping track of already processed classes.
Definition: cpp_generator.h:308
ClassHierarchyProvider & mr_chp
Reference to a helper for retrieving the class group of a class.
Definition: cpp_generator.h:292
bool m_is_global
Whether the currently processed function is global.
Definition: cpp_generator.h:303
string m_curr_group_name
Name of current group as in ug4 itself (including namespaces)
Definition: cpp_generator.h:299
bridge::IExportedClass * m_curr_class
Pointer to the currently processed class (if applicable)
Definition: cpp_generator.h:295
string m_output_dir
Definition: cpp_generator.h:287
bool m_silent
Definition: cpp_generator.h:313
bridge::Registry & mr_reg
Reference to the registry (to save countless calls to ug::bridge::GetUGRegistry())
Definition: cpp_generator.h:290
bool m_is_plugin
Whether the currently processed class or function is registered by a plugin.
Definition: cpp_generator.h:301
bridge::ClassGroupDesc * m_curr_group
Pointer to the currently processed group (if applicable)
Definition: cpp_generator.h:297
fstream m_curr_file
Current file stream to write to.
Definition: cpp_generator.h:311