Package iceprod :: Package core :: Module inspectv2
[hide private]
[frames] | no frames]

Module inspectv2

source code

A class for parsing an IceTray XML configuration and building a Python IceTrayConfig object.

copyright (c) 2005 the icecube collaboration


Version: $Revision: $

Date: $Date: 2005/04/06 17:32:56 $

Author: Juan Carlos Diaz Velez <juancarlos@icecube.wisc.edu>

Classes [hide private]
  IceTrayInspectV2
  IceTrayInspectV3
Functions [hide private]
 
isfloat(s) source code
 
mkid() source code
 
getplatform()
Get platform information from system and format it according to icetray standard
source code
 
strip_name(name)
Create a default name for a class
source code
 
getfilelist(rootdir, project)
Get list of cxx files in <project>/private/<project>/
source code
 
getheaderfile(project, module) source code
Variables [hide private]
  SupportedTypes = ['bool', 'int', 'long', 'float', 'double', 's...
  VectorTypes = ['boolv', 'intv', 'longv', 'floatv', 'doublev', ...
  UnmetDependencyException = "Error: Un-met dependency:"
  fileregex = r'[^/]+/private/[^/]+/[^\.]+\.cxx'
  REGEX = r'AddParameter\s*\([^\)]*\);'
  SERVICEREGEX = r'[a-zA-Z0-9_]*.*InstallService\(.*\)'
  DNREGEX = r'DefaultName\s*\(\s*i\)\s*{.+}'
  I3LIB_REGEX = re.compile(r'i3_add_library\s*\((.*\n)*')
  DEPENDENCY_REGEX = re.compile(r'USE_PROJECTS\s*[^\)]+')
  Types = ['short', 'int', 'long', 'double', 'float', 'bool', 's...
  NAMELEN = 22
  default_value_table = {'int': '0', 'long': '0', 'string': '-',...
  _gid_ = -1
Function Details [hide private]

getplatform()

source code 

Get platform information from system and format it according to icetray standard

Returns:
plaform string

strip_name(name)

source code 

Create a default name for a class

Parameters:
  • name - of module
Returns:
string default name for module

getfilelist(rootdir, project)

source code 

Get list of cxx files in <project>/private/<project>/

Parameters:
  • rootdir - top directory for search
Returns:
list of files

Variables Details [hide private]

SupportedTypes

Value:
['bool', 'int', 'long', 'float', 'double', 'string', 'OMKey']

VectorTypes

Value:
['boolv', 'intv', 'longv', 'floatv', 'doublev', 'stringv', 'OMKeyv']

Types

Value:
['short', 'int', 'long', 'double', 'float', 'bool', 'string', 'char']

default_value_table

Value:
{'int': '0', 'long': '0', 'string': '-', 'double': '0.0', 'float': '0.\
0', 'NaT': 'NaN', 'bool': 'False'}