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::ISgfcGoStonePropertyValue Class Referenceabstract

The ISgfcGoStonePropertyValue interface makes the property value data of a property of type SgfcPropertyValueType::Stone available as an ISgfcGoStone object. More...

#include <ISgfcGoStonePropertyValue.h>

Inheritance diagram for LibSgfcPlusPlus::ISgfcGoStonePropertyValue:
LibSgfcPlusPlus::ISgfcStonePropertyValue LibSgfcPlusPlus::ISgfcSinglePropertyValue LibSgfcPlusPlus::ISgfcPropertyValue LibSgfcPlusPlus::SgfcGoStonePropertyValue

Public Member Functions

 ISgfcGoStonePropertyValue ()
 Initializes a newly constructed ISgfcGoStonePropertyValue object.
 
virtual ~ISgfcGoStonePropertyValue ()
 Destroys and cleans up the ISgfcGoStonePropertyValue object.
 
virtual std::shared_ptr< ISgfcGoStoneGetGoStone () const =0
 Returns an ISgfcGoStone object that contains the property value data.
 
- Public Member Functions inherited from LibSgfcPlusPlus::ISgfcStonePropertyValue
 ISgfcStonePropertyValue ()
 Initializes a newly constructed ISgfcStonePropertyValue object.
 
virtual ~ISgfcStonePropertyValue ()
 Destroys and cleans up the ISgfcStonePropertyValue object.
 
virtual SgfcStone GetStoneValue () const =0
 Returns the property value interpreted as an SgfcStone value.
 
virtual const ISgfcGoStonePropertyValueToGoStoneValue () const =0
 Returns an ISgfcGoStonePropertyValue object if the property value object was created specifically for SgfcGameType::Go. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
- Public Member Functions inherited from LibSgfcPlusPlus::ISgfcSinglePropertyValue
 ISgfcSinglePropertyValue ()
 Initializes a newly constructed ISgfcSinglePropertyValue object.
 
virtual ~ISgfcSinglePropertyValue ()
 Destroys and cleans up the ISgfcSinglePropertyValue object.
 
virtual SgfcPropertyValueType GetValueType () const =0
 Returns the concrete type of the property value object. Depending on the value returned, a caller then knows which one of the convenience casting methods to use.
 
virtual bool HasTypedValue () const =0
 Returns true if the raw string value returned by GetRawValue() is available as a typed value. Otherwise returns false.
 
virtual std::string GetTypeConversionErrorMessage () const =0
 Returns an error message that describes why the raw string value returned by GetRawValue() could not be converted to the typed value returned by GetValueType().
 
virtual std::string GetRawValue () const =0
 Returns the property value as a raw string, i.e. as close as possible as it appears in the original SGF content.
 
virtual const ISgfcNumberPropertyValueToNumberValue () const =0
 Returns an ISgfcNumberPropertyValue object if GetValueType() returns SgfcPropertyValueType::Number. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcRealPropertyValueToRealValue () const =0
 Returns an ISgfcRealPropertyValue object if GetValueType() returns SgfcPropertyValueType::Real. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcDoublePropertyValueToDoubleValue () const =0
 Returns an ISgfcDoublePropertyValue object if GetValueType() returns SgfcPropertyValueType::Double. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcColorPropertyValueToColorValue () const =0
 Returns an ISgfcColorPropertyValue object if GetValueType() returns SgfcPropertyValueType::Color. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcSimpleTextPropertyValueToSimpleTextValue () const =0
 Returns an ISgfcSimpleTextPropertyValue object if GetValueType() returns SgfcPropertyValueType::SimpleText. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcTextPropertyValueToTextValue () const =0
 Returns an ISgfcTextPropertyValue object if GetValueType() returns SgfcPropertyValueType::Text. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcPointPropertyValueToPointValue () const =0
 Returns an ISgfcPointPropertyValue object if GetValueType() returns SgfcPropertyValueType::Point. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcMovePropertyValueToMoveValue () const =0
 Returns an ISgfcMovePropertyValue object if GetValueType() returns SgfcPropertyValueType::Move. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
virtual const ISgfcStonePropertyValueToStoneValue () const =0
 Returns an ISgfcStonePropertyValue object if GetValueType() returns SgfcPropertyValueType::Stone. Returns nullptr otherwise. The caller is not the owner of the returned object.
 
- Public Member Functions inherited from LibSgfcPlusPlus::ISgfcPropertyValue
 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 ISgfcGoStonePropertyValue interface makes the property value data of a property of type SgfcPropertyValueType::Stone available as an ISgfcGoStone object.

Member Function Documentation

◆ GetGoStone()

virtual std::shared_ptr< ISgfcGoStone > LibSgfcPlusPlus::ISgfcGoStonePropertyValue::GetGoStone ( ) const
pure virtual

Returns an ISgfcGoStone object that contains the property value data.

Implemented in LibSgfcPlusPlus::SgfcGoStonePropertyValue.


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