OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
Classes | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
oms::Flags Class Reference

#include <Flags.h>

Collaboration diagram for oms::Flags:
Collaboration graph

Classes

struct  Flag
 

Static Public Member Functions

static oms_status_enu_t SetCommandLineOption (const std::string &cmd)
 
static oms_alg_solver_enu_t AlgLoopSolver ()
 
static bool AddParametersToCSV ()
 
static bool DefaultModeIsCS ()
 
static bool DeleteTempFiles ()
 
static bool EmitEvents ()
 
static bool ExportParametersInline ()
 
static bool IgnoreInitialUnknowns ()
 
static bool InputExtrapolation ()
 
static bool ProgressBar ()
 
static bool RealTime ()
 
static bool SkipCSVHeader ()
 
static bool SolverStats ()
 
static bool StripRoot ()
 
static bool SuppressPath ()
 
static bool WallTime ()
 
static double StartTime ()
 
static double StopTime ()
 
static double Timeout ()
 
static double Tolerance ()
 
static oms_solver_enu_t MasterAlgorithm ()
 
static oms_solver_enu_t Solver ()
 
static std::string ResultFile ()
 
static unsigned int Intervals ()
 
static unsigned int MaxEventIteration ()
 
static unsigned int MaxLoopIteration ()
 
static unsigned int NumProcs ()
 

Private Member Functions

 Flags ()
 
 ~Flags ()
 
void setDefaults ()
 
 Flags (Flags const &)
 not implemented More...
 
Flagsoperator= (Flags const &)
 not implemented More...
 

Static Private Member Functions

static FlagsGetInstance ()
 
static oms_status_enu_t AddParametersToCSV (const std::string &value)
 
static oms_status_enu_t AlgLoopSolver (const std::string &value)
 
static oms_status_enu_t ClearAllOptions (const std::string &value)
 
static oms_status_enu_t DeleteTempFiles (const std::string &value)
 
static oms_status_enu_t EmitEvents (const std::string &value)
 
static oms_status_enu_t ExportParametersInline (const std::string &value)
 
static oms_status_enu_t FetchAllVars (const std::string &value)
 
static oms_status_enu_t Filename (const std::string &value)
 
static oms_status_enu_t Help (const std::string &value)
 
static oms_status_enu_t IgnoreInitialUnknowns (const std::string &value)
 
static oms_status_enu_t InputExtrapolation (const std::string &value)
 
static oms_status_enu_t Intervals (const std::string &value)
 
static oms_status_enu_t LogFile (const std::string &value)
 
static oms_status_enu_t LogLevel (const std::string &value)
 
static oms_status_enu_t MaxEventIteration (const std::string &value)
 
static oms_status_enu_t MaxLoopIteration (const std::string &value)
 
static oms_status_enu_t Mode (const std::string &value)
 
static oms_status_enu_t NumProcs (const std::string &value)
 
static oms_status_enu_t ProgressBar (const std::string &value)
 
static oms_status_enu_t RealTime (const std::string &value)
 
static oms_status_enu_t ResultFile (const std::string &value)
 
static oms_status_enu_t SetInputDerivatives (const std::string &value)
 
static oms_status_enu_t SkipCSVHeader (const std::string &value)
 
static oms_status_enu_t Solver (const std::string &value)
 
static oms_status_enu_t SolverStats (const std::string &value)
 
static oms_status_enu_t StartTime (const std::string &value)
 
static oms_status_enu_t StopTime (const std::string &value)
 
static oms_status_enu_t StripRoot (const std::string &value)
 
static oms_status_enu_t SuppressPath (const std::string &value)
 
static oms_status_enu_t TempDir (const std::string &value)
 
static oms_status_enu_t Timeout (const std::string &value)
 
static oms_status_enu_t Tolerance (const std::string &value)
 
static oms_status_enu_t Version (const std::string &value)
 
static oms_status_enu_t WallTime (const std::string &value)
 
static oms_status_enu_t WorkingDir (const std::string &value)
 

Private Attributes

bool addParametersToCSV
 
oms_alg_solver_enu_t algLoopSolver
 
bool defaultModeIsCS
 
bool deleteTempFiles
 
bool emitEvents
 
bool exportParametersInline
 
bool ignoreInitialUnknowns
 
bool inputExtrapolation
 
bool progressBar
 
bool realTime
 
bool skipCSVHeader
 
bool solverStats
 
bool stripRoot
 
bool suppressPath
 
bool wallTime
 
double startTime
 
double stopTime
 
double timeout
 
double tolerance
 
oms_solver_enu_t masterAlgorithm
 
oms_solver_enu_t solver
 
std::string resultFile
 
unsigned int intervals
 
unsigned int maxEventIteration
 
unsigned int maxLoopIteration
 
unsigned int numProcs
 
std::map< std::string, unsigned int > lookup
 
