EasyLink
EasyLink is a C++ software development kit for developing blocks for SIMULINK (S-functions)
Functions
Miscellaneous functions on strings and numbers

Functions

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

Detailed Description

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 87 of file Utils.h.

◆ getComputerTime()

unsigned long getComputerTime ( )
inline

Returns the current computer time in milliseconds.

Definition at line 63 of file Utils.h.

◆ isIdentifier()

bool isIdentifier ( std::string  str)
inline

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

Definition at line 44 of file Utils.h.

◆ toString()

template<typename T >
std::string toString ( value)
inline

Converts a double, int or char to a String.

Definition at line 35 of file Utils.h.


Copyright (c) 2014 FEMTO-ST / ENSMM / UFC / UTBM, Besançon, France. Generated by Doxygen.