#include <RulbusDeviceFactory.h>
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:
RULBUS_CONFIG_FILE
environment variablerulbus.conf
in the current directoryC
:\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 |