Stan  2.10.0
probability, sampling & optimization
Public Member Functions | Protected Attributes | List of all members
stan::services::argument_parser Class Reference

#include <argument_parser.hpp>

Public Member Functions

 argument_parser (std::vector< argument * > &valid_args)
 
int parse_args (int argc, const char *argv[], interface_callbacks::writer::base_writer &info, interface_callbacks::writer::base_writer &err)
 
void print (interface_callbacks::writer::base_writer &w, const std::string &prefix="")
 
void print_help (interface_callbacks::writer::base_writer &w, bool recurse)
 
void print_usage (interface_callbacks::writer::base_writer &w, const char *executable)
 
argumentarg (const std::string &name)
 
bool help_printed ()
 

Protected Attributes

std::vector< argument * > & _arguments
 
bool _help_flag
 
bool _method_flag
 

Detailed Description

Definition at line 14 of file argument_parser.hpp.

Constructor & Destructor Documentation

stan::services::argument_parser::argument_parser ( std::vector< argument * > &  valid_args)
inlineexplicit

Definition at line 16 of file argument_parser.hpp.

Member Function Documentation

argument* stan::services::argument_parser::arg ( const std::string &  name)
inline

Definition at line 202 of file argument_parser.hpp.

bool stan::services::argument_parser::help_printed ( )
inline

Definition at line 210 of file argument_parser.hpp.

int stan::services::argument_parser::parse_args ( int  argc,
const char *  argv[],
interface_callbacks::writer::base_writer info,
interface_callbacks::writer::base_writer err 
)
inline

Definition at line 23 of file argument_parser.hpp.

void stan::services::argument_parser::print ( interface_callbacks::writer::base_writer w,
const std::string &  prefix = "" 
)
inline

Definition at line 129 of file argument_parser.hpp.

void stan::services::argument_parser::print_help ( interface_callbacks::writer::base_writer w,
bool  recurse 
)
inline

Definition at line 136 of file argument_parser.hpp.

void stan::services::argument_parser::print_usage ( interface_callbacks::writer::base_writer w,
const char *  executable 
)
inline

Definition at line 143 of file argument_parser.hpp.

Member Data Documentation

std::vector<argument*>& stan::services::argument_parser::_arguments
protected

Definition at line 215 of file argument_parser.hpp.

bool stan::services::argument_parser::_help_flag
protected

Definition at line 222 of file argument_parser.hpp.

bool stan::services::argument_parser::_method_flag
protected

Definition at line 223 of file argument_parser.hpp.


The documentation for this class was generated from the following file:

     [ Stan Home Page ] © 2011–2016, Stan Development Team.