libsgfc++ 2.0.1
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LibSgfcPlusPlus::ISgfcPropertyValue Class Referenceabstract

The ISgfcPropertyValue interface provides access to one of the values of a property of an SGF node. More...

#include <ISgfcPropertyValue.h>

Inheritance diagram for LibSgfcPlusPlus::ISgfcPropertyValue:
LibSgfcPlusPlus::ISgfcComposedPropertyValue LibSgfcPlusPlus::ISgfcSinglePropertyValue LibSgfcPlusPlus::SgfcComposedPropertyValue LibSgfcPlusPlus::ISgfcColorPropertyValue LibSgfcPlusPlus::ISgfcDoublePropertyValue LibSgfcPlusPlus::ISgfcMovePropertyValue LibSgfcPlusPlus::ISgfcNumberPropertyValue LibSgfcPlusPlus::ISgfcPointPropertyValue LibSgfcPlusPlus::ISgfcRealPropertyValue LibSgfcPlusPlus::ISgfcSimpleTextPropertyValue LibSgfcPlusPlus::ISgfcStonePropertyValue LibSgfcPlusPlus::ISgfcTextPropertyValue LibSgfcPlusPlus::SgfcSinglePropertyValue

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 ISgfcSinglePropertyValueToSingleValue () 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 ISgfcComposedPropertyValueToComposedValue () 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.
 

Detailed Description

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.

Member Function Documentation

◆ IsComposedValue()

virtual bool LibSgfcPlusPlus::ISgfcPropertyValue::IsComposedValue ( ) const
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.

◆ ToComposedValue()

const ISgfcComposedPropertyValue * LibSgfcPlusPlus::ISgfcPropertyValue::ToComposedValue ( ) const
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.

◆ ToSingleValue()

const ISgfcSinglePropertyValue * LibSgfcPlusPlus::ISgfcPropertyValue::ToSingleValue ( ) const
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.


The documentation for this class was generated from the following files: