|
libsgfc++ 3.0.0
A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
|
The ISgfcArgument interface represents a single argument to be passed on to SGFC when it reads or writes SGF content. Depending on the argument type, the argument may have a parameter. More...
#include <ISgfcArgument.h>

Public Member Functions | |
| ISgfcArgument () | |
| Initializes a newly constructed ISgfcArgument object. | |
| virtual | ~ISgfcArgument () |
| Destroys and cleans up the ISgfcArgument object. | |
| virtual SgfcArgumentType | GetArgumentType () const =0 |
| Returns the argument type. | |
| virtual bool | HasIntegerTypeParameter () const =0 |
| Returns true if the argument has an integer type parameter. | |
| virtual int | GetIntegerTypeParameter () const =0 |
| Returns the argument's integer type parameter value. The return value is undefined if HasIntegerTypeParameter() returns false. | |
| virtual bool | HasStringTypeParameter () const =0 |
| Returns true if the argument has a string type parameter. | |
| virtual std::string | GetStringTypeParameter () const =0 |
| Returns the argument's string type parameter value. The return value is undefined if HasStringTypeParameter() returns false. | |
| virtual bool | HasPropertyTypeParameter () const =0 |
| Returns true if the argument has an SgfcPropertyType parameter. | |
| virtual SgfcPropertyType | GetPropertyTypeParameter () const =0 |
| Returns the argument's SgfcPropertyType parameter value. The return value is undefined if HasPropertyTypeParameter() returns false. | |
| virtual bool | HasMessageIDParameter () const =0 |
| Returns true if the argument has an SgfcMessageID parameter. | |
| virtual SgfcMessageID | GetMessageIDParameter () const =0 |
| Returns the argument's SgfcMessageID parameter value. The return value is undefined if HasMessageIDParameter() returns false. | |
| virtual bool | HasStringRepresentation () const =0 |
| Returns true if the argument has a string representation, i.e. if ToString() can be invoked. | |
| virtual std::string | ToString () const =0 |
| Returns the argument as a string, exactly as it would be specified on the SGFC command line. Examples: -n, -b1, -yMA. The return value is undefined if HasStringRepresentation() returns false. | |
The ISgfcArgument interface represents a single argument to be passed on to SGFC when it reads or writes SGF content. Depending on the argument type, the argument may have a parameter.
|
pure virtual |
Returns the argument type.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns the argument's integer type parameter value. The return value is undefined if HasIntegerTypeParameter() returns false.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns the argument's SgfcMessageID parameter value. The return value is undefined if HasMessageIDParameter() returns false.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns the argument's SgfcPropertyType parameter value. The return value is undefined if HasPropertyTypeParameter() returns false.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns the argument's string type parameter value. The return value is undefined if HasStringTypeParameter() returns false.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns true if the argument has an integer type parameter.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns true if the argument has an SgfcMessageID parameter.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns true if the argument has an SgfcPropertyType parameter.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns true if the argument has a string representation, i.e. if ToString() can be invoked.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns true if the argument has a string type parameter.
Implemented in LibSgfcPlusPlus::SgfcArgument.
|
pure virtual |
Returns the argument as a string, exactly as it would be specified on the SGFC command line. Examples: -n, -b1, -yMA. The return value is undefined if HasStringRepresentation() returns false.
Implemented in LibSgfcPlusPlus::SgfcArgument.