DirectOutputR1
DirectOutput framework R1 for virtual pinball cabinets.
|
Go to: Overview |
Global configuration for the DirectOutput framework.
More...
Public Member Functions | |
FileInfo | GetCabinetConfigFile () |
FileInfo object for the file containing the configuration of the cabinet (outputs, toys and so on). More... | |
DirectoryInfo | GetCabinetConfigDirectory () |
Gets the cabinet config directory. More... | |
List< FileInfo > | GetTableScriptFiles (string FullTableFilename) |
Gets the list of table script files. More... | |
FileInfo | GetTableConfigFile (string FullTableFilename) |
Gets a FileInfo object for the table config file. The file is lookued up using the list of the property TableConfigFilePatterns. If more than one file matches the search patterns, only the first file is returned. More... | |
string | GetLogFilename (string TableFilename="", string RomName="") |
Gets the log filename based on the LogFilePattern with replaced placeholders. More... | |
List< FileInfo > | GetGlobalScriptFiles () |
Gets an list of FileInfo objects for the global script files. If no script files are found or if a error occurs when looking for the script files a empty list is returned. The script files are looked up using the value of the property GlobalScriptFilePatterns. More... | |
string | GlobalConfigDirectoryName () |
Path to the directory where the global config is stored (readonly). More... | |
DirectoryInfo | GetGlobalConfigDirectory () |
Gets a DirectoryInfo object for the global config directory. More... | |
FileInfo | GetGlobalConfigFile () |
Gets a FileInfo object for the global config file. More... | |
string | GetGlobalConfigXml () |
Returns a serialized XML representation of the global configuration. More... | |
void | SaveGlobalConfig (string GlobalConfigFilename="") |
Saves the GlobalConfig to the file specified in GlobalConfigFilename. Before saving the current global config file is backed up. More... | |
GlobalConfig () | |
Initializes a new instance of the GlobalConfig class. More... | |
Static Public Member Functions | |
static GlobalConfig | GetGlobalConfigFromConfigXmlFile (string GlobalConfigFileName) |
Instanciates a GlobalConfig object from a global configuration in a XML file. If the global config file does not exist or can not be loaded, null will be returned. More... | |
static GlobalConfig | GetGlobalConfigFromGlobalConfigXml (string ConfigXml) |
Instanciates a GlobalConfig object from a global configuration in a XML string. More... | |
Properties | |
int | LedControlMinimumEffectDurationMs [get, set] |
Gets or sets the minimum duration in milliseconds for LedControl effects occupying one output (e.g. contactors). This settings has no effect if a duration or blinking is defined for the LedControlEffect. If this value is not specified in the globalconfig file, 60 miliseconds will be used by default. More... | |
int | LedControlMinimumRGBEffectDurationMs [get, set] |
Gets or sets the minimum duration in milliseconds for LedControl effects controlling RGB leds. This settings has no effect if a duration or blinking is defined for the LedControlEffect. If this value is not specified in the globalconfig file, 120 miliseconds will be used by default. More... | |
LedControlIniFileList | LedControlIniFiles [get, set] |
Gets or sets the list of LedControl.ini files. More... | |
FilePatternList | CabinetConfigFilePatterns [get, set] |
Gets or sets the cabinet config file pattern. More... | |
FilePatternList | TableScriptFilePatterns [get, set] |
Gets or sets the table script file patterns. More... | |
FilePatternList | TableConfigFilePatterns [get, set] |
Gets or sets the config file patterns used to looup the table configuration. More... | |
bool | EnableLogging [get, set] |
Gets or sets a value indicating whether impotant events in the framework are logged to a file. More... | |
FilePattern | LogFilePattern [get, set] |
Gets or sets the log file pattern. The log file pattern supports the following placeholders: More... | |
FilePatternList | GlobalScriptFilePatterns [get, set] |
Gets or sets the script file patterns used to lookup the global scripts. More... | |
string | GlobalConfigFilename [get, set] |
Gets or sets the global config filename. More... | |
Global configuration for the DirectOutput framework.
Definition at line 16 of file GlobalConfig.cs.
|
inline |
Initializes a new instance of the GlobalConfig class.
Definition at line 503 of file GlobalConfig.cs.
|
inline |
Gets the cabinet config directory.
Definition at line 109 of file GlobalConfig.cs.
|
inline |
FileInfo object for the file containing the configuration of the cabinet (outputs, toys and so on).
Definition at line 95 of file GlobalConfig.cs.
|
inline |
Gets a DirectoryInfo object for the global config directory.
Definition at line 340 of file GlobalConfig.cs.
|
inline |
Gets a FileInfo object for the global config file.
Definition at line 369 of file GlobalConfig.cs.
|
inlinestatic |
Instanciates a GlobalConfig object from a global configuration in a XML file.
If the global config file does not exist or can not be loaded, null will be returned.
GlobalConfigFileName | Name of the global config XML file. |
Definition at line 420 of file GlobalConfig.cs.
|
inlinestatic |
Instanciates a GlobalConfig object from a global configuration in a XML string.
ConfigXml | XML string |
Definition at line 458 of file GlobalConfig.cs.
|
inline |
Returns a serialized XML representation of the global configuration.
Definition at line 382 of file GlobalConfig.cs.
|
inline |
Gets an list of FileInfo objects for the global script files.
If no script files are found or if a error occurs when looking for the script files a empty list is returned.
The script files are looked up using the value of the property GlobalScriptFilePatterns.
Definition at line 303 of file GlobalConfig.cs.
|
inline |
Gets the log filename based on the LogFilePattern with replaced placeholders.
TableFilename | The table filename. |
RomName | Name of the rom. |
Definition at line 243 of file GlobalConfig.cs.
|
inline |
Gets a FileInfo object for the table config file.
The file is lookued up using the list of the property TableConfigFilePatterns. If more than one file matches the search patterns, only the first file is returned.
FullTableFilename | The table filename (The *.vpt file for the table, not the config file). |
Definition at line 183 of file GlobalConfig.cs.
|
inline |
Gets the list of table script files.
FullTableFilename | The filename, inckuding path, to the table. |
Definition at line 150 of file GlobalConfig.cs.
|
inline |
Path to the directory where the global config is stored (readonly).
Definition at line 327 of file GlobalConfig.cs.
|
inline |
Saves the GlobalConfig to the file specified in GlobalConfigFilename.
Before saving the current global config file is backed up.
GlobalConfigFilename | (Optional)Global config filename. If no value is supplied the value of the property GlobalConfigFilename will be used. |
Definition at line 478 of file GlobalConfig.cs.
|
getset |
Gets or sets the cabinet config file pattern.
The cabinet config file pattern.
Definition at line 85 of file GlobalConfig.cs.
|
getset |
Gets or sets a value indicating whether impotant events in the framework are logged to a file.
true
if logging is enabled, false
if logging is disabled.
Definition at line 206 of file GlobalConfig.cs.
|
getset |
Gets or sets the global config filename.
The global config filename.
Definition at line 359 of file GlobalConfig.cs.
|
getset |
Gets or sets the script file patterns used to lookup the global scripts.
The global script file patterns.
Definition at line 318 of file GlobalConfig.cs.
|
getset |
Gets or sets the list of LedControl.ini files.
The list of LedControl.ini files.
Definition at line 64 of file GlobalConfig.cs.
|
getset |
Gets or sets the minimum duration in milliseconds for LedControl effects occupying one output (e.g. contactors).
This settings has no effect if a duration or blinking is defined for the LedControlEffect.
If this value is not specified in the globalconfig file, 60 miliseconds will be used by default.
The minimum effect duration in milliseconds.
Definition at line 33 of file GlobalConfig.cs.
|
getset |
Gets or sets the minimum duration in milliseconds for LedControl effects controlling RGB leds.
This settings has no effect if a duration or blinking is defined for the LedControlEffect. If this value is not specified in the globalconfig file, 120 miliseconds will be used by default.
The minimum effect duration in milliseconds.
Definition at line 49 of file GlobalConfig.cs.
|
getset |
Gets or sets the log file pattern.
The log file pattern supports the following placeholders:
The log file pattern.
Definition at line 232 of file GlobalConfig.cs.
|
getset |
Gets or sets the config file patterns used to looup the table configuration.
The table config file patterns.
Definition at line 171 of file GlobalConfig.cs.
|
getset |
Gets or sets the table script file patterns.
The table script file patterns.
Definition at line 138 of file GlobalConfig.cs.