module EasySwig

Public Class Methods

doxygen(config = EasySwig::Config.new) click to toggle source

Parses header files (.h) and generates intermediate XML representation using Doxygen (Doxyparser) For more information consult Doxyparser documentation {Doxyparser::gen_xml_docs} @param [Config] config optional configuration for personalized settings. If nothing given, {Config} defaults used

# File lib/easy-swig.rb, line 47
def doxygen(config = EasySwig::Config.new)
  task = DoxygenTask.new(config)
  task.generate
  task.dispose
end
generate(config = EasySwig::Config.new) click to toggle source

Generates SWIG Interface Files (.i) from Doxygen intermediate XML representation.

This process is configured using a specially crafted CSV file (see documentation),
A subdirectory for every found namespace is created and here are saved the generated .i swig files

@param [Config] config optional configuration for personalized settings. If nothing given, {Config} defaults used

# File lib/easy-swig.rb, line 57
def generate(config = EasySwig::Config.new)
  task = GenerateTask.new(config)
  task.generate
  task.dispose      
end
swig(config = EasySwig::Config.new) click to toggle source

Runs SWIG against the specified target interface files (.i) And generated wrappers in the output directory (see {Config}) @param [Config] config optional configuration for personalized settings. If nothing given, {Config} defaults used

# File lib/easy-swig.rb, line 65
def swig(config = EasySwig::Config.new)
  task = SwigTask.new(config)
  task.run_swig
  task.dispose
end