Public Member Functions | Private Member Functions | Static Private Attributes
generate_driver::DriverGenerator Class Reference

List of all members.

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 = {}

Detailed Description

Generates a new RoNeX module driver using the templates.

Definition at line 21 of file generate_driver.py.


Constructor & Destructor Documentation

def generate_driver::DriverGenerator::__init__ (   self,
  module_name,
  product_id 
)

Definition at line 30 of file generate_driver.py.


Member Function Documentation

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.

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.


Member Data Documentation

Definition at line 26 of file generate_driver.py.

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.


The documentation for this class was generated from the following file:


sr_ronex_drivers
Author(s): Ugo Cupcic, Toni Oliver, Mark Pitchless
autogenerated on Thu Jun 6 2019 21:22:01