28 #include <wx/string.h> 29 #include <wx/valtext.h> 120 return ( *
this == aOther || *
this > aOther );
125 return ( *
this == aOther || *
this < aOther );
159 bool Validate( wxWindow* aParent )
override;
SPICE_VALUE operator-(const SPICE_VALUE &aOther) const
wxString ToSpiceString() const
Returns 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()
Normalizes the value.
bool operator>(const SPICE_VALUE &aOther) const
wxString ToOrigString() const
Returns either a normal string or Spice format string, depending on the original value format.
bool IsSpiceString() const
Returns true if the object was initiated with a Spice formatted string value.
wxString ToString() const
Returns string value as when converting double to string (e.g.
bool operator>=(const SPICE_VALUE &aOther) const
bool operator<(const SPICE_VALUE &aOther) const
static void stripZeros(wxString &aString)
Removes redundant zeros from the end of a string.
Helper class to handle Spice way of expressing values (e.g. 10.5 Meg)
SPICE_VALIDATOR(bool aEmptyAllowed=false)
SPICE_VALUE(double aDouble, UNIT_PREFIX aPrefix=PFX_NONE)
SPICE_VALUE operator *(const SPICE_VALUE &aOther) const
Helper class to recognize Spice formatted values
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 m_spiceStr
Was the value defined using the Spice notation?
bool operator<=(const SPICE_VALUE &aOther) const