• Home
  • Raw
  • Download

Lines Matching refs:ParserResult

643     using ParserResult = BasicResult<ParseResultType>;  typedef
652 inline auto convertInto( std::string const &source, T& target ) -> ParserResult { in convertInto()
657 … return ParserResult::runtimeError( "Unable to convert '" + source + "' to destination type" ); in convertInto()
659 return ParserResult::ok( ParseResultType::Matched ); in convertInto()
661 inline auto convertInto( std::string const &source, std::string& target ) -> ParserResult { in convertInto()
663 return ParserResult::ok( ParseResultType::Matched ); in convertInto()
665 inline auto convertInto( std::string const &source, bool &target ) -> ParserResult { in convertInto()
673 …return ParserResult::runtimeError( "Expected a boolean value but did not recognise: '" + source + … in convertInto()
674 return ParserResult::ok( ParseResultType::Matched ); in convertInto()
678 …o convertInto( std::string const &source, CLARA_CONFIG_OPTIONAL_TYPE<T>& target ) -> ParserResult { in convertInto()
701 virtual auto setValue( std::string const &arg ) -> ParserResult = 0;
704 virtual auto setFlag( bool flag ) -> ParserResult = 0;
714 auto setValue( std::string const &arg ) -> ParserResult override { in setValue()
727 auto setValue( std::string const &arg ) -> ParserResult override { in setValue()
741 auto setFlag( bool flag ) -> ParserResult override { in setFlag()
743 return ParserResult::ok( ParseResultType::Matched ); in setFlag()
749 …static_assert( std::is_same<ReturnType, ParserResult>::value, "Lambda must return void or clara::P…
752 static auto invoke( L const &lambda, ArgType const &arg ) -> ParserResult { in invoke()
760 static auto invoke( L const &lambda, ArgType const &arg ) -> ParserResult { in invoke()
762 return ParserResult::ok( ParseResultType::Matched ); in invoke()
767 inline auto invokeLambda( L const &lambda, std::string const &arg ) -> ParserResult { in invokeLambda()
783 auto setValue( std::string const &arg ) -> ParserResult override { in setValue()
797 auto setFlag( bool flag ) -> ParserResult override { in setFlag()
908 auto set( std::string const& newName ) -> ParserResult { in set()
919 return ParserResult::ok( ParseResultType::Matched ); in set()
1062 return ParserResult::ok( ParseResultType::ShortCircuitAll ); in Help()
1259 using detail::ParserResult;