Hi,
I'm having the following structures and std::list of that structs.
I need to read the list of list as below and build a buffer as a table information.
Any idea on how to build a table info (string buffer).
list<NVPairsWithId> m_ResponseObj;
struct NVPairsWithId
{
string m_id;
list<NVObject> m_NVPairs;
};
struct NVObject
{
string m_name;
string m_value;
};
This is how the data in it will be, (kind of each and every row information)
m_id=100
m_name=c1, m_name=c2
m_value=r1, m_value=r1
m_id=200
m_name=c1, m_name=c2
m_value=r2, m_value=r2
This, I need to traverse the list of list and build the buffer as
id c1 c2
100 r1 r1
200 r2 r2
Please help me out on this.
Thanks