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

Class IceTrayInspectV2

source code

Instance Methods [hide private]
 
__init__(self, path, libdir) source code
 
GetMetaproject(self) source code
 
isService(self, servicename, dataString)
Returns: True if the parsed file is actually a service
source code
 
AddProjects(self, topdir, doc)
Load projects from icetray configuration file
source code
 
AddServices(self, docElement, project)
Load services from icetray configuration file
source code
 
AddEmptyProject(self, projectname) source code
 
InspectIceProdModules(self) source code
 
InspectProjects(self, i3work) source code
 
searchfile(self, cxxfile, project_modules)
search a file for relevant information to collect
source code
 
getdependencies(self, projectname)
Extract project dependencies from the CMakeLists.txt file
source code
 
getdependenciesmk(self, projectname)
Extract project dependencies from the project-config.mk file
source code
 
parse_val(self, ptype, value) source code
 
get_libpath(self, projname)
Determine the path to the library file that corresponds to a project
source code
 
readXML(self, file=None, index=0) source code
 
toXML(self, file=None)
Print parameter dictionary as an XML document
source code
 
getCache(self) source code
 
guessType(self, value)
Convert root types to python types and format type names to iceprod style
source code
 
fixType(self, type)
Convert root types to python types and format type names to iceprod style
source code
 
upload(self, url, username, password='')
Connect to database and upload contents of dictionary Requires module/class ParameterDB
source code
 
getversion(self, path)
Extract version tuple from project
source code
 
getmetaproject(self, rootdir)
Extract metaproject name and version tuple from metaproject
source code
Class Variables [hide private]
  colormap = {'failed': "\033[1;31m%s\033[m" % 'failed', 'ok': "...
Method Details [hide private]

isService(self, servicename, dataString)

source code 
Parameters:
  • dataString - string to be parsed
Returns:
True if the parsed file is actually a service

searchfile(self, cxxfile, project_modules)

source code 

search a file for relevant information to collect

Parameters:
  • cxxfile - name of header file to search

getdependencies(self, projectname)

source code 

Extract project dependencies from the CMakeLists.txt file

Parameters:
  • projectname - name of project

getdependenciesmk(self, projectname)

source code 

Extract project dependencies from the project-config.mk file

Parameters:
  • projectname - name of project

get_libpath(self, projname)

source code 

Determine the path to the library file that corresponds to a project

Parameters:
  • projname - the name of the project
Returns:
string path to library file

toXML(self, file=None)

source code 

Print parameter dictionary as an XML document

Returns:
string XML doc

getversion(self, path)

source code 

Extract version tuple from project

Parameters:
  • path - path to project directory
Returns:
string corresponding to project version

getmetaproject(self, rootdir)

source code 

Extract metaproject name and version tuple from metaproject

Parameters:
  • rootdir - root directory for meta-project source
Returns:
string corresponding to metaproject version

Class Variable Details [hide private]

colormap

Value:
{'failed': "\033[1;31m%s\033[m" % 'failed', 'ok': "\033[1;32m%s\033[m"\
 % 'ok', 'pass': "\033[1;33m%s\033[m" % 'pass',}