ChimeraTK-DeviceAccess 03.26.00
Loading...
Searching...
No Matches
ChimeraTK::RawConverter Namespace Reference

Namespaces

namespace  detail
 

Classes

class  Converter
 Converter class for conversions from raw to cooked values. More...
 
class  Converter< UserType, RawType, SignificantBitsCase::generic, FractionalCase::integer, false >
 Specialisation for FundamentalType::nodata (RawType = Void) and/or UserType = Void. More...
 
class  ConverterLoopHelper
 Abstract base class to implement erasure of the exact Converter type. More...
 
class  ConverterLoopHelperImpl
 

Enumerations

enum class  SignificantBitsCase {
  bit8 = 0 , bit16 , bit32 , bit64 ,
  generic
}
 
enum class  FractionalCase { integer , fixedPositive , fixedNegative , ieee754_32 }
 

Functions

template<typename UserType , typename RawType , typename FUN >
void withConverter (const ChimeraTK::NumericAddressedRegisterInfo &info, size_t channelIndex, FUN &&fun)
 Create Converter matching the given register info and channel, and call the functor object passing the Converter object.
 

Enumeration Type Documentation

◆ FractionalCase

Enumerator
integer 
fixedPositive 
fixedNegative 
ieee754_32 

Definition at line 19 of file RawConverter.h.

◆ SignificantBitsCase

Enumerator
bit8 
bit16 
bit32 
bit64 
generic 

Definition at line 15 of file RawConverter.h.

Function Documentation

◆ withConverter()

template<typename UserType , typename RawType , typename FUN >
void ChimeraTK::RawConverter::withConverter ( const ChimeraTK::NumericAddressedRegisterInfo info,
size_t  channelIndex,
FUN &&  fun 
)

Create Converter matching the given register info and channel, and call the functor object passing the Converter object.

This can be used to implement setAsCooked/getAsCooked in the accessors. For the converter used in postRead/preWrite, it is recommended to use the ConverterLoopHelper instead.

Definition at line 544 of file RawConverter.h.