The ITSystemNameList class
Base class: ITErrorManager
This class creates the system name list from the UNIX sqlhosts file or from the Windows registry entry under the HKEY_LOCAL_MACHINE\Software \Informix\SqlHosts key. After you create the system name list, you can traverse it with the NextSystemName() and PreviousSystemName() methods.
This class provides the following methods.
Method | Description |
---|---|
ITSystemNameList() | Constructs an ITSystemNameList object. |
ITBool Create() | Creates the system name list from the sqlhosts file (on UNIX) or from the registry entry under the HKEY_LOCAL_MACHINE\Software\Informix\sqlhosts key (on Windows). |
ITBool IsSystemName(const ITString &) | Returns TRUE if the name supplied as an argument appears in the system name list; FALSE if it does not. |
const ITString &NextSystemName() | Returns the reference to the next system name; returns ITString::Null if there is no next system name. |
const ITString &PreviousSystemName() | Returns the reference to the previous system name; returns ITString::Null if there is no previous system name. |
void Reset() | Resets the system name list to the state analogous to the one it was in immediately after the list was created. |