ISIS Logo
NetShrVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
Classes | Functions
cnvconvert.h File Reference

Header file for network shared variable to EPICS type convertion routines. More...

#include <type_traits>

Go to the source code of this file.

Classes

struct  CNV2C< type >
 Provide the underlying C data type ctype for a given network shared variable type. More...
 
struct  CNV2C< CNVBool >
 
struct  CNV2C< CNVString >
 
struct  CNV2C< CNVSingle >
 
struct  CNV2C< CNVDouble >
 
struct  CNV2C< CNVInt8 >
 
struct  CNV2C< CNVUInt8 >
 
struct  CNV2C< CNVInt16 >
 
struct  CNV2C< CNVUInt16 >
 
struct  CNV2C< CNVInt32 >
 
struct  CNV2C< CNVUInt32 >
 
struct  CNV2C< CNVInt64 >
 
struct  CNV2C< CNVUInt64 >
 
struct  C2CNV< T >
 For a given C data type, provide the appropriate network shared variable type. More...
 
struct  C2CNV< bool >
 
struct  C2CNV< char * >
 
struct  C2CNV< float >
 
struct  C2CNV< double >
 
struct  C2CNV< char >
 
struct  C2CNV< unsigned char >
 
struct  C2CNV< short >
 
struct  C2CNV< unsigned short >
 
struct  C2CNV< int >
 
struct  C2CNV< unsigned int >
 
struct  C2CNV< __int64 >
 
struct  C2CNV< unsigned __int64 >
 
struct  MakeSignedImpl< T, is_unsigned >
 default case handles already signed types i.e. <T,false> More...
 
struct  MakeSignedImpl< T, true >
 specialisation of MakeSignedImpl for unsigned types i.e. <T,true> More...
 
struct  MakeSigned< T >
 like std::make_signed but also handles bool,float etc. types by passing them through rather than producing an error More...
 

Functions

template<typename T , typename U >
static T convertToScalar (U val)
 convert one type to another More...
 
template<typename T , typename U >
static T convertToScalar (U *val)
 
template<typename T , typename U >
static T * convertToPtr (U val)
 
template<typename T , typename U >
static T * convertToPtr (U *val)
 Types that differ only in sign are considered castable as epics asyn doesn't have unsigned data types for arrays. More...
 

Detailed Description

Header file for network shared variable to EPICS type convertion routines.

Author
Freddie Akeroyd, STFC ISIS Facility, GB

Definition in file cnvconvert.h.

Function Documentation

template<typename T , typename U >
static T* convertToPtr ( val)
static

Definition at line 255 of file cnvconvert.h.

template<typename T , typename U >
static T* convertToPtr ( U *  val)
static

Types that differ only in sign are considered castable as epics asyn doesn't have unsigned data types for arrays.

Definition at line 284 of file cnvconvert.h.

template<typename T , typename U >
static T convertToScalar ( val)
static

convert one type to another

Definition at line 242 of file cnvconvert.h.

template<typename T , typename U >
static T convertToScalar ( U *  val)
static

Definition at line 248 of file cnvconvert.h.

Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5