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

The ISgfcComposedPropertyValue interface provides access to one of the values of a property of an SGF node. The value is a composite of two ISgfcSinglePropertyValue objects. More...

#include <ISgfcComposedPropertyValue.h>

Inheritance diagram for LibSgfcPlusPlus::ISgfcComposedPropertyValue:
LibSgfcPlusPlus::ISgfcPropertyValue LibSgfcPlusPlus::SgfcComposedPropertyValue

Public Member Functions

 ISgfcComposedPropertyValue ()
 Initializes a newly constructed ISgfcComposedPropertyValue object.
 
virtual ~ISgfcComposedPropertyValue ()
 Destroys and cleans up the ISgfcComposedPropertyValue object.
 
virtual std::shared_ptr< ISgfcSinglePropertyValueGetValue1 () const =0
 Returns the first property value.
 
virtual std::shared_ptr< ISgfcSinglePropertyValueGetValue2 () const =0
 Returns the second property value.
 
- 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 ISgfcComposedPropertyValue interface provides access to one of the values of a property of an SGF node. The value is a composite of two ISgfcSinglePropertyValue objects.

The class name uses the term "composed" because that is how it appears in the SGF standard.

ISgfcComposedPropertyValue is immutable, i.e. once the ISgfcComposedPropertyValue object is constructed it cannot be changed.

Member Function Documentation

◆ GetValue1()

virtual std::shared_ptr< ISgfcSinglePropertyValue > LibSgfcPlusPlus::ISgfcComposedPropertyValue::GetValue1 ( ) const
pure virtual

Returns the first property value.

Implemented in LibSgfcPlusPlus::SgfcComposedPropertyValue.

◆ GetValue2()

virtual std::shared_ptr< ISgfcSinglePropertyValue > LibSgfcPlusPlus::ISgfcComposedPropertyValue::GetValue2 ( ) const
pure virtual

Returns the second property value.

Implemented in LibSgfcPlusPlus::SgfcComposedPropertyValue.


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