2 using System.Collections.Generic;
5 using System.Runtime.Serialization;
27 System.Collections.IEnumerator
System.Collections.IEnumerable.GetEnumerator()
29 return this.GetEnumerator();
44 this._CabinetOutputList = CabinetOutputList;
51 get {
return this._Current; }
59 object System.Collections.IEnumerator.Current
61 get {
return this.Current; }
67 if (_Index < _CabinetOutputList.
Count)
69 _Current = _CabinetOutputList[_Index];
92 public IOutput this[
string Name]
96 string OutputName =
"";
98 string[] N = Name.Replace(
"/",
"\\").Split(
'\\');
102 if (OutputControllers.Contains(N[0]))
114 string[] NameParts = OutputName.Split(
'.');
115 if (NameParts.Length == 2)
118 if (this.OutputControllers.Contains(NameParts[0]) &&
int.TryParse(NameParts[1], out Nr))
152 int Cnt = this.Count;
165 throw new Exception(
"Enumeration index of CabinateOutputList out of range");
193 return (
this[Name] != null);
The Cabinet object describes the parts of a pinball cabinet (toys, outputcontrollers, outputs and more).
int Count
Returns the number of outputs for all output controlers.
IEnumerator< IOutput > GetEnumerator()
Returns the enumerator for this collection. Required for the implementation of IEnumerable...
bool Contains(string Name)
Checks if a INamedItem object with the specified name exists in the list.
OutputList Outputs
OutputList containing the IOutput objects for a IOutputController.
Readonly list containing all IOutput objects of all IOutputController objects in a cabinet...
Out.OutputControllerList OutputControllers
List of IOutputController objects representing the output controllers in the cabinet.
List of IOutputController objects
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
DirectOutput.Cab.Out is the namespace for all output controller related classes like different output...
Common interface for outputs of any output controller. The Output class implements this interface and...
Common interface for all outputcontrollers. Only classes implementing this interface can be used as o...
bool Contains(string Name)
Checks if a IOutput with a specific name exists in the list. Instead of a name and path consisting o...
Enumerator class for IEnumerable.
CabinetOutputList(Cabinet Cabinet)
Initializes a new instance of the CabinetOutputList class.
Basic IOutput implementation.