This is Unofficial EPICS BASE Doxygen Site
epics::pvData::TypeFunc Namespace Reference

Convenience functions for Type. More...

Functions

const char * name (Type t)
 

Detailed Description

Convenience functions for Type.

Function Documentation

epicsShareExtern const char * epics::pvData::TypeFunc::name ( Type  type)

Get a name for the type.

Parameters
typeThe type.
Returns
The name for the type.

Definition at line 29 of file TypeFunc.cpp.

29  {
30  if (t<int(scalar) || t>int(unionArray))
31  THROW_EXCEPTION2(std::invalid_argument, "logic error unknown Type");
32  return names[t];
33  }
#define THROW_EXCEPTION2(TYPE, MSG)