STE-Industries: utilities testing
|
#include "EnumeratedParameterDescriptor.h"
Public Member Functions | |
EnumeratedParameterDescriptor (const char *thisName, ENUMERATED_TYPE Bitmap::CorrectionParameters::*thisParameterPointer, EnumeratedExceptionType thisException) noexcept | |
virtual | ~EnumeratedParameterDescriptor (void) noexcept=default |
void | Assign (const char *String, Bitmap::CorrectionParameters &Parameters) const noexcept(false) override |
void | PrintUsage (const Bitmap::CorrectionParameters &DefaultParameters) const noexcept(false) override |
![]() | |
const char * | GetName (void) const noexcept |
Private Member Functions | |
EnumeratedParameterDescriptor (const EnumeratedParameterDescriptor &Descriptor) noexcept=delete | |
EnumeratedParameterDescriptor (EnumeratedParameterDescriptor &&Descriptor) noexcept=delete | |
unsigned int | GetNumberOfValues (void) const noexcept |
unsigned int | GetNumberOfValues (void) const noexcept |
unsigned int | GetNumberOfValues (void) const noexcept |
void | operator= (const EnumeratedParameterDescriptor &Descriptor) noexcept=delete |
void | operator= (EnumeratedParameterDescriptor &&Descriptor) noexcept=delete |
const char *const | ValueString [] |
Template specialization valid when ENUMERATED_TYPE is ChoiceType. More... | |
const char *const | ValueString [] |
Template specialization valid when ENUMERATED_TYPE is bool. More... | |
Private Attributes | |
EnumeratedExceptionType | ExceptionKind |
ENUMERATED_TYPE Bitmap::CorrectionParameters::* | ParameterPointer |
Static Private Attributes | |
static constexpr char | SEPARATOR_CHARACTER |
static constexpr const char * | UsageFormatHead |
static constexpr const char * | UsageFormatString |
static constexpr const char * | UsageFormatTail |
static const char *const | ValueString [] |
Additional Inherited Members | |
![]() | |
static constexpr char | EQUAL_CHARACTER = '=' |
![]() | |
ParameterDescriptor (const char *thisName) noexcept | |
virtual | ~ParameterDescriptor (void) noexcept |
The EnumeratedParameterDescriptor class template represents the descriptor of a command line parameter with enumerated value.
ENUMERATED_TYPE | The type of the parameter; it must be an enumerated type. |
Definition at line 37 of file EnumeratedParameterDescriptor.h.
|
privatedeletenoexcept |
|
privatedeletenoexcept |
|
inlinenoexcept |
thisName | Pointer to the string containing the name of the parameter. |
thisParameterPointer | Member pointer to the parameter within the CorrectionParameter struct. |
thisException | The kind of exception that is generated if an enumerated command line parameter is not correct. |
None. |
Definition at line 41 of file EnumeratedParameterDescriptor.tpl.
|
virtualdefaultnoexcept |
|
overridevirtualnoexcept |
String | Pointer to the string containing the value of the parameter. |
Parameters | Reference to the CorrectionParameter struct to modify with the new value. |
ExceptionKind | If String does not begin with an equal sign or String does not correspond to a enumerated value. |
Reimplemented from GraphicSpace::ParameterDescriptor.
Definition at line 75 of file EnumeratedParameterDescriptor.tpl.
References END_STRING.
|
privatenoexcept |
None. |
Definition at line 41 of file ChoiceParameterDescriptor.cpp.
References NumberOfElements.
|
privatenoexcept |
None. |
Definition at line 40 of file BooleanParameterDescriptor.cpp.
References NumberOfElements.
|
privatenoexcept |
|
privatedeletenoexcept |
|
privatedeletenoexcept |
|
overridevirtualnoexcept |
DefaultParameters | Reference to the CorrectionParameter struct which contains the default parameters. |
FileExceptionType::FILE_WRITE_ERROR | If an error occurs while writing the string. |
Reimplemented from GraphicSpace::ParameterDescriptor.
Definition at line 117 of file EnumeratedParameterDescriptor.tpl.
References DefaultParameters, GraphicSpace::FILE_WRITE_ERROR, and STANDARD_OUTPUT.
|
private |
Template specialization valid when ENUMERATED_TYPE is bool.
Definition at line 24 of file BooleanParameterDescriptor.cpp.
|
private |
Template specialization valid when ENUMERATED_TYPE is ChoiceType.
Definition at line 24 of file ChoiceParameterDescriptor.cpp.
|
private |
The kind of exception that is generated if an enumerated command line parameter is not correct.
Definition at line 50 of file EnumeratedParameterDescriptor.h.
|
private |
Member pointer to the parameter within the CorrectionParameter struct.
Definition at line 45 of file EnumeratedParameterDescriptor.h.
|
staticconstexprprivate |
Character used to separate the possible values of an enumerated parameter.
Definition at line 76 of file EnumeratedParameterDescriptor.h.
|
staticconstexprprivate |
Format used to write the first part of the usage message related to an enumerated parameter.
Definition at line 60 of file EnumeratedParameterDescriptor.h.
|
staticconstexprprivate |
Format used to write a value of an enumerated parameter.
Definition at line 64 of file EnumeratedParameterDescriptor.h.
|
staticconstexprprivate |
Format used to write the first part of the usage message related to an enumerated parameter.
Definition at line 70 of file EnumeratedParameterDescriptor.h.
|
staticprivate |
Array of strings used to specify the possible values of an enumerated parameter.
Definition at line 55 of file EnumeratedParameterDescriptor.h.