38 set<string> uniqueServerNames, uniqueApplicationNames;
39 for (
unsigned long i = 1; i <= deviceCount; ++i)
42 if (device.serverName && strlen(device.serverName))
43 uniqueServerNames.insert(device.serverName);
44 if (device.applicationName && strlen(device.applicationName))
45 uniqueApplicationNames.insert(device.applicationName);
48 if (!uniqueServerNames.empty())
49 for (set<string>::iterator it = uniqueServerNames.begin(); it != uniqueServerNames.end(); ++it)
57 if (!uniqueApplicationNames.empty())
58 for (set<string>::iterator it = uniqueApplicationNames.begin(); it != uniqueApplicationNames.end(); ++it)