Copyright © 1997 The California Institute of Technology
All rights reserved.

Class: FeiDomain


For more information on the class, see the header file: FeiDomain.h


void FeiDomain::closeDomain ()

Close the domain file if it's open. Use this method if you're done using the domain or before opening a new domain.


int FeiDomain::editServerList (char *fileTypeInfo)

Re-arrange the serverInfo list in the order specified by the file type. Get rid of un-necessary server information. Parses fileTypeInfo, a line already read in from the domain file, and fixes the server info list.


FeiDomain::~FeiDomain ()

Free any space allocated before deallocating the object. If the domain file is open, close it.


void FeiDomain::freeServerList (ServerInfo *serverList)

Frees up a server list. Used both in FeiDomain's destructor, and used to free up un-used server entries when editing a server list in the constructor.


inline const char *FeiDomain::getDomainPath ()

Returns the expaned path for the domain file.


inline const char *FeiDomain::getMsg ()

Returns the last error message associated with the object. If there is none, returns (const char *)NULL.


int FeiDomain::getServerInfo (const char *serverList)

Put the information contained in the serverInfo string into serverList.


inline int FeiDomain::getStatus ()

Returns the status value associated with the object. See
int FeiDomain::moveServerInfo (const char *serverName, int position)

Relocate an serverInfo entry, if necessary, to a particular position in a list.


char *FeiDomain::nextPhrase (const char **p)

Get the next phrase (a printable character other than white space), and return it is a reference of const char type. If no phrase is found, return (const char *)NULL. Note: This method takes a pointer to a char pointer as its argument. Once the phrase is found, the supplied pointer references the first byte following the phrase found.


int FeiDomain::openDomain ()

Get the value of the environmental variable FEI. The value is the path to the directory holding the FEI domain files. Look in that directory for the domain file, open it and return a FILE pointer to it.


int FeiDomain::printAllFileTypes (FILE *outputFp)

Prints all files types in a domain. File types are listed in two columns. If a file pointer is not supplied, stderr is used.


void FeiDomain::printServerInfoTable (FILE *outputFp)

Print the file type and then the netInfo for each server in list format. If a file pointer is not supplied, stderr is used.

If you want to display this information in a GUI window, use the method getNextServerInfo to return the net information one row at a time and format the content as you like.


int FeiDomain::reOpenDomain ()

Open the fully specified domain file. Restart does not use the current environmental variable FEI, but remembers the state of FEI at the time a subscription, livelist, or notify as originally started.