KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
swigInputBuilder Namespace Reference

Classes

class  SwigInputBuilder
 

Functions

 is_method_abstract (argstring)
 
 striphtmltags (s)
 
 trimToSingleSpace (text)
 
 getNodeText (node)
 
 getText (subNodePath, node)
 
 stripNSPrefix (name, rePattern=NS_RE_PATTERN)
 
 findNodes (parent, path, **args)
 
 getClassMethodList (classNode, skipMethods)
 
 docstringTypemap (cpptype)
 
 parseCommandLine ()
 
 main ()
 
 usageError ()
 

Variables

str __author__ = "Randall J. Radmer"
 
str __version__ = "1.0"
 
str INDENT = " "
 
dict docTags = {'emphasis':'i', 'bold':'b', 'itemizedlist':'ul', 'listitem':'li', 'preformatted':'pre', 'computeroutput':'tt', 'subscript':'sub', 'verbatim': 'verbatim'}
 
 NS_RE_PATTERN = re.compile("(.*)PROJECT_NS:[a-zA-Z0-9:]*:(.*)")
 
 out
 

Detailed Description

Build swig imput file from xml encoded header files (see gccxml).

Function Documentation

◆ docstringTypemap()

swigInputBuilder.docstringTypemap ( cpptype)
Translate a C++ type to Python for inclusion in the Python docstrings.
This doesn't need to be perfectly accurate -- it's not used for generating
the actual swig wrapper code. It's only used for generating the docstrings.

Definition at line 155 of file swigInputBuilder.py.

Referenced by swigInputBuilder.SwigInputBuilder.writeMethods().

Here is the caller graph for this function:

◆ findNodes()

◆ getClassMethodList()

swigInputBuilder.getClassMethodList ( classNode,
skipMethods )

Definition at line 120 of file swigInputBuilder.py.

References findNodes(), getText(), and stripNSPrefix().

Referenced by swigInputBuilder.SwigInputBuilder.writeFactories(), swigInputBuilder.SwigInputBuilder.writeForwardDeclarations(), and swigInputBuilder.SwigInputBuilder.writeMethods().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNodeText()

swigInputBuilder.getNodeText ( node)

Definition at line 68 of file swigInputBuilder.py.

References getNodeText().

Referenced by getNodeText(), getText(), swigInputBuilder.SwigInputBuilder.writeClassDeclarations(), and swigInputBuilder.SwigInputBuilder.writeMethods().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getText()

◆ is_method_abstract()

swigInputBuilder.is_method_abstract ( argstring)

Definition at line 22 of file swigInputBuilder.py.

Referenced by swigInputBuilder.SwigInputBuilder.writeMethods().

Here is the caller graph for this function:

◆ main()

swigInputBuilder.main ( )

Definition at line 749 of file swigInputBuilder.py.

References parseCommandLine().

Referenced by usageError().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseCommandLine()

swigInputBuilder.parseCommandLine ( )

Definition at line 723 of file swigInputBuilder.py.

References usageError().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ striphtmltags()

swigInputBuilder.striphtmltags ( s)
Strip a couple html tags used inside docstrings in the C++ source
to produce something more easily read as plain text.

Definition at line 25 of file swigInputBuilder.py.

Referenced by swigInputBuilder.SwigInputBuilder.writeClassDeclarations().

Here is the caller graph for this function:

◆ stripNSPrefix()

◆ trimToSingleSpace()

swigInputBuilder.trimToSingleSpace ( text)

Definition at line 56 of file swigInputBuilder.py.

Referenced by getText().

Here is the caller graph for this function:

◆ usageError()

swigInputBuilder.usageError ( )

Definition at line 764 of file swigInputBuilder.py.

References main().

Referenced by parseCommandLine().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ __author__

str swigInputBuilder.__author__ = "Randall J. Radmer"
private

Definition at line 3 of file swigInputBuilder.py.

◆ __version__

str swigInputBuilder.__version__ = "1.0"
private

Definition at line 4 of file swigInputBuilder.py.

◆ docTags

dict swigInputBuilder.docTags = {'emphasis':'i', 'bold':'b', 'itemizedlist':'ul', 'listitem':'li', 'preformatted':'pre', 'computeroutput':'tt', 'subscript':'sub', 'verbatim': 'verbatim'}

Definition at line 20 of file swigInputBuilder.py.

◆ INDENT

str swigInputBuilder.INDENT = " "

Definition at line 19 of file swigInputBuilder.py.

◆ NS_RE_PATTERN

swigInputBuilder.NS_RE_PATTERN = re.compile("(.*)PROJECT_NS:[a-zA-Z0-9:]*:(.*)")

Definition at line 99 of file swigInputBuilder.py.

◆ out

swigInputBuilder.out

Definition at line 32 of file swigInputBuilder.py.