22#include "anch-cli-export.hpp"
37 using BindArg = std::function<void(
const std::string&)>;
218 ANCH_CLI_EXPORT
BindArg bindOFS(std::shared_ptr<std::ofstream>& dest, std::ios_base::openmode mode = std::ios_base::out);
225 ANCH_CLI_EXPORT std::function<void(std::istream&)>
bindPipe(std::shared_ptr<std::istream>& dest);
232 ANCH_CLI_EXPORT std::function<void(std::ostream&)>
bindCout(std::shared_ptr<std::ostream>& dest);
AnCH command line interface library namespace.
Definition app.hpp:30
std::function< void(std::ostream &)> bindCout(std::shared_ptr< std::ostream > &dest)
BindArg bindIFS(std::shared_ptr< std::istream > &dest)
std::function< void(std::istream &)> bindPipe(std::shared_ptr< std::istream > &dest)
BindArg bindFalse(bool &dest)
BindArg bindTrue(bool &dest)
BindArg bindPath(std::filesystem::path &dest)
BindArg bindNum(uint16_t &dest)
std::function< void(const std::string &)> BindArg
Definition utils.hpp:37
BindArg bindCol(std::vector< std::string > &dest)
BindArg bindOFS(std::shared_ptr< std::ostream > &dest)
BindArg bindStr(std::string &dest)