bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::C_ErrorOrIndex Struct Reference

#include <EZArgs.h>

Public Member Functions

 C_ErrorOrIndex (const std::string &error, auto flagErrInd)
 
 C_ErrorOrIndex (const std::string &help)
 
 C_ErrorOrIndex (auto flagStartInd)
 
 operator bool () const
 
auto index () const
 
std::string message () const
 

Public Attributes

std::string m_message
 
std::optional< size_t > m_optIndex
 

Detailed Description

Definition at line 22 of file EZArgs.h.

Constructor & Destructor Documentation

◆ C_ErrorOrIndex() [1/3]

bux::C_ErrorOrIndex::C_ErrorOrIndex ( const std::string & error,
auto flagErrInd )
inline

Definition at line 29 of file EZArgs.h.

◆ C_ErrorOrIndex() [2/3]

bux::C_ErrorOrIndex::C_ErrorOrIndex ( const std::string & help)
inline

Definition at line 30 of file EZArgs.h.

◆ C_ErrorOrIndex() [3/3]

bux::C_ErrorOrIndex::C_ErrorOrIndex ( auto flagStartInd)
inline

Definition at line 31 of file EZArgs.h.

Member Function Documentation

◆ index()

auto bux::C_ErrorOrIndex::index ( ) const
inline

Definition at line 33 of file EZArgs.h.

References m_optIndex.

◆ message()

std::string bux::C_ErrorOrIndex::message ( ) const
Examples
test/smoke_ezargs.cpp.

Definition at line 10 of file EZArgs.cpp.

References m_message, and m_optIndex.

◆ operator bool()

bux::C_ErrorOrIndex::operator bool ( ) const
inline

Definition at line 32 of file EZArgs.h.

References m_message.

Member Data Documentation

◆ m_message

std::string bux::C_ErrorOrIndex::m_message

Definition at line 25 of file EZArgs.h.

Referenced by message(), and operator bool().

◆ m_optIndex

std::optional<size_t> bux::C_ErrorOrIndex::m_optIndex

Definition at line 26 of file EZArgs.h.

Referenced by index(), and message().


The documentation for this struct was generated from the following files: