AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ACommandLineArgs Class Reference

Simple command line arguments parser. More...

Detailed Description

Simple command line arguments parser.

See also
aui::args()

Public Member Functions

AOptional< AStringvalue (const AString &flagName) const
 Finds –key=value style argument. More...
 
 AStringVector ()
 
 AStringVector (const AVector< AString > &v)
 
template<typename Iterator >
 AStringVector (Iterator begin, Iterator end)
 
 AStringVector (const std::allocator< AString > &allocator)
 
 AStringVector (super::size_type _Count, const std::allocator< AString > &allocator)
 
 AStringVector (super::size_type _Count, const AString &_Val, const std::allocator< AString > &allocator)
 
 AStringVector (std::initializer_list< AString > _Ilist, const std::allocator< AString > &allocator=std::allocator< AString >())
 
- Public Member Functions inherited from AStringVector
 AStringVector (const AVector< AString > &v)
 
template<typename Iterator >
 AStringVector (Iterator begin, Iterator end)
 
 AStringVector (const std::allocator< AString > &allocator)
 
 AStringVector (super::size_type _Count, const std::allocator< AString > &allocator)
 
 AStringVector (super::size_type _Count, const AString &_Val, const std::allocator< AString > &allocator)
 
 AStringVector (std::initializer_list< AString > _Ilist, const std::allocator< AString > &allocator=std::allocator< AString >())
 
AStringVectornoEmptyStrings ()
 
AString join (wchar_t w) const
 
AString join (const AString &w) const
 
- Public Member Functions inherited from AVector< AString >
 AVector (aui::range< Iterator > range)
 
 AVector (std::vector< AString, Allocator > &&rhs) noexcept
 
iterator insertAll (const OtherContainer &c) noexcept
 
iterator insertAll (OtherContainer &&c) noexcept
 
iterator insertAll (iterator at, const OtherContainer &c) noexcept
 
iterator insertAll (iterator at, OtherContainer &&c) noexcept
 
void removeAll (const AString &item) noexcept
 
void removeAll (const T &item, Projection projection) noexcept
 
AOptional< std::size_t > removeFirst (const AString &item) noexcept
 
bool isSubsetOf (const OtherContainer &c) const noexcept
 
bool contains (const AString &value) const noexcept
 
std::size_t sizeInBytes () const noexcept
 
AStringat (std::size_t index)
 
const AStringat (std::size_t index) const
 
selfoperator<< (const AString &rhs) noexcept
 
selfoperator<< (AString &&rhs) noexcept
 
selfoperator<< (const OtherContainer &c) noexcept
 
selfoperator<< (OtherContainer &&c) noexcept
 
AStringfirst () noexcept
 
const AStringfirst () const noexcept
 
AStringlast () noexcept
 
const AStringlast () const noexcept
 
size_t indexOf (const AString &value) const noexcept
 
AVector< AString > & sort () noexcept
 
AVector< AString > & sort (Comparator &&comparator) noexcept
 
AStringfindIf (Predicate &&predicate) noexcept
 Finds element by predicate. More...
 
void removeAt (size_t index) noexcept
 
void removeIf (Predicate &&predicate) noexcept
 
void removeIfFirst (Predicate &&predicate) noexcept
 
ASet< AStringtoSet () const noexcept
 
auto map (UnaryOperation &&transformer) -> AVector< decltype(transformer(std::declval< AString & >()))>
 
auto map (UnaryOperation &&transformer) const -> AVector< decltype(transformer(std::declval< AString >()))>
 
auto toMap (UnaryOperation &&transformer) const -> AMap< decltype(transformer(std::declval< AString >()).first), decltype(transformer(std::declval< AString >()).second)>
 
auto toMap (UnaryOperation &&transformer) -> AMap< decltype(transformer(std::declval< AString >()).first), decltype(transformer(std::declval< AString >()).second)>
 
self filter (Predicate &&predicate)
 

Additional Inherited Members

- Public Types inherited from AVector< AString >
using iterator = typename super::iterator
 
- Static Public Member Functions inherited from AVector< AString >
static AVector< AString, Allocator > generate (size_t size, Callable &&callable) noexcept
 
static auto fromRange (aui::range< Iterator > range, UnaryOperation &&transformer) -> AVector< decltype(transformer(range.first()))>
 Constructs a new vector of transformed items of the range. More...
 
- Protected Types inherited from AVector< AString >
using super = std::vector< AString, Allocator >
 
using self = AVector< AString, Allocator >
 

Member Function Documentation

◆ value()

AOptional< AString > ACommandLineArgs::value ( const AString flagName) const

Finds –key=value style argument.

Parameters
flagNamekey name (without 2 dashes)
Returns
value, if presented

#include <AUI/Util/ACommandLineArgs.h>


The documentation for this class was generated from the following files:
Inheritance diagram for ACommandLineArgs:
Collaboration diagram for ACommandLineArgs: