| 1 | #cxx . . $ `<file>/application/argumentparserprivate.h`/ifndef APPLICATION_UTILITIES_ARGUMENTPARSER_PRIVATE_H |
| 2 | #define APPLICATION_UTILITIES_ARGUMENTPARSER_PRIVATE_Hcxx . . $ `application/argumentparserprivate.h:2:9`! |
| 3 | |
| 4 | #include "./argumentparser.h"cxx . . $ `<file>/application/argumentparser.h`/ |
| 5 | #include "./commandlineutils.h"cxx . . $ `<file>/application/commandlineutils.h`/ |
| 6 | |
| 7 | namespace CppUtilitiescxx . . $ CppUtilities/ { |
| 8 | |
| 9 | class CPP_UTILITIES_EXPORTcxx . . $ `global.h:11:9`! ArgumentReadercxx . . $ CppUtilities/ArgumentReader# { |
| 10 | public: |
| 11 | ArgumentReadercxx . . $ CppUtilities/ArgumentReader#ArgumentReader(5d9014cd7706224b).(ArgumentParsercxx . . $ CppUtilities/ArgumentParser# &parser, const char *const *argv, const char *const *end, bool completionMode = false); |
| 12 | ArgumentReadercxx . . $ CppUtilities/ArgumentReader# &resetcxx . . $ CppUtilities/ArgumentReader#reset(84116d87b2aa3486).(const char *const *argv, const char *const *end); |
| 13 | bool readcxx . . $ CppUtilities/ArgumentReader#read(c9857a73d68e59ba).(); |
| 14 | bool readcxx . . $ CppUtilities/ArgumentReader#read(c0f9bd9adf2e50cb).(ArgumentVectorcxx . . $ CppUtilities/ArgumentVector# &args); |
| 15 | |
| 16 | /// \brief The associated ArgumentParser instance. |
| 17 | ArgumentParsercxx . . $ CppUtilities/ArgumentParser# &parsercxx . . $ CppUtilities/ArgumentReader#parser.; |
| 18 | /// \brief The Argument instances to store the results. Sub arguments of args are considered as well. |
| 19 | ArgumentVectorcxx . . $ CppUtilities/ArgumentVector# &argscxx . . $ CppUtilities/ArgumentReader#args.; |
| 20 | /// \brief An index which is incremented when an argument is encountered (the current index is stored in the occurrence) or a value is encountered. |
| 21 | stdcxx . . $ std/::size_tcxx . . $ std/size_t# indexcxx . . $ CppUtilities/ArgumentReader#index.; |
| 22 | /// \brief Points to the first argument denotation and will be incremented when a denotation has been processed. |
| 23 | const char *const *argvcxx . . $ CppUtilities/ArgumentReader#argv.; |
| 24 | /// \brief Points to the end of the \a argv array. |
| 25 | const char *const *endcxx . . $ CppUtilities/ArgumentReader#end.; |
| 26 | /// \brief The last Argument instance which could be detected. Set to nullptr in the initial call. Used for Bash completion. |
| 27 | Argumentcxx . . $ CppUtilities/Argument# *lastArgcxx . . $ CppUtilities/ArgumentReader#lastArg.; |
| 28 | /// \brief Points to the element in argv where lastArg was encountered. Unspecified if lastArg is not set. |
| 29 | const char *const *lastArgDenotationcxx . . $ CppUtilities/ArgumentReader#lastArgDenotation.; |
| 30 | /// \brief The currently processed abbreviation denotation (should be substring of one of the args in argv). Set to nullptr for processing argv from the beginning (default). |
| 31 | const char *argDenotationcxx . . $ CppUtilities/ArgumentReader#argDenotation.; |
| 32 | /// \brief The type of the currently processed abbreviation denotation. Unspecified if argDenotation is not set. |
| 33 | unsigned char argDenotationTypecxx . . $ CppUtilities/ArgumentReader#argDenotationType.; |
| 34 | /// \brief Whether completion mode is enabled. In this case reading args will be continued even if an denotation is unknown (regardless of unknownArgumentBehavior()). |
| 35 | bool completionModecxx . . $ CppUtilities/ArgumentReader#completionMode.; |
| 36 | }; |
| 37 | |
| 38 | class Wrappercxx . . $ CppUtilities/Wrapper#; |
| 39 | |
| 40 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &operatorcxx . . $ CppUtilities/`operator<<`(eb72771242142f3a).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &os, const Wrappercxx . . $ CppUtilities/Wrapper# &wrapper); |
| 41 | |
| 42 | class Wrappercxx . . $ CppUtilities/Wrapper# { |
| 43 | friend stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &operatorcxx . . $ CppUtilities/`operator<<`(eb72771242142f3a).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &os, const Wrappercxx . . $ CppUtilities/Wrapper# &wrapper); |
| 44 | |
| 45 | public: |
| 46 | Wrappercxx . . $ CppUtilities/Wrapper#Wrapper(e9c43e74416273b7).(const char *str, Indentationcxx . . $ CppUtilities/Indentation# currentIndentation = Indentationcxx . . $ CppUtilities/Indentation#Indentation(bf39ed7cbaca7ebc).()); |
| 47 | |
| 48 | private: |
| 49 | const char *const m_strcxx . . $ CppUtilities/Wrapper#m_str.; |
| 50 | Indentationcxx . . $ CppUtilities/Indentation# m_indentationcxx . . $ CppUtilities/Wrapper#m_indentation.; |
| 51 | }; |
| 52 | |
| 53 | inline Wrappercxx . . $ CppUtilities/Wrapper#::Wrappercxx . . $ CppUtilities/Wrapper#Wrapper(e9c43e74416273b7).(const char *str, Indentationcxx . . $ CppUtilities/Indentation# currentIndentation) |
| 54 | : m_strcxx . . $ CppUtilities/Wrapper#m_str.(str) |
| 55 | , m_indentationcxx . . $ CppUtilities/Wrapper#m_indentation.(currentIndentation) |
| 56 | { |
| 57 | } |
| 58 | |
| 59 | } // namespace CppUtilities |
| 60 | |
| 61 | #endif // APPLICATION_UTILITIES_ARGUMENTPARSER_PRIVATE_H |