This is Unofficial EPICS BASE Doxygen Site
epics::detail::iocshFuncInfo< N > Struct Template Reference

#include "iocshelper.h"

+ Collaboration diagram for epics::detail::iocshFuncInfo< N >:

Public Member Functions

 iocshFuncInfo (const std::string &n)
 
template<int n, typename T >
void set (const char *name)
 

Public Attributes

iocshFuncDef def
 
std::string name
 
iocshArgargarr [N+1]
 
iocshArg args [N+1]
 
std::string argnames [N+1]
 

Detailed Description

template<int N>
struct epics::detail::iocshFuncInfo< N >

Definition at line 53 of file iocshelper.h.

Constructor & Destructor Documentation

template<int N>
epics::detail::iocshFuncInfo< N >::iocshFuncInfo ( const std::string &  n)
inline

Definition at line 59 of file iocshelper.h.

59  :name(n) {
60  def.name = name.c_str();
61  def.nargs = N;
62  def.arg = (iocshArg**)&argarr;
63  for(size_t i=0; i<N; i++)
64  argarr[i] = &args[i];
65  }
int i
Definition: scan.c:967
const iocshArg *const * arg
Definition: iocsh.h:64
const char * name
Definition: iocsh.h:62
int nargs
Definition: iocsh.h:63
iocshArg * argarr[N+1]
Definition: iocshelper.h:56
Definition: iocsh.h:56

Member Function Documentation

template<int N>
template<int n, typename T >
void epics::detail::iocshFuncInfo< N >::set ( const char *  name)
inline

Definition at line 67 of file iocshelper.h.

67  {
68  argnames[n] = name;
69  args[n].name = argnames[n].c_str();
70  args[n].type = (iocshArgType)detail::getarg<T>::argtype;
71  }
iocshArgType
Definition: iocsh.h:30
const char * name
Definition: iocsh.h:57
std::string argnames[N+1]
Definition: iocshelper.h:58
iocshArgType type
Definition: iocsh.h:58

Member Data Documentation

template<int N>
iocshArg* epics::detail::iocshFuncInfo< N >::argarr[N+1]

Definition at line 56 of file iocshelper.h.

template<int N>
std::string epics::detail::iocshFuncInfo< N >::argnames[N+1]

Definition at line 58 of file iocshelper.h.

template<int N>
iocshArg epics::detail::iocshFuncInfo< N >::args[N+1]

Definition at line 57 of file iocshelper.h.

template<int N>
iocshFuncDef epics::detail::iocshFuncInfo< N >::def

Definition at line 54 of file iocshelper.h.

template<int N>
std::string epics::detail::iocshFuncInfo< N >::name

Definition at line 55 of file iocshelper.h.


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