30 #include <wx/string.h> 31 #include <wx/valtext.h> 122 return ( *
this == aOther || *
this > aOther );
127 return ( *
this == aOther || *
this < aOther );
161 bool Validate( wxWindow* aParent )
override;
SPICE_VALUE operator-(const SPICE_VALUE &aOther) const
wxString ToSpiceString() const
Return string value in Spice format (e.g.
bool Validate(wxWindow *aParent) override
bool m_emptyAllowed
< Is it valid to get an empty value?
void Normalize()
Normalize the value.
bool operator>(const SPICE_VALUE &aOther) const
wxString ToOrigString() const
Return either a normal string or Spice format string, depending on the original value format.
bool IsSpiceString() const
Return true if the object was initiated with a Spice formatted string value.
wxString ToString() const
Return string value as when converting double to string (e.g.
bool operator>=(const SPICE_VALUE &aOther) const
bool operator<(const SPICE_VALUE &aOther) const
UNIT_PREFIX m_prefix
Was the value defined using the Spice notation?
static void stripZeros(wxString &aString)
< Remove redundant zeros from the end of a string.
< Helper class to handle Spice way of expressing values (e.g. 10.5 Meg) Helper class to recognize Spi...
SPICE_VALIDATOR(bool aEmptyAllowed=false)
SPICE_VALUE(double aDouble, UNIT_PREFIX aPrefix=PFX_NONE)
SPICE_VALUE operator *(const SPICE_VALUE &aOther) const
SPICE_VALUE(int aInt, UNIT_PREFIX aPrefix=PFX_NONE)
SPICE_VALUE operator+(const SPICE_VALUE &aOther) const
bool operator==(const SPICE_VALUE &aOther) const
wxObject * Clone() const override
SPICE_VALUE operator/(const SPICE_VALUE &aOther) const
bool operator<=(const SPICE_VALUE &aOther) const
SPICE_VALUE()
Parses the string to create a Spice value (e.g. 100n)