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

The SgfcPropertyValueFactory class provides an implementation of the ISgfcPropertyValueFactory interface. See the interface header file for documentation. More...

#include <SgfcPropertyValueFactory.h>

Inheritance diagram for LibSgfcPlusPlus::SgfcPropertyValueFactory:
LibSgfcPlusPlus::ISgfcPropertyValueFactory

Public Member Functions

Single property values - Basic value types
virtual std::shared_ptr< ISgfcNumberPropertyValueCreateNumberPropertyValue (SgfcNumber numberValue) const override
 Returns a newly constructed ISgfcNumberPropertyValue object that has the SgfcNumber value numberValue.
 
virtual std::shared_ptr< ISgfcRealPropertyValueCreateRealPropertyValue (SgfcReal realValue) const override
 Returns a newly constructed ISgfcRealPropertyValue object that has the SgfcReal value realValue.
 
virtual std::shared_ptr< ISgfcDoublePropertyValueCreateDoublePropertyValue (SgfcDouble doubleValue) const override
 Returns a newly constructed ISgfcDoublePropertyValue object that has the SgfcDouble value doubleValue.
 
virtual std::shared_ptr< ISgfcColorPropertyValueCreateColorPropertyValue (SgfcColor colorValue) const override
 Returns a newly constructed ISgfcColorPropertyValue object that has the SgfcColor value colorValue.
 
virtual std::shared_ptr< ISgfcSimpleTextPropertyValueCreateSimpleTextPropertyValue (const SgfcSimpleText &simpleTextValue) const override
 Returns a newly constructed ISgfcSimpleTextPropertyValue object that has the SgfcSimpleText value simpleTextValue.
 
virtual std::shared_ptr< ISgfcTextPropertyValueCreateTextPropertyValue (const SgfcText &textValue) const override
 Returns a newly constructed ISgfcTextPropertyValue object that has the SgfcText value textValue.
 
virtual std::shared_ptr< ISgfcPointPropertyValueCreatePointPropertyValue (const SgfcPoint &pointValue) const override
 Returns a newly constructed ISgfcPointPropertyValue object that has the SgfcPoint value pointValue.
 
virtual std::shared_ptr< ISgfcMovePropertyValueCreateMovePropertyValue (const SgfcMove &moveValue) const override
 Returns a newly constructed ISgfcMovePropertyValue object that has the SgfcMove value moveValue.
 
virtual std::shared_ptr< ISgfcStonePropertyValueCreateStonePropertyValue (const SgfcStone &stoneValue) const override
 Returns a newly constructed ISgfcStonePropertyValue object that has the SgfcStone value stoneValue.
 
virtual std::shared_ptr< ISgfcSinglePropertyValueCreateCustomPropertyValue (const std::string &value) const override
 Returns a newly constructed ISgfcSinglePropertyValue object that has the string value value. The object has value type SgfcPropertyValueType::Unknown.
 
Single property values - Special value types
virtual std::shared_ptr< ISgfcNumberPropertyValueCreateGameTypePropertyValue (SgfcGameType gameType) const override
 Returns a newly constructed ISgfcNumberPropertyValue object that has an SgfcNumber value that corresponds to gameType. gameType must not be SgfcGameType::Unknown.
 
virtual std::shared_ptr< ISgfcPropertyValueCreateBoardSizePropertyValue (SgfcBoardSize boardSize, SgfcGameType gameType) const override
 Returns a newly constructed ISgfcPropertyValue object that has a value that corresponds to boardSize. boardSize must be valid. gameType must be provided for validating boardSize. gameType must not be SgfcGameType::Unknown.
 
Single property values - Go game value types
virtual std::shared_ptr< ISgfcGoPointPropertyValueCreateGoPointPropertyValue (const SgfcPoint &pointValue, SgfcBoardSize boardSize) const override
 Returns a newly constructed ISgfcGoPointPropertyValue object that has the SgfcPoint value pointValue. boardSize indicates the size of the Go board that the Go point is located on.
 
