SM_ADC  1.0
Приём данных АЦП через разделяемую память
Macros | Functions | Variables
utils.h File Reference
#include <iostream>
#include <string>
#include <sstream>
#include <math.h>
#include <vector>

Go to the source code of this file.

Macros

#define EQUALITY_TOLERANCE   0.00000000000001
 

Functions

template<typename T >
string toString (T value)
 
bool isIdentifier (string str)
 
unsigned long getComputerTime ()
 
bool areEqual (double x, double y, double tolerance=EQUALITY_TOLERANCE)
 

Variables

static char ERROR_MSG_BUFFER [512]
 

Macro Definition Documentation

◆ EQUALITY_TOLERANCE

#define EQUALITY_TOLERANCE   0.00000000000001

Definition at line 85 of file utils.h.

Function Documentation

◆ areEqual()

bool areEqual ( double  x,
double  y,
double  tolerance = EQUALITY_TOLERANCE 
)
inline

Returns true if x are equal to y. The test takes into account the precision of the mantissa.

Definition at line 91 of file utils.h.

Referenced by Array::operator==().

◆ getComputerTime()

unsigned long getComputerTime ( )
inline

Returns the current computer time in milliseconds.

Definition at line 66 of file utils.h.

◆ isIdentifier()

bool isIdentifier ( string  str)
inline

Returns true if the string is a valid MATLAB variable identifier.

Definition at line 45 of file utils.h.

Referenced by BaseBlock::checkParameters(), and BaseFunction::initializeInputPortSizes().

◆ toString()

template<typename T >
string toString ( value)
inline

Variable Documentation

◆ ERROR_MSG_BUFFER

char ERROR_MSG_BUFFER[512]
static