KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SIM_VALUE_PARSER Namespace Reference

Classes

struct  numberSelector
 
struct  numberSelector< exponent >
 
struct  numberSelector< fracPart >
 
struct  numberSelector< intPart >
 
struct  numberSelector< SIM_VALUE_GRAMMAR::significand< SIM_VALUE::TYPE_FLOAT > >
 
struct  numberSelector< SIM_VALUE_GRAMMAR::significand< SIM_VALUE::TYPE_INT > >
 
struct  numberSelector< unitPrefix< SIM_VALUE::TYPE_FLOAT, NOTATION::SI > >
 
struct  numberSelector< unitPrefix< SIM_VALUE::TYPE_FLOAT, NOTATION::SPICE > >
 
struct  numberSelector< unitPrefix< SIM_VALUE::TYPE_INT, NOTATION::SI > >
 
struct  numberSelector< unitPrefix< SIM_VALUE::TYPE_INT, NOTATION::SPICE > >
 
struct  PARSE_RESULT
 

Functions

PARSE_RESULT Parse (const std::string &aString, NOTATION aNotation=NOTATION::SI, SIM_VALUE::TYPE aValueType=SIM_VALUE::TYPE_FLOAT)
 
int UnitPrefixToExponent (std::string aPrefix, NOTATION aNotation=NOTATION::SI)
 
std::string ExponentToUnitPrefix (double aExponent, int &aExponentReduction, NOTATION aNotation=NOTATION::SI)
 

Function Documentation

◆ ExponentToUnitPrefix()

std::string SIM_VALUE_PARSER::ExponentToUnitPrefix ( double  aExponent,
int &  aExponentReduction,
NOTATION  aNotation = NOTATION::SI 
)

Definition at line 296 of file sim_value.cpp.

Referenced by SIM_VALUE::ConvertNotation(), and SIM_VALUE::Normalize().

◆ Parse()

SIM_VALUE_PARSER::PARSE_RESULT SIM_VALUE_PARSER::Parse ( const std::string &  aString,
NOTATION  aNotation = NOTATION::SI,
SIM_VALUE::TYPE  aValueType = SIM_VALUE::TYPE_FLOAT 
)

◆ UnitPrefixToExponent()

int SIM_VALUE_PARSER::UnitPrefixToExponent ( std::string  aPrefix,
NOTATION  aNotation = NOTATION::SI 
)

Definition at line 236 of file sim_value.cpp.

Referenced by handleNodeForParse().