Ignore:
Timestamp:
03/02/11 01:44:16 (3 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
6ceaa13542b467cc96ac23a26920312a7075c442
Message:

Most C++ classes which are exported through the new modules now show the "correct" names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/pyxtract/pyxtractstructures.py

    r6538 r7715  
    5959     
    6060 
    61 def addClassDef(cds, typename, parsedFile, str="", val=1, warn=1): 
     61def addClassDef(cds, typename, parsedFile, str="", val=1, warn=1, displayname=None): 
    6262  """ 
    6363  If class is not been encountered yet, it creates a new class definition. 
     
    6868  if not cds.has_key(typename): 
    6969    if str: 
    70       cds[typename]=apply(ClassDefinition, (), {str:val, 'infile':parsedFile}) 
     70      cds[typename]=ClassDefinition(**{str:val, 'infile':parsedFile}) 
    7171    else: 
    7272      cds[typename]=ClassDefinition(infile=parsedFile) 
     
    7777    if parsedFile and cds[typename].infile!=parsedFile: 
    7878      print ("Warning: %s appears in different files (%s, %s)" % (typename, cds[typename].infile, parsedFile)) 
     79  if displayname: 
     80      cds[typename].displayname = displayname 
Note: See TracChangeset for help on using the changeset viewer.