#include <clara.hpp>
Definition at line 884 of file clara.hpp.
◆ ExeName() [1/3]
clara::detail::ExeName::ExeName |
( |
| ) |
|
|
inline |
Definition at line 894 of file clara.hpp.
894: m_name( std::make_shared<std::string>( "<executable>" ) ) {}
◆ ExeName() [2/3]
clara::detail::ExeName::ExeName |
( |
std::string & | ref | ) |
|
|
inlineexplicit |
Definition at line 896 of file clara.hpp.
897 m_ref = std::make_shared<BoundValueRef<std::string>>( ref );
898 }
◆ ExeName() [3/3]
template<typename LambdaT >
clara::detail::ExeName::ExeName |
( |
LambdaT const & | lambda | ) |
|
|
inlineexplicit |
Definition at line 901 of file clara.hpp.
902 m_ref = std::make_shared<BoundLambda<LambdaT>>( lambda );
903 }
◆ name()
auto clara::detail::ExeName::name |
( |
| ) |
const -> std::string |
|
inline |
◆ parse()
◆ set()
auto clara::detail::ExeName::set |
( |
std::string const & | newName | ) |
-> ParserResult |
|
inline |
Definition at line 911 of file clara.hpp.
911 {
912
913 auto lastSlash = newName.find_last_of( "\\/" );
914 auto filename = ( lastSlash == std::string::npos )
915 ? newName
916 : newName.substr( lastSlash+1 );
917
918 *m_name = filename;
919 if( m_ref )
920 return m_ref->setValue( filename );
921 else
923 }
The documentation for this class was generated from the following file:
- libraries/sys-vm/external/Catch2/third_party/clara.hpp