C++Instrument Catalog MFC 1.2
Metrolab C++InstrumentCatalog for MFC
Loading...
Searching...
No Matches
PT2026.cpp File Reference
#include <sstream>
#include <iomanip>
#include <locale>
#include "PT2026.h"
#include "OSDefines.h"
#include "Helpers.h"
#include "Exception.h"
#include "PT2026TypeConversions.h"
#include "SCPIParsing.h"
#include "date.h"
Include dependency graph for PT2026.cpp:

Go to the source code of this file.

Macros

#define DEBUG_MTL_INSTRUMENT_PT2026   1
#define DEBUG_MTL_INSTRUMENT_PT2026_ERRORS_ONLY   1
#define MTL_INSTRUMENT_PT2026_DEBUG_COUT(__X__)
#define MTL_INSTRUMENT_PT2026_DEBUG_CERR(__X__)
#define MTL_WRITE_AND_READ_STB_POLLING_PERIOD_MS   50
#define MTL_ERROR_LIST_HISTORY_LEN   20
#define MTL_ERROR_BUFFER_LEN   4096
#define MTL_F64_CONVERSION_PRECISION   15

Typedefs

typedef MTL::CException< CPT2026Instrument > CPT2026InsException

Functions

void l_ParseErrorString (std::string &rErrStr, const std::string &rContext, sError &rError)
std::string uIPAddress_to_string (uIPAddress Addr)
std::string l_ToString (F64 number, std::streamsize precision=MTL_F64_CONVERSION_PRECISION, const char *locale=MTL_F64_CONVERSION_LOCALE)

Macro Definition Documentation

◆ DEBUG_MTL_INSTRUMENT_PT2026

#define DEBUG_MTL_INSTRUMENT_PT2026   1

Definition at line 18 of file PT2026.cpp.

◆ DEBUG_MTL_INSTRUMENT_PT2026_ERRORS_ONLY

#define DEBUG_MTL_INSTRUMENT_PT2026_ERRORS_ONLY   1

Definition at line 19 of file PT2026.cpp.

◆ MTL_ERROR_BUFFER_LEN

#define MTL_ERROR_BUFFER_LEN   4096

Definition at line 34 of file PT2026.cpp.

◆ MTL_ERROR_LIST_HISTORY_LEN

#define MTL_ERROR_LIST_HISTORY_LEN   20

Definition at line 33 of file PT2026.cpp.

◆ MTL_F64_CONVERSION_PRECISION

#define MTL_F64_CONVERSION_PRECISION   15

Definition at line 42 of file PT2026.cpp.

◆ MTL_INSTRUMENT_PT2026_DEBUG_CERR

#define MTL_INSTRUMENT_PT2026_DEBUG_CERR ( __X__)

Definition at line 29 of file PT2026.cpp.

◆ MTL_INSTRUMENT_PT2026_DEBUG_COUT

#define MTL_INSTRUMENT_PT2026_DEBUG_COUT ( __X__)

Definition at line 28 of file PT2026.cpp.

◆ MTL_WRITE_AND_READ_STB_POLLING_PERIOD_MS

#define MTL_WRITE_AND_READ_STB_POLLING_PERIOD_MS   50

Definition at line 32 of file PT2026.cpp.

Typedef Documentation

◆ CPT2026InsException

Definition at line 51 of file PT2026.cpp.

Function Documentation

◆ l_ParseErrorString()

void l_ParseErrorString ( std::string & rErrStr,
const std::string & rContext,
sError & rError )

Definition at line 56 of file PT2026.cpp.

◆ l_ToString()

std::string l_ToString ( F64 number,
std::streamsize precision = MTL_F64_CONVERSION_PRECISION,
const char * locale = MTL_F64_CONVERSION_LOCALE )

Definition at line 74 of file PT2026.cpp.

◆ uIPAddress_to_string()

std::string uIPAddress_to_string ( uIPAddress Addr)

Definition at line 67 of file PT2026.cpp.