ISIS Logo
ECLAB
An EPICS support module to export potentiostat values as process variables
Classes | Macros
ECLabInterface.h File Reference

Provide an interface to EC lab functions, converting error codes into C++ exceptions. More...

#include <string>
#include <sstream>
#include <BLFunctions.h>
#include "BLFunctionsStub.h"

Go to the source code of this file.

Classes

class  ECLabException
 encapsulates an EC lab error code as an exception object More...
 
struct  ECLabInterface
 Wraps all of the ECLab BL_* function in an interface class that converts the error code into an exception. More...
 

Macros

#define BLCONCAT(A, B)   A##B
 
#define BL_CALL(__func,...)
 call an ECLab function, converting error into an exception More...
 

Detailed Description

Provide an interface to EC lab functions, converting error codes into C++ exceptions.

Definition in file ECLabInterface.h.

Macro Definition Documentation

#define BL_CALL (   __func,
  ... 
)
Value:
int status; \
if (BLSIM) \
{ \
status = BLCONCAT(__func,Stub) ( __VA_ARGS__ ); \
} \
{ \
status = __func ( __VA_ARGS__ ); \
} \
if ( status != 0 ) \
{ \
throw ECLabException(#__func, status); \
}
encapsulates an EC lab error code as an exception object
if(ID==my_connection_id)
#define BLCONCAT(A, B)

call an ECLab function, converting error into an exception

Definition at line 47 of file ECLabInterface.h.

Referenced by ECLabInterface::Connect(), ECLabInterface::Disconnect(), ECLabInterface::GetChannelInfos(), ECLabInterface::GetCurrentValues(), ECLabInterface::GetData(), ECLabInterface::GetExperimentInfos(), ECLabInterface::GetLibVersion(), ECLabInterface::LoadFirmware(), ECLabInterface::LoadTechnique(), ECLabInterface::SetExperimentInfos(), ECLabInterface::StartChannel(), ECLabInterface::StopChannel(), ECLabInterface::testConnect(), and ECLabInterface::UpdateParameters().

#define BLCONCAT (   A,
 
)    A##B

Definition at line 21 of file ECLabInterface.h.

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