Struct cse491::PropertyBase
ClassList > cse491 > PropertyBase
Inherits the following classes: cse491::CoreObject
Inherited by the following classes: cse491::Property
Public Functions
Type | Name |
---|---|
virtual PropertyType | GetType () const = 0 |
virtual std::string | GetTypeName () const = 0 |
virtual char | ToChar () const = 0 |
virtual double | ToDouble () const = 0 |
virtual GridPosition | ToGridPosition () const = 0 |
virtual int | ToInt () const = 0 |
virtual std::string | ToString () const = 0 |
virtual | ~PropertyBase () |
Public Functions inherited from cse491::CoreObject
Type | Name |
---|---|
void | Deserialize (std::istream & is) Restore the state of this object, extracting it from the provided stream. |
bool | Deserialize (std::string filename) A version of Deserialize that accepts a filename to read this object from. |
std::string | GetTypeName () const Access the derived name for this type. |
void | Serialize (std::ostream & os) const Store the current state of this object for later extraction. |
bool | Serialize (std::string filename) const A version of Serialize that accepts a filename for saving just this object. |
auto | operator<=> (const CoreObject &) const |
virtual | ~CoreObject () |
Protected Functions inherited from cse491::CoreObject
Type | Name |
---|---|
virtual void | Deserialize_impl (std::istream &) = 0 Override to restore the state of this object from the provided stream. |
bool | EndDeserialize (std::istream & is) Set up end of the deserialization for this class (does type checking) |
void | EndSerialize (std::ostream & os) const Set up end of the serialization for this class (allows checking later) |
virtual std::string | GetTypeName_impl () const = 0 Override to allow access the derived name for this type. |
virtual void | Serialize_impl (std::ostream &) const = 0 Override to store the current state of this object for later extraction. |
bool | StartDeserialize (std::istream & is) Set up beginning of the deserialization for this class (does type checking) |
void | StartSerialize (std::ostream & os) const Set up beginning of the serialization for this class (allows checking later) |
Public Functions Documentation
function GetType
virtual PropertyType cse491::PropertyBase::GetType () const = 0
function GetTypeName
virtual std::string cse491::PropertyBase::GetTypeName () const = 0
function ToChar
virtual char cse491::PropertyBase::ToChar () const = 0
function ToDouble
virtual double cse491::PropertyBase::ToDouble () const = 0
function ToGridPosition
virtual GridPosition cse491::PropertyBase::ToGridPosition () const = 0
function ToInt
virtual int cse491::PropertyBase::ToInt () const = 0
function ToString
virtual std::string cse491::PropertyBase::ToString () const = 0
function ~PropertyBase
inline virtual cse491::PropertyBase::~PropertyBase ()
The documentation for this class was generated from the following file source/core/Property.hpp