KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SIM_VALUE Class Reference

#include <sim_value.h>

Public Types

enum  TYPE {
  TYPE_BOOL , TYPE_INT , TYPE_FLOAT , TYPE_COMPLEX ,
  TYPE_STRING , TYPE_BOOL_VECTOR , TYPE_INT_VECTOR , TYPE_FLOAT_VECTOR ,
  TYPE_COMPLEX_VECTOR
}
 
using NOTATION = SIM_VALUE_GRAMMAR::NOTATION
 

Static Public Member Functions

static std::string ConvertNotation (const std::string &aString, NOTATION aFromNotation, NOTATION aToNotation)
 
static std::string Normalize (double aValue)
 
static std::string ToSpice (const std::string &aString)
 
static double ToDouble (const std::string &aString, double aDefault=NAN)
 
static int ToInt (const std::string &aString, int aDefault=-1)
 
static bool Equal (double aLH, const std::string &aRH)
 

Detailed Description

Definition at line 58 of file sim_value.h.

Member Typedef Documentation

◆ NOTATION

Definition at line 61 of file sim_value.h.

Member Enumeration Documentation

◆ TYPE

Enumerator
TYPE_BOOL 
TYPE_INT 
TYPE_FLOAT 
TYPE_COMPLEX 
TYPE_STRING 
TYPE_BOOL_VECTOR 
TYPE_INT_VECTOR 
TYPE_FLOAT_VECTOR 
TYPE_COMPLEX_VECTOR 

Definition at line 65 of file sim_value.h.

Member Function Documentation

◆ ConvertNotation()

◆ Equal()

bool SIM_VALUE::Equal ( double  aLH,
const std::string &  aRH 
)
static

Definition at line 487 of file sim_value.cpp.

References std::abs(), and ToDouble().

Referenced by SIM_STRING_PROPERTY::OnEvent(), and SIM_STRING_PROPERTY::StringToValue().

◆ Normalize()

std::string SIM_VALUE::Normalize ( double  aValue)
static

◆ ToDouble()

◆ ToInt()

◆ ToSpice()


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