usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

LOHWContainer Class Reference

Implementation of a HWBridge that simply acts as a container and passed the channel data to all bridges held by this container. More...

#import <LOHWContainer.h>

Inheritance diagram for LOHWContainer:

LOHWBridge

Public Member Functions

(NSXMLElement *) - XML
 Get the details as XML.
(void) - addBridge:
 Add a bridge to the container.
(void) - removeBridge:
 Remove a specific bridge from the container.
(void) - removeAllBridges
 Remove all bridges from the container.
(NSArray *) - bridges
 Get an array of all the bridges in the container.
(BOOL) - containsBridge:
 True if the container includes the bridge.
(int) - count
 The number of bridges held by the container.

Protected Attributes

NSString * identifier
 OUr identifier.
NSMutableArray * bridges
 Array of bridges in this container.
BOOL tx
 Flag to show if we should be TXing.
unsigned char out_universe [512]
 Cached output universe.

Detailed Description

Implementation of a HWBridge that simply acts as a container and passed the channel data to all bridges held by this container.


Member Function Documentation

- (void) addBridge: (LOHWBridge *)  aBridge  

Add a bridge to the container.

- (NSArray *) bridges  

Get an array of all the bridges in the container.

- (BOOL) containsBridge: (LOHWBridge *)  aBridge  

True if the container includes the bridge.

- (int) count  

The number of bridges held by the container.

- (void) removeAllBridges  

Remove all bridges from the container.

Removing a bridge resets all channel data in the bridge, and disables DMX TX

- (void) removeBridge: (LOHWBridge *)  aBridge  

Remove a specific bridge from the container.

Removing a bridge resets all channel data in the bridge, and disables DMX TX

- (NSXMLElement *) XML  

Get the details as XML.

 <interface type="<Interface Type>" identifier="1001" RX="ON|OFF" TX="ON|OFF">
  <interface type="<Interface Type>" identifier="1001" RX="ON|OFF" TX="ON|OFF"/>
  <interface type="<Interface Type>" identifier="1001" RX="ON|OFF" TX="ON|OFF"/>
 </interface>

Returns:
The XML Representation of the interface

Reimplemented from LOHWBridge.


The documentation for this class was generated from the following files: