Euphoria
eu::core::argparse::ArgumentReader Struct Reference

"file" like api for reading arguments More...

#include <argparse.h>

Public Member Functions

 ArgumentReader (const NameAndArguments &a)
 
std::string read ()
 
void undo_read ()
 
bool has_more () const
 
std::string peek () const
 

Public Attributes

NameAndArguments arguments
 
int next_position
 

Detailed Description

"file" like api for reading arguments

Definition at line 116 of file argparse.h.

Constructor & Destructor Documentation

◆ ArgumentReader()

eu::core::argparse::ArgumentReader::ArgumentReader ( const NameAndArguments a)
explicit

Definition at line 149 of file argparse.cc.

Member Function Documentation

◆ has_more()

bool eu::core::argparse::ArgumentReader::has_more ( ) const

Definition at line 157 of file argparse.cc.

◆ peek()

std::string eu::core::argparse::ArgumentReader::peek ( ) const

Definition at line 164 of file argparse.cc.

◆ read()

std::string eu::core::argparse::ArgumentReader::read ( )

Definition at line 179 of file argparse.cc.

◆ undo_read()

void eu::core::argparse::ArgumentReader::undo_read ( )

Definition at line 188 of file argparse.cc.

Member Data Documentation

◆ arguments

NameAndArguments eu::core::argparse::ArgumentReader::arguments

Definition at line 118 of file argparse.h.

◆ next_position

int eu::core::argparse::ArgumentReader::next_position

Definition at line 119 of file argparse.h.


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