#include <cdevCollection.h>

void main ( void )
{
/**************************************************************
 * Attach to a cdevCollection device and then 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) must be deleted by
 * the caller.
 **************************************************************/
cdevCollection & cDevice1 = cdevCollection::attachRef("cDevice1");

char ** list = cDevice1.getList();
for(char **s = list; *s!=NULL; s++) printf("%s\n", *s);
delete list;
}
