[0.1.x] added : method type() for typedVar class ( return a typeInfo of the typedVar )

git-svn-id: https://pykd.svn.codeplex.com/svn@76523 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-05-22 13:25:24 +00:00 committed by Mikhail I. Izmestev
parent c7f4c24489
commit 580e4837d5

View File

@ -553,6 +553,8 @@ BOOST_PYTHON_MODULE( pykd )
"Retrieves the variable classification of a data: DataIsXxx") "Retrieves the variable classification of a data: DataIsXxx")
.def("deref", &TypedVar::deref, .def("deref", &TypedVar::deref,
"Return value by pointer" ) "Return value by pointer" )
.def("type", &TypedVar::getType,
"Return typeInfo instance" )
.def("__getattr__", &TypedVar::getField, .def("__getattr__", &TypedVar::getField,
"Return field of structure as an object attribute" ) "Return field of structure as an object attribute" )
.def( "__str__", &TypedVar::print ) .def( "__str__", &TypedVar::print )