std::vector< std::string > files
 
const std::string re_void = ""
 
const std::string re_default = ".+"
 
const std::string re_bool = "(true|false)"
 
const std::string re_mode = "(me|cs)"
 
const std::string re_double = "((\\+|-)?[[:digit:]]+)(\\.(([[:digit:]]+)?))?((e|E)((\\+|-)?)[[:digit:]]+)?"
 
const std::string re_number = "[[:digit:]]+"
 
const std::string re_filename = ".+(\\.fmu|\\.ssp|\\.lua)"
 
const std::vector< Flagflags
 

Constructor & Destructor Documentation

◆ Flags() [1/2]

oms::Flags::Flags ( )
private
Here is the call graph for this function:

◆ ~Flags()

oms::Flags::~Flags ( )
private

◆ Flags() [2/2]

oms::Flags::Flags ( Flags const &  )
private

not implemented

Member Function Documentation

◆ AddParametersToCSV() [1/2]

static bool oms::Flags::AddParametersToCSV ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddParametersToCSV() [2/2]

oms_status_enu_t oms::Flags::AddParametersToCSV ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ AlgLoopSolver() [1/2]

static oms_alg_solver_enu_t oms::Flags::AlgLoopSolver ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AlgLoopSolver() [2/2]

oms_status_enu_t oms::Flags::AlgLoopSolver ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ ClearAllOptions()

oms_status_enu_t oms::Flags::ClearAllOptions ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ DefaultModeIsCS()

static bool oms::Flags::DefaultModeIsCS ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteTempFiles() [1/2]

static bool oms::Flags::DeleteTempFiles ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteTempFiles() [2/2]

oms_status_enu_t oms::Flags::DeleteTempFiles ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ EmitEvents() [1/2]

static bool oms::Flags::EmitEvents ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EmitEvents() [2/2]

oms_status_enu_t oms::Flags::EmitEvents ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ ExportParametersInline() [1/2]

static bool oms::Flags::ExportParametersInline ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExportParametersInline() [2/2]

oms_status_enu_t oms::Flags::ExportParametersInline ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ FetchAllVars()

oms_status_enu_t oms::Flags::FetchAllVars ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Filename()

oms_status_enu_t oms::Flags::Filename ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ GetInstance()

oms::Flags & oms::Flags::GetInstance ( )
staticprivate
Here is the caller graph for this function:

◆ Help()

oms_status_enu_t oms::Flags::Help ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ IgnoreInitialUnknowns() [1/2]

static bool oms::Flags::IgnoreInitialUnknowns ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IgnoreInitialUnknowns() [2/2]

oms_status_enu_t oms::Flags::IgnoreInitialUnknowns ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ InputExtrapolation() [1/2]

static bool oms::Flags::InputExtrapolation ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InputExtrapolation() [2/2]

oms_status_enu_t oms::Flags::InputExtrapolation ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Intervals() [1/2]

static unsigned int oms::Flags::Intervals ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Intervals() [2/2]

oms_status_enu_t oms::Flags::Intervals ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ LogFile()

oms_status_enu_t oms::Flags::LogFile ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ LogLevel()

oms_status_enu_t oms::Flags::LogLevel ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ MasterAlgorithm()

static oms_solver_enu_t oms::Flags::MasterAlgorithm ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxEventIteration() [1/2]

static unsigned int oms::Flags::MaxEventIteration ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxEventIteration() [2/2]

oms_status_enu_t oms::Flags::MaxEventIteration ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ MaxLoopIteration() [1/2]

static unsigned int oms::Flags::MaxLoopIteration ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaxLoopIteration() [2/2]

oms_status_enu_t oms::Flags::MaxLoopIteration ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Mode()

oms_status_enu_t oms::Flags::Mode ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ NumProcs() [1/2]

static unsigned int oms::Flags::NumProcs ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NumProcs() [2/2]

oms_status_enu_t oms::Flags::NumProcs ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ operator=()

Flags& oms::Flags::operator= ( Flags const &  )
private

not implemented

◆ ProgressBar() [1/2]

static bool oms::Flags::ProgressBar ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProgressBar() [2/2]

oms_status_enu_t oms::Flags::ProgressBar ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ RealTime() [1/2]

static bool oms::Flags::RealTime ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RealTime() [2/2]

oms_status_enu_t oms::Flags::RealTime ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ ResultFile() [1/2]

static std::string oms::Flags::ResultFile ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResultFile() [2/2]

oms_status_enu_t oms::Flags::ResultFile ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ SetCommandLineOption()

oms_status_enu_t oms::Flags::SetCommandLineOption ( const std::string &  cmd)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDefaults()

void oms::Flags::setDefaults ( )
private
Here is the caller graph for this function:

◆ SetInputDerivatives()

oms_status_enu_t oms::Flags::SetInputDerivatives ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ SkipCSVHeader() [1/2]

