The ITDBNameList class

Base class: ITErrorManager

Encapsulates the list of database names. Obtain the list by calling the Create() function. After the list is created, applications can use NextDBName() and PreviousDBName() to traverse it.

This class provides the following methods.
Method Description
ITDBNameList() Creates an instance of ITDBNameList.
ITBool Create() Creates a list of all databases for all systems in DBPATH and INFORMIXSERVER.
ITBool Create(const ITString &) Creates a list of all databases for a system with the specified name.
ITBool Create (ITConnection &) Creates a list of all databases corresponding to the connection.
ITBool IsDBName(const ITString &) Returns TRUE if the name supplied as an argument appears in the database name list; FALSE if it does not.
const ITString &NextDBName() Returns the reference to the next database name; returns ITString::Null if there is no next database name.
const ITString &PreviousDBName() Returns the reference to the previous database name; returns ITString::Null if there is no previous database name.
void Reset() Resets the database list name to the state it was in immediately after the list was created.