#include <cdevCollection.h>

void main ( void )
{
/**************************************************************
 * Attach to the cdevCollection "brandNew" and add four device
 * names to it.
 **************************************************************/
cdevCollection & brandNew = cdevCollection::attachRef("brandNew");
brandNew.add(4, "device0", "device1", "device2", "device3");

/**************************************************************
 * Use the getList method to obtain the array of names that are
 * currently stored in the cdevCollection and display them.  
 * Note that the list (not the list items) msut be deleted by
 * the caller.
 **************************************************************/
char ** list = brandNew.getList();
for(char **s = list; *s!=NULL; s++) printf("%s\n", *s);
delete list;
}
