110 template<
typename TEnum>
119 if(
record.valueListSeparator ==
'C' )
120 record.valueListSeparator=
',';
138 return record.EnumElementName;
154 return record.MinimumRecognitionLength;
162 return record.valueSeparator;
169 return record.valueListSeparator !=
'C' ?
record.valueListSeparator :
',';
178 return record.RequiredArguments;
305 template<
typename TEnum>
325 return record.EnumElementName;
332 return record.MinimumRecognitionLength;
339 return record.identifierChar.IsNotEmpty() ?
record.identifierChar.CharAtStart()
348 return record.valueSeparator;
356 return record.RequiredArguments;
363 return record.shortcutReplacementString;
480 template<
typename TEnum>
495 return record.EnumElementName;
502 return record.MinimumRecognitionLength;
534 void addParamDecls();
626 template<
typename TEnum>
639 return record.EnumElementName;
ERCommandDecl record
A copy (!) of the enum record.
CommandLine & CmdLine
The command line instance we belong to.
int MinimumRecognitionLength()
CommandDecl(TEnum element, CommandLine &cmdLine)
const Enum & Element() const
const String & Identifier()
ResourceInfo resourceInfo
The resource information of the enumeration type given with construction.
const String & HelpTextShort()
List< MonoAllocator, ParameterDecl * > Parameters
Command parameters.
Enum declElement
The enumeration element given with construction.
const String & HelpTextLong()
const String & FormatString()
ResourceInfo resourceInfo
The resource information of the enumeration type given with construction.
ExitCodeDecl(TEnum element)
cli::Exceptions AssociatedCLIException()
Enum declElement
The enumeration element given with construction.
ERExitCodeDecl record
A copy (!) of the enum record.
OptionDecl(TEnum element)
int MinimumRecognitionLength()
const Enum & Element() const
EROptionDecl record
A copy (!) of the enum record.
const String & ValueSeparator()
Enum declElement
The enumeration element given with construction.
integer QtyExpectedArgsFollowing()
ResourceInfo resourceInfo
The resource information of the enumeration type given with construction.
const String & HelpUsageLine()
const String & ShortcutReplacementString()
const String & HelpText()
const String & Identifier()
character IdentifierChar()
const String & Identifier()
ParameterDecl(TEnum element)
const Enum & Element() const
nchar ValueListSeparator()
const String & GetHelpTextLong()
const String & GetHelpTextShort()
ERParameterDecl record
A copy (!) of the enum record.
int MinimumRecognitionLength()
ResourceInfo resourceInfo
The resource information of the enumeration type given with construction.
Enum declElement
The enumeration element given with construction.
int QtyExpectedArgsFollowing()
const String & ValueSeparator()
const RecordsTraits< TEnum >::Type & GetRecord(TEnum element)
NLocalString< 64 > NString64
Type alias name for TLocalString<nchar,64>.
LocalString< 64 > String64
Type alias name for TLocalString<character,64>.
lang::integer integer
Type alias in namespace alib.
characters::nchar nchar
Type alias in namespace alib.
boxing::Enum Enum
Type alias in namespace alib.
resources::ResourceInfo ResourceInfo
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
characters::character character
Type alias in namespace alib.
containers::List< TAllocator, T, TRecycling > List
Type alias in namespace alib.
ALIB_DLL Parameter * GetParsedParameter(const String &name)
ALIB_DLL bool Read(CommandDecl &decl)
ALIB_DLL String GetParsedParameterArg(const String &name)
CommandDecl * Declaration
The underlying declaration.
Command(CommandLine *cmdLine)
List< MonoAllocator, Parameter *, Recycling::Shared > ParametersOptional
Optional parameters parsed.
List< MonoAllocator, Parameter *, Recycling::Shared > ParametersMandatory
Mandatory parameters parsed.
ALib Enum Record type used by class CommandDecl.
ALIB_DLL void Parse()
Implementation of EnumRecordPrototype::Parse.
String parameters
List of parameters attached. Separated by '/'.
ERCommandDecl() noexcept=default
int associatedCLIException
The CLI module exception associated to this exit code.
ERExitCodeDecl() noexcept
ALib Enum Record type used by class OptionDecl.
integer RequiredArguments
EROptionDecl() noexcept=default
ALIB_DLL void Parse()
Implementation of EnumRecordPrototype::Parse.
String shortcutReplacementString
ALib Enum Record type used by class ParameterDecl.
ALIB_DLL void Parse()
Implementation of EnumRecordPrototype::Parse.
ERParameterDecl() noexcept=default
String identifier
The identifier of the parameter.
bool isOptional
Denotes if this is an optional parameter.
List< MonoAllocator, String, Recycling::Shared > Args
Arguments belonging to this option.
OptionDecl * Declaration
The declaration struct.
ALIB_DLL bool Read(OptionDecl &decl, String &arg, const integer argNo)
Option(CommandLine *cmdLine)
A declaration for a cli::Parameter.
Parameter(CommandLine *cmdLine)
ParameterDecl * Declaration
The underlying declaration.
List< MonoAllocator, String, Recycling::Shared > Args
Arguments belonging to us.
ALIB_DLL bool Read(ParameterDecl &decl)
Parsed(CommandLine *cmdLine)
integer ConsumedArguments
CommandLine * CmdLine
The cli command line.
ERSerializable() noexcept=default
Defaulted constructor leaving the record undefined.