Using ITSystemNameList

The following excerpts from sysname.cpp illustrate the use of ITSystemNameList.
  1. The Create() method creates the system name list by looking into the sqlhosts file (on UNIX™) or from the registry entry under the HKEY_LOCAL_MACHINE\Software\Informix\sqlhosts key (on Windows™).
    ITSystemNameList list;
    ITBool created = list.Create();
  2. The system name list is displayed by the ITSystemNameList::NextSystemName() method.
    while (ITString::Null != (current = list.NextSystemName()))
        {
        cout << current << "\tALWAYS_DIFFERENT" << endl;
        last = current;
        }