Skip to content

Commit

Permalink
fixed a bug where a forward declaration was identified as a class
Browse files Browse the repository at this point in the history
  • Loading branch information
xrubio committed Oct 27, 2014
1 parent 0f516bd commit 539156c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/generateMpi.py
Expand Up @@ -346,8 +346,8 @@ def getAttributesFromClass( className, attributesMap, vectorAttributesMap):
addVectorAttribute( line, vectorAttributesMap )
elif line.find(keyString) != -1:
addStringAttribute( line, attributesMap )
# parse base class
elif line.find('class') != -1 and line.find(className) != -1:
# parse base class, it must inherit from Agent
elif line.find('class') != -1 and line.find(className) != -1 and line.find('public') != -1:
splittedLine = line.rsplit()
parentName = splittedLine[len(splittedLine)-1]
# remove namespace in case it exists
Expand Down

0 comments on commit 539156c

Please sign in to comment.