SEGenericScalar Class Reference
If you want to querry what a scalar is and don't know what scalar type you have... More...
#include <SEScalar.h>
Inherits Loggable.
Inherited by SEDataRequestScalar.
Public Member Functions | |
SEGenericScalar (Logger *logger) | |
virtual | ~SEGenericScalar () |
virtual bool | HasScalar () const |
virtual void | SetScalar (const SEScalar &s) |
virtual bool | IsValid () const |
virtual bool | IsInfinity () const |
virtual bool | HasUnit () const |
virtual const CCompoundUnit * | GetUnit () const |
virtual bool | IsValidUnit (const CCompoundUnit &unit) const |
virtual const CCompoundUnit * | GetCompoundUnit (const std::string &unit) const |
virtual double | GetValue () const |
virtual double | GetValue (int decimal_places) const |
virtual double | GetValue (const CCompoundUnit &unit) const |
virtual double | GetValue (const CCompoundUnit &unit, int decimal_places) const |
std::string | GetString () const |
Public Member Functions inherited from Loggable | |
Loggable (Logger *logger=nullptr) | |
Loggable (std::string const &logfile) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () const |
virtual void | SetLogger (Logger &logger) |
virtual void | Debug (std::string const &msg) const |
virtual void | Debug (std::stringstream &msg) const |
virtual void | Debug (std::ostream &msg) const |
virtual void | Info (std::string const &msg) const |
virtual void | Info (std::stringstream &msg) const |
virtual void | Info (const std::stringstream &msg) const |
virtual void | Info (std::ostream &msg) const |
virtual void | Warning (std::string const &msg) const |
virtual void | Warning (std::stringstream &msg) const |
virtual void | Warning (std::ostream &msg) const |
virtual void | Error (std::string const &msg) const |
virtual void | Error (std::stringstream &msg) const |
virtual void | Error (std::ostream &msg) const |
virtual void | Fatal (std::string const &msg) const |
virtual void | Fatal (std::stringstream &msg) const |
virtual void | Fatal (std::ostream &msg) const |
Protected Attributes | |
const SEScalar * | m_Scalar |
const SEUnitScalar * | m_UnitScalar |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Friends | |
class | PBProperty |
Detailed Description
If you want to querry what a scalar is and don't know what scalar type you have...
Be aware, I did not really protect this class, I assume you know what you are doing If you use this class without setting the scalar it will produce nullptr errors and other CDM Exceptions, use with caution and smarts.
Constructor & Destructor Documentation
◆ SEGenericScalar()
SEGenericScalar::SEGenericScalar | ( | Logger * | logger | ) |
◆ ~SEGenericScalar()
|
inlinevirtual |
Member Function Documentation
◆ GetCompoundUnit()
|
virtual |
◆ GetString()
std::string SEGenericScalar::GetString | ( | ) | const |
◆ GetUnit()
|
virtual |
◆ GetValue() [1/4]
|
virtual |
◆ GetValue() [2/4]
|
virtual |
◆ GetValue() [3/4]
|
virtual |
◆ GetValue() [4/4]
|
virtual |
◆ HasScalar()
|
virtual |
◆ HasUnit()
|
virtual |
◆ IsInfinity()
|
virtual |
◆ IsValid()
|
virtual |
◆ IsValidUnit()
|
virtual |
◆ SetScalar()
|
virtual |
Friends And Related Function Documentation
◆ PBProperty
|
friend |
Member Data Documentation
◆ m_Scalar
|
protected |
◆ m_UnitScalar
|
protected |