The SgfcArguments class provides an implementation of the ISgfcArguments interface. See the interface header file for documentation.
More...
#include <SgfcArguments.h>
The SgfcArguments class provides an implementation of the ISgfcArguments interface. See the interface header file for documentation.
◆ AddArgument() [1/5]
void LibSgfcPlusPlus::SgfcArguments::AddArgument |
( |
SgfcArgumentType | argumentType | ) |
|
|
overridevirtual |
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. |
Implements LibSgfcPlusPlus::ISgfcArguments.
◆ AddArgument() [2/5]
void LibSgfcPlusPlus::SgfcArguments::AddArgument |
( |
SgfcArgumentType | argumentType, |
|
|
const std::string & | parameter ) |
|
overridevirtual |
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. |
Implements LibSgfcPlusPlus::ISgfcArguments.
◆ AddArgument() [3/5]
void LibSgfcPlusPlus::SgfcArguments::AddArgument |
( |
SgfcArgumentType | argumentType, |
|
|
int | parameter ) |
|
overridevirtual |
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. |
Implements LibSgfcPlusPlus::ISgfcArguments.
◆ 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). |
Implements LibSgfcPlusPlus::ISgfcArguments.
◆ 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. |
Implements LibSgfcPlusPlus::ISgfcArguments.
◆ ClearArguments()
void LibSgfcPlusPlus::SgfcArguments::ClearArguments |
( |
| ) |
|
|
overridevirtual |
◆ GetArguments()
std::vector< std::shared_ptr< ISgfcArgument > > LibSgfcPlusPlus::SgfcArguments::GetArguments |
( |
| ) |
const |
|
overridevirtual |
◆ HasArguments()
bool LibSgfcPlusPlus::SgfcArguments::HasArguments |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- /Users/patrick/dev/libsgfcplusplus/src/sgfc/argument/SgfcArguments.h
- /Users/patrick/dev/libsgfcplusplus/src/sgfc/argument/SgfcArguments.cpp