libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
|
The ISgfcPropertyValue interface provides access to one of the values of a property of an SGF node. More...
#include <ISgfcPropertyValue.h>
Public Member Functions | |
ISgfcPropertyValue () | |
Initializes a newly constructed ISgfcPropertyValue object. | |
virtual | ~ISgfcPropertyValue () |
Destroys and cleans up the ISgfcPropertyValue object. | |
virtual bool | IsComposedValue () const =0 |
Returns true if the ISgfcPropertyValue object holds a "composed" value, i.e. a value that consists of a composite of two single values. Returns false if the ISgfcPropertyValue holds only a single value. | |
virtual const ISgfcSinglePropertyValue * | ToSingleValue () const |
Returns nullptr if IsComposedValue() returns true. Returns an ISgfcSinglePropertyValue object if IsComposedValue() returns false. The caller is not the owner of the ISgfcSinglePropertyValue object. | |
virtual const ISgfcComposedPropertyValue * | ToComposedValue () const |
Returns an ISgfcComposedPropertyValue object if IsComposedValue() returns true. Returns nullptr if IsComposedValue() returns false. The caller is not the owner of the ISgfcComposedPropertyValue object. | |
The ISgfcPropertyValue interface provides access to one of the values of a property of an SGF node.
ISgfcPropertyValue is immutable, i.e. once the ISgfcPropertyValue object is constructed it cannot be changed.
|
pure virtual |
Returns true if the ISgfcPropertyValue object holds a "composed" value, i.e. a value that consists of a composite of two single values. Returns false if the ISgfcPropertyValue holds only a single value.
Implemented in LibSgfcPlusPlus::SgfcComposedPropertyValue, and LibSgfcPlusPlus::SgfcSinglePropertyValue.
|
virtual |
Returns an ISgfcComposedPropertyValue object if IsComposedValue() returns true. Returns nullptr if IsComposedValue() returns false. The caller is not the owner of the ISgfcComposedPropertyValue object.
Reimplemented in LibSgfcPlusPlus::SgfcComposedPropertyValue.
|
virtual |
Returns nullptr if IsComposedValue() returns true. Returns an ISgfcSinglePropertyValue object if IsComposedValue() returns false. The caller is not the owner of the ISgfcSinglePropertyValue object.
Reimplemented in LibSgfcPlusPlus::SgfcSinglePropertyValue.