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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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()
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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()
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!