DPsim
Classes | Public Member Functions | Public Attributes | Protected Attributes | List of all members
DPsim::CommandLineArgs Class Reference

Classes

struct  Argument
 

Public Member Functions

 CommandLineArgs (int argc, char *argv[], String name="dpsim", Real dt=0.001, Real d=1, Real sf=50, Int s=-1, CPS::Logger::Level ll=CPS::Logger::Level::info, CPS::Logger::Level clill=CPS::Logger::Level::off, Bool ss=false, Bool b=false, Bool si=false, CPS::Domain sd=CPS::Domain::DP, Solver::Type st=Solver::Type::MNA, DirectLinearSolverImpl mi=DirectLinearSolverImpl::KLU, String spn="plugin.so", String params="default.json")
 
 CommandLineArgs (String name="dpsim", Real dt=0.001, Real d=1, Real sf=50, Int s=-1, CPS::Logger::Level ll=CPS::Logger::Level::info, CPS::Logger::Level clill=CPS::Logger::Level::off, Bool ss=false, Bool b=false, Bool si=false, CPS::Domain sd=CPS::Domain::DP, Solver::Type st=Solver::Type::MNA, DirectLinearSolverImpl mi=DirectLinearSolverImpl::KLU, String spn="plugin.so")
 
void parseArguments (int argc, char *argv[])
 
void showUsage ()
 
std::list< fs::path > positionalPaths () const
 
Int getOptionInt (String optionName)
 
Real getOptionReal (String optionName)
 
Bool getOptionBool (String optionName)
 
String getOptionString (String optionName)
 

Public Attributes

double timeStep
 
double duration
 
double sysFreq
 
int scenario
 
CPS::Logger::Level logLevel
 
CPS::Logger::Level cliLogLevel
 
String name
 
String params
 
bool startSynch
 
bool blocking
 
bool steadyInit
 
struct {
   CPS::Domain   domain
 
   Solver::Type   type
 
solver
 
DPsim::DirectLinearSolverImpl directImpl
 
String solverPluginName
 
DPsim::Timer::StartClock::time_point startTime
 
std::list< String > positional
 
std::map< String, String > options
 

Protected Attributes

String mProgramName
 
std::vector< ArgumentmArguments
 

Detailed Description

Definition at line 35 of file Utils.h.


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