static bool oms::Flags::SkipCSVHeader ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SkipCSVHeader() [2/2]

oms_status_enu_t oms::Flags::SkipCSVHeader ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Solver() [1/2]

static oms_solver_enu_t oms::Flags::Solver ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Solver() [2/2]

oms_status_enu_t oms::Flags::Solver ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ SolverStats() [1/2]

static bool oms::Flags::SolverStats ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SolverStats() [2/2]

oms_status_enu_t oms::Flags::SolverStats ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ StartTime() [1/2]

static double oms::Flags::StartTime ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ StartTime() [2/2]

oms_status_enu_t oms::Flags::StartTime ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ StopTime() [1/2]

static double oms::Flags::StopTime ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ StopTime() [2/2]

oms_status_enu_t oms::Flags::StopTime ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ StripRoot() [1/2]

static bool oms::Flags::StripRoot ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ StripRoot() [2/2]

oms_status_enu_t oms::Flags::StripRoot ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ SuppressPath() [1/2]

static bool oms::Flags::SuppressPath ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SuppressPath() [2/2]

oms_status_enu_t oms::Flags::SuppressPath ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ TempDir()

oms_status_enu_t oms::Flags::TempDir ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Timeout() [1/2]

static double oms::Flags::Timeout ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Timeout() [2/2]

oms_status_enu_t oms::Flags::Timeout ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Tolerance() [1/2]

static double oms::Flags::Tolerance ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tolerance() [2/2]

oms_status_enu_t oms::Flags::Tolerance ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ Version()

oms_status_enu_t oms::Flags::Version ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ WallTime() [1/2]

static bool oms::Flags::WallTime ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WallTime() [2/2]

oms_status_enu_t oms::Flags::WallTime ( const std::string &  value)
staticprivate
Here is the call graph for this function:

◆ WorkingDir()

oms_status_enu_t oms::Flags::WorkingDir ( const std::string &  value)
staticprivate
Here is the call graph for this function:

Member Data Documentation

◆ addParametersToCSV

bool oms::Flags::addParametersToCSV
private

◆ algLoopSolver

oms_alg_solver_enu_t oms::Flags::algLoopSolver
private

◆ defaultModeIsCS

bool oms::Flags::defaultModeIsCS
private

◆ deleteTempFiles

bool oms::Flags::deleteTempFiles
private

◆ emitEvents

bool oms::Flags::emitEvents
private

◆ exportParametersInline

bool oms::Flags::exportParametersInline
private

◆ files

std::vector<std::string> oms::Flags::files
private

◆ flags

const std::vector<Flag> oms::Flags::flags
private

◆ ignoreInitialUnknowns

bool oms::Flags::ignoreInitialUnknowns
private

◆ inputExtrapolation

bool oms::Flags::inputExtrapolation
private

◆ intervals

unsigned int oms::Flags::intervals
private

◆ lookup

std::map<std::string, unsigned int> oms::Flags::lookup
private

◆ masterAlgorithm

oms_solver_enu_t oms::Flags::masterAlgorithm
private

◆ maxEventIteration

unsigned int oms::Flags::maxEventIteration
private

◆ maxLoopIteration

unsigned int oms::Flags::maxLoopIteration
private

◆ numProcs

unsigned int oms::Flags::numProcs
private

◆ progressBar

bool oms::Flags::progressBar
private

◆ re_bool

const std::string oms::Flags::re_bool = "(true|false)"
private

◆ re_default

const std::string oms::Flags::re_default = ".+"
private

◆ re_double

const std::string oms::Flags::re_double = "((\\+|-)?[[:digit:]]+)(\\.(([[:digit:]]+)?))?((e|E)((\\+|-)?)[[:digit:]]+)?"
private

◆ re_filename

const std::string oms::Flags::re_filename = ".+(\\.fmu|\\.ssp|\\.lua)"
private

◆ re_mode

const std::string oms::Flags::re_mode = "(me|cs)"
private

◆ re_number

const std::string oms::Flags::re_number = "[[:digit:]]+"
private

◆ re_void

const std::string oms::Flags::re_void = ""
private

◆ realTime

bool oms::Flags::realTime
private

◆ resultFile

std::string oms::Flags::resultFile
private

◆ skipCSVHeader

bool oms::Flags::skipCSVHeader
private

◆ solver

oms_solver_enu_t oms::Flags::solver
private

◆ solverStats

bool oms::Flags::solverStats
private

◆ startTime

double oms::Flags::startTime
private

◆ stopTime

double oms::Flags::stopTime
private

◆ stripRoot

bool oms::Flags::stripRoot
private

◆ suppressPath

bool oms::Flags::suppressPath
private

◆ timeout

double oms::Flags::timeout
private

◆ tolerance

double oms::Flags::tolerance
private

◆ wallTime

bool oms::Flags::wallTime
private

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