ISIS Logo
NINetVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
Public Types | Public Member Functions | Public Attributes | List of all members
NvItem Struct Reference

details about a network shared variable we have connected to an asyn parameter More...

Public Types

enum  { Read =0x1, Write =0x2, BufferedRead =0x4, BufferedWrite =0x8 }
 

Public Member Functions

 NvItem (const char *nv_name_, const char *type_, unsigned access_, int field_)
 
void report (const std::string &name, FILE *fp)
 helper for asyn driver report function More...
 
void report (FILE *fp, const char *conn_type, void *handle, bool buffered)
 

Public Attributes

enum NvItem:: { ... }  NvAccessMode
 possible access modes to network shared variable More...
 
std::string nv_name
 full path to network shared variable More...
 
std::string type
 type as specified in the XML file e.g. float64array More...
 
int field
 if we refer to a struct, this is the index of the field (starting at 0), otherwise it is -1 More...
 
unsigned access
 combination of NvAccessMode More...
 
int id
 asyn parameter id, -1 if not assigned More...
 
std::vector< char > array_data
 only used for array parameters, contains cached copy of data as this is not stored in usual asyn parameter map More...
 
CNVSubscriber subscriber
 
CNVBufferedSubscriber b_subscriber
 
CNVWriter writer
 
CNVBufferedWriter b_writer
 

Detailed Description

details about a network shared variable we have connected to an asyn parameter

Definition at line 114 of file NINetVarInterface.cpp.

Member Enumeration Documentation

anonymous enum
Enumerator
Read 
Write 
BufferedRead 
BufferedWrite 

Definition at line 116 of file NINetVarInterface.cpp.

Constructor & Destructor Documentation

NvItem::NvItem ( const char *  nv_name_,
const char *  type_,
unsigned  access_,
int  field_ 
)
inline

Definition at line 127 of file NINetVarInterface.cpp.

Member Function Documentation

void NvItem::report ( const std::string &  name,
FILE *  fp 
)
inline

helper for asyn driver report function

Definition at line 133 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::report().

void NvItem::report ( FILE *  fp,
const char *  conn_type,
void *  handle,
bool  buffered 
)
inline

Definition at line 149 of file NINetVarInterface.cpp.

References connectionStatus(), and ERROR_CHECK.

Member Data Documentation

unsigned NvItem::access
std::vector<char> NvItem::array_data

only used for array parameters, contains cached copy of data as this is not stored in usual asyn parameter map

Definition at line 122 of file NINetVarInterface.cpp.

CNVBufferedSubscriber NvItem::b_subscriber
CNVBufferedWriter NvItem::b_writer
int NvItem::field

if we refer to a struct, this is the index of the field (starting at 0), otherwise it is -1

Definition at line 119 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::setValueCNV().

int NvItem::id

asyn parameter id, -1 if not assigned

Definition at line 121 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::connectVars(), NINetVarInterface::createParams(), and NINetVarInterface::updateValues().

std::string NvItem::nv_name

full path to network shared variable

Definition at line 117 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::connectVars(), NINetVarInterface::setValueCNV(), and NINetVarInterface::updateValues().

enum { ... } NvItem::NvAccessMode

possible access modes to network shared variable

CNVSubscriber NvItem::subscriber

Definition at line 123 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::connectVars().

std::string NvItem::type

type as specified in the XML file e.g. float64array

Definition at line 118 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::createParams().

CNVWriter NvItem::writer

The documentation for this struct was generated from the following file:
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.8