Public Member Functions | |
def | __init__ |
def | build_substitutions |
def | generate_cmake |
def | generate_cpp_code |
def | generate_plugin_xml |
Private Member Functions | |
def | _substitute |
Static Private Attributes | |
_module_name = None | |
_product_id = None | |
dictionary | _substitutions = {} |
Generates a new RoNeX module driver using the templates.
Definition at line 21 of file generate_driver.py.
def generate_driver::DriverGenerator::__init__ | ( | self, | |
module_name, | |||
product_id | |||
) |
Definition at line 30 of file generate_driver.py.
def generate_driver::DriverGenerator::_substitute | ( | self, | |
line | |||
) | [private] |
Substitutes the values from the _substitutions dict in the given line @param line a line from the template @return the modified line
Definition at line 119 of file generate_driver.py.
Creates a dictionary for the substitutions needed in the templates.
Definition at line 54 of file generate_driver.py.
def generate_driver::DriverGenerator::generate_cmake | ( | self | ) |
Adds the cpp file to the cmake.
Definition at line 91 of file generate_driver.py.
def generate_driver::DriverGenerator::generate_cpp_code | ( | self, | |
template_path, | |||
new_file_path | |||
) |
Opens the cpp templates, do the proper substitutions and write the result to the correct file.
Definition at line 80 of file generate_driver.py.
Adds the required lines to the plugin xml
Definition at line 105 of file generate_driver.py.
generate_driver::DriverGenerator::_module_name = None [static, private] |
Definition at line 26 of file generate_driver.py.
generate_driver::DriverGenerator::_product_id = None [static, private] |
Definition at line 27 of file generate_driver.py.
dictionary generate_driver::DriverGenerator::_substitutions = {} [static, private] |
Definition at line 28 of file generate_driver.py.