Menu

names of classes

Macbodo
2011-09-27
2013-06-05
  • Macbodo

    Macbodo - 2011-09-27

    I found this parser really interesting for what i need to do…

    But I had a problem to start: how can I get names of classes?

    In example, names of classes are known but if we donnot know names of classes? How can we use this parser ti be able to get methods of each classes, without know names of classes?

     
  • Jashua Cloutier

    Jashua Cloutier - 2011-09-27

    You should be able to inspect it as a dictionary where the classes found in the file are the keys.  Based on the example file you should be able to see what classes are available with something like

    cppHeader.classes.keys()

     
  • Macbodo

    Macbodo - 2011-09-28

    Oh thanks exactely!!

    I was trying to find a way with fonction of the module or to do a "grep" on the file… but "cppHeader.classes.keys()" is the good methods (and also faster ;) )

    Just what I missed… Thank for the module!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.