ref class Field
{
public:
String^ name;
int numBits;
String^ description;
};
ref class Message
{
public:
// Other members
List<Field^>^ fields;
};
ref class TeleCommand
{
public:
// other members
List<Message^>^ messages;
};
// then your list of commands
List<TeleCommand^>^ teleCommands;
I think this kind of datastructure will solve your issue, also these are handles to the reference, so you can add more items using the Add method like teleCommands->messages->Add( gcnew Message()) Thanks Radhakrishnan G.
modified on Wednesday, November 3, 2010 12:13 AM