Lumiverse  2.5
A framework for creating lighting control applications
Public Member Functions | Public Attributes | List of all members
Lumiverse::patchData Struct Reference

Small struct containing information on where the DMX parameter starts and how to convert it to the right type. More...

#include <DMXDevicePatch.h>

Public Member Functions

 patchData ()
 Constructs a default patch entry. More...
 
 patchData (unsigned int addr, conversionType t)
 Constructs a patch entry. More...
 
 patchData (unsigned int addr, string t)
 Constructs a patch entry from a string conversionType. More...
 

Public Attributes

unsigned int startAddress
 Starting address for the parameter. More...
 
conversionType type
 How the LumiverseType should be converted to DMX. More...
 

Detailed Description

Small struct containing information on where the DMX parameter starts and how to convert it to the right type.

See also
DMXDevicePatch, DMXPatch, conversionType

Constructor & Destructor Documentation

Lumiverse::patchData::patchData ( )
inline

Constructs a default patch entry.

Default assumes a starting address of 0 and a floating point to single DMX byte conversion.

Lumiverse::patchData::patchData ( unsigned int  addr,
conversionType  t 
)
inline

Constructs a patch entry.

Parameters
addrStarting address for the parameter
tConversion method for the parameter
Lumiverse::patchData::patchData ( unsigned int  addr,
string  t 
)
inline

Constructs a patch entry from a string conversionType.

Parameters
addrStarting address
tConversion method as a string.

Member Data Documentation

unsigned int Lumiverse::patchData::startAddress

Starting address for the parameter.

Relative to where the Device is patched on the network. For example, if a device is patched to address 35, and the Tilt parameter has a startAddress of 2, then the Tilt parameter is sent out on address 37 (35+2).

conversionType Lumiverse::patchData::type

How the LumiverseType should be converted to DMX.

See also
conversionType

The documentation for this struct was generated from the following file: