OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
Functions | Variables
Util.h File Reference
#include <string>
#include <sstream>
#include <algorithm>
#include <cctype>
#include <locale>
#include <math.h>
Include dependency graph for Util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void ltrim (std::string &s)
 
static void rtrim (std::string &s)
 
static void trim (std::string &s)
 
static bool almostEqualRelativeAndAbs (double a, double b, double reltol=DOUBLEEQUAL_RELTOL, double abstol=DOUBLEEQUAL_ABSTOL)
 

Variables

const double DOUBLEEQUAL_ABSTOL = 1e-10
 
const double DOUBLEEQUAL_RELTOL = 1e-5
 

Function Documentation

◆ almostEqualRelativeAndAbs()

static bool almostEqualRelativeAndAbs ( double  a,
double  b,
double  reltol = DOUBLEEQUAL_RELTOL,
double  abstol = DOUBLEEQUAL_ABSTOL 
)
inlinestatic
Here is the caller graph for this function:

◆ ltrim()

static void ltrim ( std::string &  s)
inlinestatic
Here is the caller graph for this function:

◆ rtrim()

static void rtrim ( std::string &  s)
inlinestatic
Here is the caller graph for this function:

◆ trim()

static void trim ( std::string &  s)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DOUBLEEQUAL_ABSTOL

const double DOUBLEEQUAL_ABSTOL = 1e-10

◆ DOUBLEEQUAL_RELTOL

const double DOUBLEEQUAL_RELTOL = 1e-5