 |
ALib C++ Library
|
Library Version: 1912 R0
Documentation generated by
|
Go to the documentation of this file.
8 #ifndef HPP_ALIB_CLI_CLIAPP
9 #define HPP_ALIB_CLI_CLIAPP 1
11 #if !defined (HPP_ALIB_CLI_ARGUMENTS)
15 #if !defined(HPP_ALIB_COMPATIBILITY_STD_BOXING_FUNCTIONAL)
19 #if !defined (HPP_ALIB_MONOMEM_HASHMAP)
23 #if !defined (HPP_ALIB_MONOMEM_STDCONTAINERMA)
28 namespace aworx {
namespace lib {
namespace cli {
54 #if !defined(ALIB_DOX)
222 #if defined(ALIB_DOX)
230 template<
typename TEnum>
234 template<
typename TEnum>
251 #if defined(ALIB_DOX)
259 template<
typename TEnum>
263 template<
typename TEnum>
281 #if defined(ALIB_DOX)
289 template<
typename TEnum>
293 template<
typename TEnum>
294 ATMP_VOID_IF( EnumRecords<TEnum>::template AreOfType<EROptionDecl>() )
312 #if defined(ALIB_DOX)
320 template<
typename TEnum>
324 template<
typename TEnum>
325 ATMP_VOID_IF( EnumRecords<TEnum>::template AreOfType<ERExitCodeDecl>() )
466 return static_cast<integer>(
ArgStrings.size());
479 "Index out of bounds" )
530 , Args ( &Parent->allocator, parent->stringListRecycler )
535 , Args ( &Parent->allocator, parent->stringListRecycler )
538 template<
typename TEnum>
540 : declElement ( element )
541 , resourceInfo(element)
543 , Parameters (&Parent.allocator)
553 , ParametersMandatory( &Parent->allocator, parent->paramListRecycler )
554 , ParametersOptional ( &Parent->allocator, parent->paramListRecycler )
568 #endif // HPP_ALIB_CLI_CLIAPP
ALIB_FORCE_INLINE T * Emplace(TArgs &&... args)
ALIB_API void addParamDecls()
Option * GetOption(Enum element)
virtual integer ArgCount()
#define ATMP_VOID_IF(Cond)
lib::cli::CLIUtil CLIUtil
Type alias in namespace aworx.
platform_specific integer
std::vector< String, StdContMA< String > > ArgStrings
List< String, Recycling::Shared >::TSharedRecycler stringListRecycler
lib::strings::TString< character > String
Type alias in namespace aworx.
virtual ALIB_API void Init(Module *resModule)
static ForwardIterator begin()
virtual String Arg(integer idx)
ALIB_API void RemoveArg(integer argNo)
Parameter(CLIApp *parent)
List< Parameter *, Recycling::Shared >::TSharedRecycler paramListRecycler
static constexpr ForwardIterator end()
List< String, Recycling::Shared > OptionArgsIgnored
const wchar_t ** ArgWOriginal
std::vector< integer, StdContMA< integer > > ArgsLeft
virtual ALIB_API void ReadNextCommands()
lib::boxing::Enum Enum
Type alias in namespace aworx.
List< Command > CommandsParsed
List< Command >::Iterator NextCommandIt
HashMap< Enum, ExitCodeDecl * > ExitCodeDecls
#define ALIB_ASSERT_ERROR(cond,...)
const T_EnumRecords< TEnum >::Type & GetRecord(TEnum element)
lib::cli::CLIApp CLIApp
Type alias in namespace aworx.
List< CommandDecl * > CommandDecls
List< OptionDecl * > OptionDecls
virtual ALIB_API Command * NextCommand()
List< ParameterDecl * > ParameterDecls
virtual ALIB_API String PopArg()
CommandDecl(TEnum element, CLIApp &parent)
virtual ALIB_API void ReadOptions()
const char ** ArgNOriginal