Back to index

salome-med  6.5.0
Classes | Functions | Variables
am2cmake Namespace Reference

Classes

class  CMakeFile

Functions

def convertAmFile
def usage

Variables

tuple p_multiline = re.compile(r"""\\ # One backslash\s* # 0 or more space\n # One CR""", re.VERBOSE)
tuple p_dollar = re.compile(r"""\$\( # a $ then a ((?P<val> # open the group val[^)]* # the group contain 0 or more non ) characters) # close the group\) # a ) at the end""", re.VERBOSE)
tuple p_arobas = re.compile(r"""@ # a @(?P<val> # open the group val[^@]* # the group contain 0 or more non @ characters) # close the group@ # a @ at the end""", re.VERBOSE)
tuple p_if = re.compile(r"""^ # beginning of the string\s* # 0 or more spaceif # an if\s+ # 1 or more space(?P<val> # open the group val.+ # the group contain 1 or more non space characters) # close the group""", re.VERBOSE)
tuple p_else = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceelse #\s* # 0 or more space""", re.VERBOSE)
tuple p_endif = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceendif # a endif\s* # 0 or more space""", re.VERBOSE)
tuple p_attribution = re.compile(r"""^ # beginning of the line(?P<spaces> # open the group spaces\s* # 0 or more space) # close the group(?P<key> # open the group key\w+ # the group contain 1 or more alphanumeric characters) # close the group\s* # 0 or more space(?P<method> # open the group method\+? # 0 or 1 += # One =) # close the group(?P<value> # open the group value.* # 0 or more any characters ) # close the group""", re.VERBOSE)
list module = argv[1]
tuple the_root = getcwd()
int nok = 0
string msg = "%s file has been converted to cmake"

Function Documentation

def am2cmake.convertAmFile (   the_root,
  root,
  dirs,
  files,
  f,
  module 
)

Definition at line 2245 of file am2cmake.py.

02245 
02246 def convertAmFile(the_root, root, dirs, files, f, module):
02247     cmake = CMakeFile(the_root, root, dirs, files, f, module)
02248     cmake.writeListsFile()
02249     return

def am2cmake.usage (   exit_status)

Definition at line 2250 of file am2cmake.py.

02250 
02251 def usage(exit_status):
02252     from sys import exit
02253     from sys import argv
02254     print "Usage: %s --module"%(argv[0])
02255     exit(exit_status)
02256     return

Here is the caller graph for this function:


Variable Documentation

list am2cmake.module = argv[1]

Definition at line 2264 of file am2cmake.py.

string am2cmake.msg = "%s file has been converted to cmake"

Definition at line 2307 of file am2cmake.py.

int am2cmake.nok = 0

Definition at line 2276 of file am2cmake.py.

tuple am2cmake.p_arobas = re.compile(r"""@ # a @(?P<val> # open the group val[^@]* # the group contain 0 or more non @ characters) # close the group@ # a @ at the end""", re.VERBOSE)

Definition at line 41 of file am2cmake.py.

tuple am2cmake.p_attribution = re.compile(r"""^ # beginning of the line(?P<spaces> # open the group spaces\s* # 0 or more space) # close the group(?P<key> # open the group key\w+ # the group contain 1 or more alphanumeric characters) # close the group\s* # 0 or more space(?P<method> # open the group method\+? # 0 or 1 += # One =) # close the group(?P<value> # open the group value.* # 0 or more any characters ) # close the group""", re.VERBOSE)

Definition at line 73 of file am2cmake.py.

tuple am2cmake.p_dollar = re.compile(r"""\$\( # a $ then a ((?P<val> # open the group val[^)]* # the group contain 0 or more non ) characters) # close the group\) # a ) at the end""", re.VERBOSE)

Definition at line 33 of file am2cmake.py.

tuple am2cmake.p_else = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceelse #\s* # 0 or more space""", re.VERBOSE)

Definition at line 59 of file am2cmake.py.

tuple am2cmake.p_endif = re.compile(r"""^ # beginning of the line\s* # 0 or more spaceendif # a endif\s* # 0 or more space""", re.VERBOSE)

Definition at line 66 of file am2cmake.py.

tuple am2cmake.p_if = re.compile(r"""^ # beginning of the string\s* # 0 or more spaceif # an if\s+ # 1 or more space(?P<val> # open the group val.+ # the group contain 1 or more non space characters) # close the group""", re.VERBOSE)

Definition at line 49 of file am2cmake.py.

tuple am2cmake.p_multiline = re.compile(r"""\\ # One backslash\s* # 0 or more space\n # One CR""", re.VERBOSE)

Definition at line 27 of file am2cmake.py.

tuple am2cmake.the_root = getcwd()

Definition at line 2274 of file am2cmake.py.