I am trying to extract information from the vertex buffer (for example, the position, texture, normal values) but I can't seem to figure out how to get the arrays for each of the desired elements. Through another thread post, I got the following code

desiredElems.pushBack ( hkxVertexDescription::HKX_DU_POSITION );

desiredElems.pushBack ( hkxVertexDescription::HKX_DU_NORMAL );

desiredElems.pushBack ( hkxVertexDescription::HKX_DU_TANGENT );

desiredElems.pushBack ( hkxVertexDescription::HKX_DU_BINORMAL );

desiredElems.pushBack ( hkxVertexDescription::HKX_DU_COLOR );

desiredElems.pushBack ( hkxVertexDescription::HKX_DU_TEXCOORD );

const hkClass* pClass = hkxVertexDescription::getBuiltInVertexClass(desiredElems, classElems);

Now I don't know what to do with pClass. Do I cast it some other class? How do I know what class that is? The other thread's started said something about hkxVertexP4N4T4B4C1T2 class. I get the name of the new hkClass as that, but how do I get each of the arrays (position, texture, normal) from the hkclass? I tried to use getDeclaredMember(i) but don't know what to do with the variant. I am still looking over other functions in the hkclass to see if one of them will return the data. I searched the documenation and there is nothing relating to this problem.

Any help would be appreciated. Thanks in advance.