Example #1
0
def getIntegerFlagFromCharacterSplitLine(character, splitLine):
    "Get the integer flag after the first occurence of the character in the split line."
    lineFromCharacter = gcodec.getStringFromCharacterSplitLine(
        character, splitLine)
    if lineFromCharacter == None:
        return 0
    return 1
Example #2
0
def getIntegerFromCharacterLengthLineOffset( character, offset, splitLine, stepLength ):
	"Get the integer after the first occurence of the character in the split line."
	lineFromCharacter = gcodec.getStringFromCharacterSplitLine( character, splitLine )
	if lineFromCharacter == None:
		return 0
	floatValue = ( float( lineFromCharacter ) + offset ) / stepLength
	return int( round( floatValue ) )
Example #3
0
def getIntegerFromCharacterLengthLineOffset(character, offset, splitLine,
                                            stepLength):
    "Get the integer after the first occurence of the character in the split line."
    lineFromCharacter = gcodec.getStringFromCharacterSplitLine(
        character, splitLine)
    if lineFromCharacter == None:
        return 0
    floatValue = (float(lineFromCharacter) + offset) / stepLength
    return int(round(floatValue))
Example #4
0
def getIntegerFlagFromCharacterSplitLine( character, splitLine ):
	"Get the integer flag after the first occurence of the character in the split line."
	lineFromCharacter = gcodec.getStringFromCharacterSplitLine( character, splitLine )
	if lineFromCharacter == None:
		return 0
	return 1
Example #5
0
def getFloatFromCharacterSplitLine( character, splitLine ):
	"Get the float after the first occurence of the character in the split line."
	lineFromCharacter = gcodec.getStringFromCharacterSplitLine( character, splitLine )
	if lineFromCharacter == None:
		return None
	return float( lineFromCharacter )