ISIS Logo
NINetVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
Classes | Macros | Functions | Variables
NINetVarInterface.cpp File Reference

Implementation of NINetVarInterface class. More...

#include <stdio.h>
#include <windows.h>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <stdexcept>
#include <sstream>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <cvirte.h>
#include <userint.h>
#include <cvinetv.h>
#include <atlbase.h>
#include <comutil.h>
#include <shareLib.h>
#include <macLib.h>
#include <epicsGuard.h>
#include <epicsString.h>
#include <errlog.h>
#include "asynPortDriver.h"
#include "NINetVarInterface.h"
#include "cnvconvert.h"

Go to the source code of this file.

Classes

class  NINetVarException
 An STL exception object encapsulating a shared variable error message. More...
 
class  ScopedCNVData
 A CNVData item that automatically "disposes" itself. More...
 
struct  NvItem
 details about a network shared variable we have connected to an asyn parameter More...
 
struct  CallbackData
 Stores information to be passed back via a shared variable callback on a subscriber connection. More...
 

Macros

#define MAX_PATH_LEN   256
 
#define ERROR_CHECK(__func, __code)
 

Functions

static const char * connectionStatus (CNVConnectionStatus status)
 connection status of a network shared variable More...
 
static void CVICALLBACK DataCallback (void *handle, CNVData data, void *callbackData)
 called when new data is available on a subscriber connection More...
 
static void CVICALLBACK StatusCallback (void *handle, CNVConnectionStatus status, int error, void *callbackData)
 called when status of a network shared variable changes More...
 
static void CVICALLBACK DataTransferredCallback (void *handle, int error, void *callbackData)
 called when data has been transferred to the variable More...
 
static std::string dataQuality (CNVDataQuality quality)
 the quality of the data in a network shared variable More...
 
static void initCV (void *)
 

Variables

static const char * driverName ="NINetVarInterface"
 Name of driver for use in message printing. More...
 
static epicsThreadOnceId onceId = EPICS_THREAD_ONCE_INIT
 

Detailed Description

Implementation of NINetVarInterface class.

Author
Freddie Akeroyd, STFC ISIS Facility, GB

Definition in file NINetVarInterface.cpp.

Macro Definition Documentation

#define ERROR_CHECK (   __func,
  __code 
)
#define MAX_PATH_LEN   256

Function Documentation

static const char* connectionStatus ( CNVConnectionStatus  status)
static

connection status of a network shared variable

Definition at line 68 of file NINetVarInterface.cpp.

Referenced by NvItem::report(), and NINetVarInterface::statusCallback().

static void CVICALLBACK DataCallback ( void *  handle,
CNVData  data,
void *  callbackData 
)
static

called when new data is available on a subscriber connection

Definition at line 278 of file NINetVarInterface.cpp.

References NINetVarInterface::dataCallback(), and CallbackData::intf.

Referenced by NINetVarInterface::connectVars().

static std::string dataQuality ( CNVDataQuality  quality)
static

the quality of the data in a network shared variable

Definition at line 240 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::updateParamCNV().

static void CVICALLBACK DataTransferredCallback ( void *  handle,
int  error,
void *  callbackData 
)
static

called when data has been transferred to the variable

Definition at line 258 of file NINetVarInterface.cpp.

References NINetVarInterface::dataTransferredCallback(), and CallbackData::intf.

Referenced by NINetVarInterface::connectVars().

static void initCV ( void *  )
static

Definition at line 570 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::NINetVarInterface().

static void CVICALLBACK StatusCallback ( void *  handle,
CNVConnectionStatus  status,
int  error,
void *  callbackData 
)
static

called when status of a network shared variable changes

Definition at line 549 of file NINetVarInterface.cpp.

References CallbackData::intf, and NINetVarInterface::statusCallback().

Referenced by NINetVarInterface::connectVars().

Variable Documentation

const char* driverName ="NINetVarInterface"
static

Name of driver for use in message printing.

Definition at line 46 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::createParams().

epicsThreadOnceId onceId = EPICS_THREAD_ONCE_INIT
static

Definition at line 568 of file NINetVarInterface.cpp.

Referenced by NINetVarInterface::NINetVarInterface().

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