CPP-ARGON 4.0.0
Command-Line Argument Parser for C++20
Loading...
Searching...
No Matches
predefined.hpp File Reference
#include "argon/action/util/helpers.hpp"
#include "argon/exceptions.hpp"
#include <filesystem>
#include <ostream>

Go to the source code of this file.

Namespaces

namespace  argon
 
namespace  argon::action
 

Functions

std::ostream & argon::operator<< (std::ostream &os, const argument_parser &) noexcept
 
argon::action_type::on_flag::type argon::action::print_help (const argument_parser &parser, const std::optional< int > exit_code=std::nullopt, std::ostream &os=std::cout) noexcept
 Returns an on-flag action which prints the argument parser's help message.
 
util::callable_type< argon::action_type::observe, std::string > argon::action::check_file_exists () noexcept
 Returns an observe action which checks whether lower_bound file with the given name exists.
 
template<argon::util::c_arithmetic T>
util::callable_type< argon::action_type::observe, T > argon::action::gt (const T lower_bound) noexcept
 Returns an observe action which checks if a parsed value is greater than the given bound.
 
template<argon::util::c_arithmetic T>
util::callable_type< argon::action_type::observe, T > argon::action::geq (const T lower_bound) noexcept
 Returns an observe action which checks if a parsed value is greater than or equal to the given bound.
 
template<argon::util::c_arithmetic T>
util::callable_type< argon::action_type::observe, T > argon::action::lt (const T upper_bound) noexcept
 Returns an observe action which checks if a parsed value is less than the given bound.
 
template<argon::util::c_arithmetic T>
util::callable_type< argon::action_type::observe, T > argon::action::leq (const T upper_bound) noexcept
 Returns an observe action which checks if a parsed value is less than or equal to the given bound.
 
template<argon::util::c_arithmetic T, bool LeftInclusive = true, bool RightInclusive = true>
util::callable_type< argon::action_type::observe, T > argon::action::within (const T lower_bound, const T upper_bound) noexcept
 Returns an observe action which checks if a parsed value falls within the specified interval.