IODA Bundle
fwrap Namespace Reference

Functions

def formatParameter (typ, name)
 
def declarations (source_cc='odbql.cc')
 
def constants (source_h='odbql.h')
 
def evaluated_expression (s)
 
def translate_value_and_comment (value_and_possibly_comment)
 
def generateParameter (define)
 
def generateParameters (defs)
 
def normalize_type (t)
 
def parseParam (p)
 
def parseDeclaration (decl)
 
def translate_type_for_binding (t)
 
def translate_type_for_binding_return (t)
 
def translate_type_for_fortran (t)
 
def translate_type_for_fortran_return (t)
 
def fortranParamTypeDeclaration (p, translate_type=translate_type_for_binding)
 
def parameter_type (p)
 
def parameter_name (p)
 
def actual_parameter (p)
 
def generateWrapper (signature, comment, template)
 
def generateWrappers (decls, header, footer, template)
 
def generateBindings (source_cc='../odb_api/odbql.cc', source_h='../odb_api/odbql.h', binding_f90='../fortran/odbql_binding.f90', wrappers_f90='../fortran/odbql_wrappers.f90', constants_f90='../fortran/odbql_constants.f90')
 

Variables

int PARAM_TYPE_COLUMN = 43
 
dictionary CONSTANTS = {}
 
string nl_indent = '\n '
 
string helper_functions
 
string status_handling_code
 

Function Documentation

◆ actual_parameter()

def fwrap.actual_parameter (   p)

Definition at line 233 of file fwrap.py.

Here is the caller graph for this function:

◆ constants()

def fwrap.constants (   source_h = 'odbql.h')

Definition at line 23 of file fwrap.py.

Here is the caller graph for this function:

◆ declarations()

def fwrap.declarations (   source_cc = 'odbql.cc')

Definition at line 13 of file fwrap.py.

Here is the caller graph for this function:

◆ evaluated_expression()

def fwrap.evaluated_expression (   s)

Definition at line 32 of file fwrap.py.

Here is the caller graph for this function:

◆ formatParameter()

def fwrap.formatParameter (   typ,
  name 
)

Definition at line 8 of file fwrap.py.

Here is the caller graph for this function:

◆ fortranParamTypeDeclaration()

def fwrap.fortranParamTypeDeclaration (   p,
  translate_type = translate_type_for_binding 
)

Definition at line 179 of file fwrap.py.

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

◆ generateBindings()

def fwrap.generateBindings (   source_cc = '../odb_api/odbql.cc',
  source_h = '../odb_api/odbql.h',
  binding_f90 = '../fortran/odbql_binding.f90',
  wrappers_f90 = '../fortran/odbql_wrappers.f90',
  constants_f90 = '../fortran/odbql_constants.f90' 
)

Definition at line 321 of file fwrap.py.

Here is the call graph for this function:

◆ generateParameter()

def fwrap.generateParameter (   define)

Definition at line 59 of file fwrap.py.

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

◆ generateParameters()

def fwrap.generateParameters (   defs)

Definition at line 79 of file fwrap.py.

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

◆ generateWrapper()

def fwrap.generateWrapper (   signature,
  comment,
  template 
)

Definition at line 244 of file fwrap.py.

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

◆ generateWrappers()

def fwrap.generateWrappers (   decls,
  header,
  footer,
  template 
)

Definition at line 311 of file fwrap.py.

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

◆ normalize_type()

def fwrap.normalize_type (   t)

Definition at line 89 of file fwrap.py.

Here is the caller graph for this function:

◆ parameter_name()

def fwrap.parameter_name (   p)

Definition at line 231 of file fwrap.py.

◆ parameter_type()

def fwrap.parameter_type (   p)

Definition at line 230 of file fwrap.py.

Here is the caller graph for this function:

◆ parseDeclaration()

def fwrap.parseDeclaration (   decl)

Definition at line 108 of file fwrap.py.

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

◆ parseParam()

def fwrap.parseParam (   p)

Definition at line 91 of file fwrap.py.

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

◆ translate_type_for_binding()

def fwrap.translate_type_for_binding (   t)

Definition at line 122 of file fwrap.py.

◆ translate_type_for_binding_return()

def fwrap.translate_type_for_binding_return (   t)

Definition at line 139 of file fwrap.py.

Here is the caller graph for this function:

◆ translate_type_for_fortran()

def fwrap.translate_type_for_fortran (   t)

Definition at line 151 of file fwrap.py.

◆ translate_type_for_fortran_return()

def fwrap.translate_type_for_fortran_return (   t)

Definition at line 168 of file fwrap.py.

Here is the caller graph for this function:

◆ translate_value_and_comment()

def fwrap.translate_value_and_comment (   value_and_possibly_comment)

Definition at line 40 of file fwrap.py.

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

Variable Documentation

◆ CONSTANTS

dictionary fwrap.CONSTANTS = {}

Definition at line 6 of file fwrap.py.

◆ helper_functions

string fwrap.helper_functions

Definition at line 186 of file fwrap.py.

◆ nl_indent

string fwrap.nl_indent = '\n '

Definition at line 184 of file fwrap.py.

◆ PARAM_TYPE_COLUMN

int fwrap.PARAM_TYPE_COLUMN = 43

Definition at line 5 of file fwrap.py.

◆ status_handling_code

string fwrap.status_handling_code
Initial value:
1 = """
2 if (present(status)) then
3  status = rc ! let user handle the error
4 else
5  if (rc /= ODBQL_OK .and. rc /= ODBQL_ROW .and. rc /= ODBQL_DONE .and. rc /= ODBQL_METADATA_CHANGED) then
6  write (0,*) 'Error in %(function_name)s'
7  stop
8  end if
9 end if
10 """

Definition at line 218 of file fwrap.py.