CPP-AP 2.7.0
Command-line argument parser for C++20
Loading...
Searching...
No Matches
predefined_actions.hpp File Reference
#include "ap/exceptions.hpp"
#include "detail/utility.hpp"
#include <filesystem>
#include <ostream>

Go to the source code of this file.

Namespaces

namespace  ap
 
namespace  ap::action
 

Functions

std::ostream & ap::operator<< (std::ostream &os, const argument_parser &) noexcept
 
ap::action_type::on_flag::type ap::action::print_config (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 configuration.
 
detail::callable_type< ap::action_type::observe, std::string > ap::action::check_file_exists () noexcept
 Returns an observe action which checks whether lower_bound file with the given name exists.
 
template<ap::detail::c_arithmetic T>
detail::callable_type< ap::action_type::observe, T > ap::action::gt (const T lower_bound) noexcept
 Returns an observe action which checks if a parsed value is greater than the given bound.
 
template<ap::detail::c_arithmetic T>
detail::callable_type< ap::action_type::observe, T > ap::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<ap::detail::c_arithmetic T>
detail::callable_type< ap::action_type::observe, T > ap::action::lt (const T upper_bound) noexcept
 Returns an observe action which checks if a parsed value is less than the given bound.
 
template<ap::detail::c_arithmetic T>
detail::callable_type< ap::action_type::observe, T > ap::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<ap::detail::c_arithmetic T, bool LeftInclusive = true, bool RightInclusive = true>
detail::callable_type< ap::action_type::observe, T > ap::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.