virtual std::shared_ptr< ISgfcGoMovePropertyValueCreateGoMovePropertyValue (const SgfcMove &moveValue, SgfcBoardSize boardSize, SgfcColor color) const override
 Returns a newly constructed ISgfcGoMovePropertyValue object that has the SgfcMove value moveValue. color is the color of the player who made the move. The move is not a pass move. boardSize indicates the size of the Go board that the Go move is played on.
 
virtual std::shared_ptr< ISgfcGoMovePropertyValueCreateGoMovePropertyValue (SgfcColor color) const override
 Returns a newly constructed ISgfcGoMovePropertyValue object that has no value. color is the color of the player who made the move. The move is a pass move.
 
virtual std::shared_ptr< ISgfcGoStonePropertyValueCreateGoStonePropertyValue (const SgfcStone &stoneValue, SgfcBoardSize boardSize, SgfcColor color) const override
 Returns a newly constructed ISgfcGoStonePropertyValue object that has the SgfcStone value stoneValue. color is the color of the stone. boardSize indicates the size of the Go board that the Go stone is located on.
 
Composed property values - Basic value types
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedNumberAndNumberPropertyValue (SgfcNumber numberValue1, SgfcNumber numberValue2) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcNumberPropertyValue objects, which have the SgfcNumber values numberValue1 and numberValue2.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedSimpleTextAndSimpleTextPropertyValue (const SgfcSimpleText &simpleTextValue1, const SgfcSimpleText &simpleTextValue2) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcSimpleTextPropertyValue objects, which have the SgfcSimpleText values simpleTextValue1 and simpleTextValue2.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedNumberAndSimpleTextPropertyValue (SgfcNumber numberValue, const SgfcSimpleText &simpleTextValue) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcNumberPropertyValue object and an ISgfcSimpleTextPropertyValue object, which have the SgfcNumber and SgfcSimpleText values numberValue and simpleTextValue, respectively.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedPointAndPointPropertyValue (const SgfcPoint &pointValue1, const SgfcPoint &pointValue2) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcPointPropertyValue objects, which have the SgfcPoint values pointValue1 and pointValue2, respectively.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedPointAndSimpleTextPropertyValue (const SgfcPoint &pointValue, const SgfcSimpleText &simpleTextValue) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcPointPropertyValue object and an ISgfcSimpleTextPropertyValue object, which have the SgfcPoint and SgfcSimpleText values pointValue and simpleTextValue, respectively.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedStoneAndPointPropertyValue (const SgfcStone &stoneValue, const SgfcPoint &pointValue) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcStonePropertyValue object and an ISgfcPointPropertyValue object, which have the SgfcStone and SgfcPoint values stoneValue and pointValue, respectively.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateCustomComposedPropertyValue (std::shared_ptr< ISgfcSinglePropertyValue > valueObject1, std::shared_ptr< ISgfcSinglePropertyValue > valueObject2) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcSinglePropertyValue objects valueObject1 and valueObject2.
 
Composed property values - Go game value types
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedGoPointAndGoPointPropertyValue (const SgfcPoint &pointValue1, const SgfcPoint &pointValue2, SgfcBoardSize boardSize) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcGoPointPropertyValue objects, which have the SgfcPoint values pointValue1 and pointValue2, respectively.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedGoPointAndSimpleTextPropertyValue (const SgfcPoint &pointValue, SgfcBoardSize boardSize, const SgfcSimpleText &simpleTextValue) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcGoPointPropertyValue object and an ISgfcSimpleTextPropertyValue object, which have the SgfcPoint and SgfcSimpleText values pointValue and simpleTextValue, respectively.
 
virtual std::shared_ptr< ISgfcComposedPropertyValueCreateComposedGoStoneAndPointPropertyValue (const SgfcStone &stoneValue, SgfcColor color, const SgfcPoint &pointValue, SgfcBoardSize boardSize) const override
 Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcGoStonePropertyValue object and an ISgfcGoPointPropertyValue object, which have the SgfcStone and SgfcPoint values stoneValue and pointValue, respectively.
 
- Public Member Functions inherited from LibSgfcPlusPlus::ISgfcPropertyValueFactory
 ISgfcPropertyValueFactory ()
 Initializes a newly constructed ISgfcPropertyValueFactory object.
 
virtual ~ISgfcPropertyValueFactory ()
 Destroys and cleans up the ISgfcPropertyValueFactory object.
 

