Scope
scope::FPGAStatusT< ThrowException > Class Template Reference

#include <FPGAException.h>

Public Member Functions

 FPGAStatusT (const NiFpga_Status &_st=NiFpga_Status_Success)
 
FPGAStatusToperator= (const NiFpga_Status &_st)
 
 operator NiFpga_Status () const
 
bool Success () const
 

Protected Member Functions

void Assign (const NiFpga_Status &_st)
 

Protected Attributes

NiFpga_Status status
 
CString fpga_message
 

Detailed Description

template<bool ThrowException>
class scope::FPGAStatusT< ThrowException >

Wrapper class for the FPGA status, templatized for throwing or non-throwing.

Definition at line 42 of file FPGAException.h.

Constructor & Destructor Documentation

template<bool ThrowException>
scope::FPGAStatusT< ThrowException >::FPGAStatusT ( const NiFpga_Status &  _st = NiFpga_Status_Success)
inline

Standard constructor.

Definition at line 96 of file FPGAException.h.

Member Function Documentation

template<bool ThrowException>
void scope::FPGAStatusT< ThrowException >::Assign ( const NiFpga_Status &  _st)
inlineprotected

Set new status and check/throw if ThrowException.

Definition at line 52 of file FPGAException.h.

template<bool ThrowException>
FPGAStatusT& scope::FPGAStatusT< ThrowException >::operator= ( const NiFpga_Status &  _st)
inline

Assignment operator.

Definition at line 102 of file FPGAException.h.

template<bool ThrowException>
scope::FPGAStatusT< ThrowException >::operator NiFpga_Status ( ) const
inline
Returns
status

Definition at line 108 of file FPGAException.h.

template<bool ThrowException>
bool scope::FPGAStatusT< ThrowException >::Success ( ) const
inline
Returns
true if not an error status

Definition at line 113 of file FPGAException.h.

Member Data Documentation

template<bool ThrowException>
NiFpga_Status scope::FPGAStatusT< ThrowException >::status
protected

the FPGA status

Definition at line 46 of file FPGAException.h.

template<bool ThrowException>
CString scope::FPGAStatusT< ThrowException >::fpga_message
protected

status message

Definition at line 49 of file FPGAException.h.


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