[pygccxml-development] Getting a constructor's initialization list?
Brought to you by:
mbaas,
roman_yakovenko
|
From: P. J. R. <pr...@sw...> - 2008-07-28 20:35:59
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Let's say that I have a class definition and implementation that look
something like this:
class Test {
Test();
int a, b;
};
Test::Test():
a( 1 ),
b( 2 )
{}
I'd like to use pygccxml to get the values in the intialization list in
the constructor -- that is, I want to find out that it's setting "a" to
1 and "b" to 2. I can't quite figure out how to do this. I would
assume that there would be some member method of constructor_t that I
could use to read it, but I don't see it.
Is there some way to do this that I'm missing? If it's not currently
possible, would it be difficult to add that in?
Thanks!
- --
P. J. Reed
Southwest Research Institute
Signal Exploitation & Geolocation Division
Research Analyst
(210) 522-6948
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIji2zBhzuKzQK4BYRCAe3AKDgl780AY8uwK4NiyEz+rAoIu+5wACdEXob
NJojYbO/DkYW4E/hJFLOEQs=
=7H5Y
-----END PGP SIGNATURE-----
|