Boost logo

Boost Users :

Subject: [Boost-users] Getting metadata of class
From: Alex Vinokur (alexvn_at_[hidden])
Date: 2009-12-11 12:45:47


Hi,

Does Boost contain any features to get metadata of classes?

For instance,

Let Foo be some class

class Foo
{
   int m_var1;
   long* m_var2]
   char m_var3[100];
   dooble m_var4;
};

I would like to get the following info (as vector, file, etc) of its
members:

{" m_var1", "int", sizeof (m_var1), offset of (m_var1) },
{" m_var2", "long", "Pointer", sizeof (m_var2), sizeof (base-variable, i.e.,
long), offset of (m_var2 },
{" m_var3, "char", "array", sizeof (m_var3), sizeof (base-variable, i.e.,
char), offset of (m_var3 },
{" m_var4", "double", sizeof (m_var4), offset of (m_var4) },

That info I would like to get as a result of some feature (function, ...)
applied to class Foo, not to each member of Foo.

Alex.

 


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net