ISIS Logo
ECLAB
An EPICS support module to export potentiostat values as process variables
Classes | Typedefs | Enumerations | Functions | Variables
ECLabParams.cpp File Reference
#include <string>
#include <map>
#include <iostream>
#include <epicsString.h>
#include "asynPortDriver.h"
#include "ECLabParams.h"
#include "BooleanParams.cpp"
#include "IntegerParams.cpp"
#include "SingleParams.cpp"
#include "BooleanArrayParams.cpp"
#include "IntegerArrayParams.cpp"
#include "SingleArrayParams.cpp"

Go to the source code of this file.

Classes

struct  technique_t
 

Typedefs

typedef std::map< int,
std::vector< technique_t > > 
techniqueMap_t
 

Enumerations

enum  ParamType {
  Single, Boolean, Integer, SingleArray,
  BooleanArray, IntegerArray
}
 

Functions

static asynParamType ECLabToASYNType (ParamType type)
 
static void addTechParam (asynPortDriver *driver, techniqueMap_t &the_map, const std::string &technique, int addr, const std::string &label, ParamType type, const std::string &param, const std::string &desc, int nelem=1)
 
void setECIntegerParam (asynPortDriver *driver, int addr, int id, epicsInt32 value)
 
void setECSingleParam (asynPortDriver *driver, int addr, int id, epicsFloat64 value)
 
void getTechniqueParams (const std::string &technique, int addr, std::vector< TEccParam_t > &values, bool changes_only)
 
void printParams (std::ostream &os)
 
void addAllParameters (asynPortDriver *driver)
 

Variables

static techniqueMap_t g_map
 

Detailed Description

Author
Freddie Akeroyd, STFC ISIS Facility, GB

Definition in file ECLabParams.cpp.

Typedef Documentation

typedef std::map<int, std::vector<technique_t> > techniqueMap_t

Definition at line 30 of file ECLabParams.cpp.

Enumeration Type Documentation

enum ParamType
Enumerator
Single 
Boolean 
Integer 
SingleArray 
BooleanArray 
IntegerArray 

Definition at line 18 of file ECLabParams.cpp.

Function Documentation

void addAllParameters ( asynPortDriver *  driver)

Definition at line 150 of file ECLabParams.cpp.

Referenced by ECLabDriver::ECLabDriver().

static void addTechParam ( asynPortDriver *  driver,
techniqueMap_t the_map,
const std::string &  technique,
int  addr,
const std::string &  label,
ParamType  type,
const std::string &  param,
const std::string &  desc,
int  nelem = 1 
)
static
static asynParamType ECLabToASYNType ( ParamType  type)
static

Definition at line 34 of file ECLabParams.cpp.

References Boolean, BooleanArray, Integer, IntegerArray, Single, and SingleArray.

Referenced by addTechParam().

void getTechniqueParams ( const std::string &  technique,
int  addr,
std::vector< TEccParam_t > &  values,
bool  changes_only 
)
void printParams ( std::ostream &  os)

Definition at line 133 of file ECLabParams.cpp.

References g_map, technique_t::label, t, technique_t::technique, and technique_t::value.

Referenced by ECLabDriver::report().

void setECIntegerParam ( asynPortDriver *  driver,
int  addr,
int  id,
epicsInt32  value 
)
void setECSingleParam ( asynPortDriver *  driver,
int  addr,
int  id,
epicsFloat64  value 
)

Definition at line 98 of file ECLabParams.cpp.

References g_map, technique_t::label, t, technique_t::update, and technique_t::value.

Referenced by ECLabDriver::writeFloat64().

Variable Documentation

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