RulbusDeviceFactory Class Reference

#include <RulbusDeviceFactory.h>

List of all members.


Detailed Description

Class RulbusDeviceFactory creates the Rulbus devices as specified in a Rulbus configuration file and adds them to TheRulbusDeviceList.

RulbusDeviceFactory uses class ConfigParser to process and check a Rulbus configuration file.

The name of the Rulbus configuration file to process is determined as follows and in the order given:

  1. contents of the rulbus_config_file argument of createDevices()
  2. contents of the RULBUS_CONFIG_FILE environment variable
  3. the file rulbus.conf in the current directory
  4. the file C:\etc\rulbus.conf

If the argument is not specified or specified as the empty string, the contents of the environment variable RULBUS_CONFIG_FILE is used as the name of the configuration file to read.

If the name is an empty string or the RULBUS_CONFIG_FILE environment variable does not exist, createDevices() tries to open file rulbus.conf in the current directory and if that fails it tries file C:\etc\rulbus.conf.

If createDevices() fails to open a specified file, or it fails to open one of the default files if no file has been specified, it throws RulbusConfigError.


Static Public Member Functions

void createDevices (String rulbus_config_file="")
 create the Rulbus devices from the configuration file specified by the rulbus_config_file argument, or else by the RULBUS_CONFIG_FILE environment variable.

void destroyDevices ()
 remove all Rulbus devices from the list and delete them, clear the list.


Protected Member Functions

 RulbusDeviceFactory ()
 prevent instantiation

 RulbusDeviceFactory (RulbusDeviceFactoryCref)
 prevent copying


The documentation for this class was generated from the following files:
Generated on Tue Oct 12 14:12:05 2004 for Rulbus Device Class Library for Microsoft Windows by doxygen 1.3.4