Detailed Description

The SgfcPropertyValueFactory class provides an implementation of the ISgfcPropertyValueFactory interface. See the interface header file for documentation.

Member Function Documentation

◆ CreateBoardSizePropertyValue()

std::shared_ptr< ISgfcPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateBoardSizePropertyValue ( SgfcBoardSize boardSize,
SgfcGameType gameType ) const
overridevirtual

Returns a newly constructed ISgfcPropertyValue object that has a value that corresponds to boardSize. boardSize must be valid. gameType must be provided for validating boardSize. gameType must not be SgfcGameType::Unknown.

The returned ISgfcPropertyValue object is an ISgfcNumberPropertyValue object if SgfcBoardSize::IsSquare() returns true for boardSize.

The returned ISgfcPropertyValue object is an ISgfcComposedPropertyValue object consisting of two ISgfcNumberPropertyValue objects if SgfcBoardSize::IsSquare() returns false for boardSize.

Exceptions
std::invalid_argumentIs thrown if gameType is SgfcGameType::Unknown, or if boardSize is not valid, i.e. if it's IsValid() method returns false.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateColorPropertyValue()

std::shared_ptr< ISgfcColorPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateColorPropertyValue ( SgfcColor colorValue) const
overridevirtual

Returns a newly constructed ISgfcColorPropertyValue object that has the SgfcColor value colorValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedGoPointAndGoPointPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedGoPointAndGoPointPropertyValue ( const SgfcPoint & pointValue1,
const SgfcPoint & pointValue2,
SgfcBoardSize boardSize ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcGoPointPropertyValue objects, which have the SgfcPoint values pointValue1 and pointValue2, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedGoPointAndSimpleTextPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedGoPointAndSimpleTextPropertyValue ( const SgfcPoint & pointValue,
SgfcBoardSize boardSize,
const SgfcSimpleText & simpleTextValue ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcGoPointPropertyValue object and an ISgfcSimpleTextPropertyValue object, which have the SgfcPoint and SgfcSimpleText values pointValue and simpleTextValue, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedGoStoneAndPointPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedGoStoneAndPointPropertyValue ( const SgfcStone & stoneValue,
SgfcColor color,
const SgfcPoint & pointValue,
SgfcBoardSize boardSize ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcGoStonePropertyValue object and an ISgfcGoPointPropertyValue object, which have the SgfcStone and SgfcPoint values stoneValue and pointValue, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedNumberAndNumberPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedNumberAndNumberPropertyValue ( SgfcNumber numberValue1,
SgfcNumber numberValue2 ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcNumberPropertyValue objects, which have the SgfcNumber values numberValue1 and numberValue2.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedNumberAndSimpleTextPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedNumberAndSimpleTextPropertyValue ( SgfcNumber numberValue,
const SgfcSimpleText & simpleTextValue ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcNumberPropertyValue object and an ISgfcSimpleTextPropertyValue object, which have the SgfcNumber and SgfcSimpleText values numberValue and simpleTextValue, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedPointAndPointPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedPointAndPointPropertyValue ( const SgfcPoint & pointValue1,
const SgfcPoint & pointValue2 ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcPointPropertyValue objects, which have the SgfcPoint values pointValue1 and pointValue2, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedPointAndSimpleTextPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedPointAndSimpleTextPropertyValue ( const SgfcPoint & pointValue,
const SgfcSimpleText & simpleTextValue ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcPointPropertyValue object and an ISgfcSimpleTextPropertyValue object, which have the SgfcPoint and SgfcSimpleText values pointValue and simpleTextValue, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedSimpleTextAndSimpleTextPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedSimpleTextAndSimpleTextPropertyValue ( const SgfcSimpleText & simpleTextValue1,
const SgfcSimpleText & simpleTextValue2 ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcSimpleTextPropertyValue objects, which have the SgfcSimpleText values simpleTextValue1 and simpleTextValue2.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateComposedStoneAndPointPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateComposedStoneAndPointPropertyValue ( const SgfcStone & stoneValue,
const SgfcPoint & pointValue ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of an ISgfcStonePropertyValue object and an ISgfcPointPropertyValue object, which have the SgfcStone and SgfcPoint values stoneValue and pointValue, respectively.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateCustomComposedPropertyValue()

std::shared_ptr< ISgfcComposedPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateCustomComposedPropertyValue ( std::shared_ptr< ISgfcSinglePropertyValue > valueObject1,
std::shared_ptr< ISgfcSinglePropertyValue > valueObject2 ) const
overridevirtual

Returns a newly constructed ISgfcComposedPropertyValue object that consists of two ISgfcSinglePropertyValue objects valueObject1 and valueObject2.

Exceptions
std::invalid_argumentIs thrown if value1 is nullptr or if value2 is nullptr.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateCustomPropertyValue()

std::shared_ptr< ISgfcSinglePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateCustomPropertyValue ( const std::string & value) const
overridevirtual

Returns a newly constructed ISgfcSinglePropertyValue object that has the string value value. The object has value type SgfcPropertyValueType::Unknown.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateDoublePropertyValue()

std::shared_ptr< ISgfcDoublePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateDoublePropertyValue ( SgfcDouble doubleValue) const
overridevirtual

Returns a newly constructed ISgfcDoublePropertyValue object that has the SgfcDouble value doubleValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateGameTypePropertyValue()

std::shared_ptr< ISgfcNumberPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateGameTypePropertyValue ( SgfcGameType gameType) const
overridevirtual

Returns a newly constructed ISgfcNumberPropertyValue object that has an SgfcNumber value that corresponds to gameType. gameType must not be SgfcGameType::Unknown.

Exceptions
std::invalid_argumentIs thrown if gameType is SgfcGameType::Unknown.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateGoMovePropertyValue() [1/2]

std::shared_ptr< ISgfcGoMovePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateGoMovePropertyValue ( const SgfcMove & moveValue,
SgfcBoardSize boardSize,
SgfcColor color ) const
overridevirtual

Returns a newly constructed ISgfcGoMovePropertyValue object that has the SgfcMove value moveValue. color is the color of the player who made the move. The move is not a pass move. boardSize indicates the size of the Go board that the Go move is played on.

moveValue refers to the location (a Go point) of the stone that is placed by the move on the board. moveValue can be given in any one of the notations enumerated in SgfcGoPointNotation.

Regardless of the notation in which moveValue is given, the resulting ISgfcGoMovePropertyValue object uses the SGF notation as the raw property value.

Exceptions
std::invalid_argumentIs thrown if boardSize refers to a board with size smaller than the minimum required by the SGF standard (SgfcConstants::BoardSizeMinimum), or a board with size larger than the maximum allowed by the SGF standard (SgfcConstants::BoardSizeMaximumGo). Is also thrown if moveValue is not given in one of the notations enumerated in SgfcGoPointNotation, or if moveValue violates one of the restrictions imposed by the used notation (e.g. y-axis compound larger than 25 when SgfcGoPointNotation::Hybrid is used), or if moveValue refers to an invalid location on the board (e.g. an x-axis or y-axis location that exceeds the board size specified by boardSize, or a compound < 1 when SgfcGoPointNotation::Figure is used).

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateGoMovePropertyValue() [2/2]

std::shared_ptr< ISgfcGoMovePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateGoMovePropertyValue ( SgfcColor color) const
overridevirtual

Returns a newly constructed ISgfcGoMovePropertyValue object that has no value. color is the color of the player who made the move. The move is a pass move.

The resulting ISgfcGoMovePropertyValue object uses SgfcConstants::GoMovePassString as the raw property value.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateGoPointPropertyValue()

std::shared_ptr< ISgfcGoPointPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateGoPointPropertyValue ( const SgfcPoint & pointValue,
SgfcBoardSize boardSize ) const
overridevirtual

Returns a newly constructed ISgfcGoPointPropertyValue object that has the SgfcPoint value pointValue. boardSize indicates the size of the Go board that the Go point is located on.

pointValue can be given in any one of the notations enumerated in SgfcGoPointNotation.

Regardless of the notation in which pointValue is given, the resulting ISgfcGoPointPropertyValue object uses the SGF notation as the raw property value.

Exceptions
std::invalid_argumentIs thrown if boardSize refers to a board with size smaller than the minimum required by the SGF standard (SgfcConstants::BoardSizeMinimum), or a board with size larger than the maximum allowed by the SGF standard (SgfcConstants::BoardSizeMaximumGo). Is also thrown if pointValue is not given in one of the notations enumerated in SgfcGoPointNotation, or if pointValue violates one of the restrictions imposed by the used notation (e.g. y-axis compound larger than 25 when SgfcGoPointNotation::Hybrid is used), or if pointValue refers to an invalid location on the board (e.g. an x-axis or y-axis location that exceeds the board size specified by boardSize, or a compound < 1 when SgfcGoPointNotation::Figure is used).

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateGoStonePropertyValue()

std::shared_ptr< ISgfcGoStonePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateGoStonePropertyValue ( const SgfcStone & stoneValue,
SgfcBoardSize boardSize,
SgfcColor color ) const
overridevirtual

Returns a newly constructed ISgfcGoStonePropertyValue object that has the SgfcStone value stoneValue. color is the color of the stone. boardSize indicates the size of the Go board that the Go stone is located on.

stoneValue refers to the Go point on which the stone is located. stoneValue can be given in any one of the notations enumerated in SgfcGoPointNotation.

Regardless of the notation in which stoneValue is given, the resulting ISgfcGoStonePropertyValue object uses the SGF notation as the raw property value.

Exceptions
std::invalid_argumentIs thrown if boardSize refers to a board with size smaller than the minimum required by the SGF standard (SgfcConstants::BoardSizeMinimum), or a board with size larger than the maximum allowed by the SGF standard (SgfcConstants::BoardSizeMaximumGo). Is also thrown if stoneValue is not given in one of the notations enumerated in SgfcGoPointNotation, or if stoneValue violates one of the restrictions imposed by the used notation (e.g. y-axis compound larger than 25 when SgfcGoPointNotation::Hybrid is used), or if stoneValue refers to an invalid location on the board (e.g. an x-axis or y-axis location that exceeds the board size specified by boardSize, or a compound < 1 when SgfcGoPointNotation::Figure is used).

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateMovePropertyValue()

std::shared_ptr< ISgfcMovePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateMovePropertyValue ( const SgfcMove & moveValue) const
overridevirtual

Returns a newly constructed ISgfcMovePropertyValue object that has the SgfcMove value moveValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateNumberPropertyValue()

std::shared_ptr< ISgfcNumberPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateNumberPropertyValue ( SgfcNumber numberValue) const
overridevirtual

Returns a newly constructed ISgfcNumberPropertyValue object that has the SgfcNumber value numberValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreatePointPropertyValue()

std::shared_ptr< ISgfcPointPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreatePointPropertyValue ( const SgfcPoint & pointValue) const
overridevirtual

Returns a newly constructed ISgfcPointPropertyValue object that has the SgfcPoint value pointValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateRealPropertyValue()

std::shared_ptr< ISgfcRealPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateRealPropertyValue ( SgfcReal realValue) const
overridevirtual

Returns a newly constructed ISgfcRealPropertyValue object that has the SgfcReal value realValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateSimpleTextPropertyValue()

std::shared_ptr< ISgfcSimpleTextPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateSimpleTextPropertyValue ( const SgfcSimpleText & simpleTextValue) const
overridevirtual

Returns a newly constructed ISgfcSimpleTextPropertyValue object that has the SgfcSimpleText value simpleTextValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateStonePropertyValue()

std::shared_ptr< ISgfcStonePropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateStonePropertyValue ( const SgfcStone & stoneValue) const
overridevirtual

Returns a newly constructed ISgfcStonePropertyValue object that has the SgfcStone value stoneValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.

◆ CreateTextPropertyValue()

std::shared_ptr< ISgfcTextPropertyValue > LibSgfcPlusPlus::SgfcPropertyValueFactory::CreateTextPropertyValue ( const SgfcText & textValue) const
overridevirtual

Returns a newly constructed ISgfcTextPropertyValue object that has the SgfcText value textValue.

Implements LibSgfcPlusPlus::ISgfcPropertyValueFactory.


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