The ISgfcArguments interface represents a collection of arguments to be passed on to SGFC when it reads or writes SGF content.
More...
#include <ISgfcArguments.h>
The ISgfcArguments interface represents a collection of arguments to be passed on to SGFC when it reads or writes SGF content.
◆ AddArgument() [1/5]
virtual void LibSgfcPlusPlus::ISgfcArguments::AddArgument |
( |
SgfcArgumentType | argumentType | ) |
|
|
pure virtual |
Adds an argument to the end of the collection of arguments that make up the content of the ISgfcArguments object.
- Parameters
-
argumentType | The argument type. |
- Exceptions
-
std::invalid_argument | is thrown if argumentType requires a parameter, or if the collection already contains an argument with the same type as argumentType. |
Implemented in LibSgfcPlusPlus::SgfcArguments.
◆ AddArgument() [2/5]
virtual void LibSgfcPlusPlus::ISgfcArguments::AddArgument |
( |
SgfcArgumentType | argumentType, |
|
|
const std::string & | parameter ) |
|
pure virtual |
Adds an argument to the end of the collection of arguments that make up the content of the ISgfcArguments object.
- Parameters
-
argumentType | The argument type. |
parameter | The argument's string type parameter. |
- Exceptions
-
std::invalid_argument | is thrown if argumentType does not require a string type parameter, or if argumentType does not support multiple specifications but the collection already contains an argument with the same type as argumentType, or if argumentType supports multiple specifications but the collection already contains an argument with an argument type / parameter combination that is equal to argumentType and parameter. |
Implemented in LibSgfcPlusPlus::SgfcArguments.
◆ AddArgument() [3/5]
virtual void LibSgfcPlusPlus::ISgfcArguments::AddArgument |
( |
SgfcArgumentType | argumentType, |
|
|
int | parameter ) |
|
pure virtual |
Adds an argument to the end of the collection of arguments that make up the content of the ISgfcArguments object.
- Parameters
-
argumentType | The argument type. |
parameter | The argument's integer type parameter. |
- Exceptions
-
std::invalid_argument | is thrown if argumentType does not require an integer type parameter, or if argumentType does not support multiple specifications but the collection already contains an argument with the same type as argumentType, or if argumentType supports multiple specifications but the collection already contains an argument with an argument type / parameter combination that is equal to argumentType and parameter. |
Implemented in LibSgfcPlusPlus::SgfcArguments.
◆ AddArgument() [4/5]
Adds an argument to the end of the collection of arguments that make up the content of the ISgfcArguments object.
- Parameters
-
argumentType | The argument type. |
parameter | The argument's SgfcMessageID parameter. |
- Exceptions
-
std::invalid_argument | is thrown if argumentType does not require an SgfcMessageID parameter, or if argumentType does not support multiple specifications but the collection already contains an argument with the same type as argumentType, or if argumentType supports multiple specifications but the collection already contains an argument with an argument type / parameter combination that is equal to argumentType and parameter, or if parameter is a message ID not known to SGFC (libsgfc++ message IDs with an underlying negative numeric value, or SgfcMessageID::UnknownSgfcMessageID). |
Implemented in LibSgfcPlusPlus::SgfcArguments.
◆ AddArgument() [5/5]
Adds an argument to the end of the collection of arguments that make up the content of the ISgfcArguments object.
- Parameters
-
argumentType | The argument type. |
parameter | The argument's SgfcPropertyType parameter. |
- Exceptions
-
std::invalid_argument | is thrown if argumentType does not require an SgfcPropertyType parameter, or if argumentType does not support multiple specifications but the collection already contains an argument with the same type as argumentType, or if argumentType supports multiple specifications but the collection already contains an argument with an argument type / parameter combination that is equal to argumentType and parameter. |
Implemented in LibSgfcPlusPlus::SgfcArguments.
◆ ClearArguments()
virtual void LibSgfcPlusPlus::ISgfcArguments::ClearArguments |
( |
| ) |
|
|
pure virtual |
◆ GetArguments()
virtual std::vector< std::shared_ptr< ISgfcArgument > > LibSgfcPlusPlus::ISgfcArguments::GetArguments |
( |
| ) |
const |
|
pure virtual |
◆ HasArguments()
virtual bool LibSgfcPlusPlus::ISgfcArguments::HasArguments |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files:
- /Users/patrick/dev/libsgfcplusplus/include/ISgfcArguments.h
- /Users/patrick/dev/libsgfcplusplus/src/interface/public/ISgfcArguments.cpp