Create a new instance of a DataMapperChain.
DataMapperChain configuration object
Add a mapper to the DataMapperChain.
Mapper to be added
Make a new mapper type available to the DataMapperChain. If the mapper type already exists it will be overwritten.
Mappertype to be added
Add a Base64 mapper
Configuration for the Base64 mapper
Add a Chunk mapper
Configuration for the Chunk mapper
Create a IMapper based on the given IMapperConfig. If no mapper type is found the function returns false.
The IMapperConfig for the mapper
Helper function to find a mapper in available mappers.
Mapper ID as string
Add a FromJSON mapper
Configuration for the FromJSON mapper
Add a HexToFloat mapper
Configuration for the HexToFloat mapper
Add a HexToInt mapper
Configuration for the HexToInt mapper
Loads a configuration which has been exported earlier by serializeConfig.
Configuration string as exported from serializeConfig @see serializeConfig
Add a Offset mapper
Configuration for the Offset mapper
Serializes the DataMapperChain configuration including the mappers added to the chain. Returns a string representation of the configuration which has been run through JSON.stringify.
Generated using TypeDoc
DataMapperChain is a simple collection of mappers and allows for serializing and loading configurations of mappers. [[include:data-mapper-tutorial.md]]