AFLOW
 
Loading...
Searching...
No Matches
plotter::xoption Class Reference

#include <aurostd_xoption.h>

Public Member Functions

 xoption ()
 
 xoption (const xoption &b)
 
 ~xoption ()
 
const xoptionoperator= (const xoption &b)
 
void clear ()
 
void options2entry (const std::string &, const std::string &, int=aurostd_xoptionONOFF, const std::string &xscheme_DEFAULT="")
 
void scheme2scheme (char, const std::string &)
 
void scheme2scheme (const std::string &, const std::string &)
 
bool isscheme (const std::string &) const
 
uint opscheme (const std::string &, bool)
 
uint push (const std::string &)
 
uint pop (const std::string &)
 
bool flag (const std::string &, bool)
 
bool flag (const std::string &) const
 
bool flag () const
 
bool isdefined (const std::string &) const
 
uint opattachedscheme (const std::string &, const std::string &, bool)
 
uint addattachedscheme (const std::string &scheme, const std::string &attached, bool flag)
 
uint push_attached (const std::string &scheme, const std::string &attached)
 
uint pop_attached (const std::string &check)
 
std::string getattachedscheme (const std::string &scheme) const
 
template<class utype>
utype getattachedutype (const std::string &scheme) const
 
template<class utype>
utype getattachedutype (const string &xscheme) const
 
bool args2addattachedscheme (std::vector< std::string > &argv, const std::string scheme, const std::string &_s_search, std::string string_default)
 
bool args2addattachedscheme (std::vector< std::string > &argv, std::vector< std::string > &cmds, const std::string scheme, const std::string &_s_search, std::string string_default)
 
bool args2addattachedscheme (std::vector< std::string > &argv, const std::string scheme, const std::string &_s_search, const char *string_default)
 
bool args2addattachedscheme (std::vector< std::string > &argv, std::vector< std::string > &cmds, const std::string scheme, const std::string &_s_search, const char *string_default)
 
template<class utype>
bool args2addattachedscheme (std::vector< std::string > &argv, const std::string scheme, const std::string &_s_search, utype utype_default)
 
template<class utype>
bool args2addattachedscheme (std::vector< std::string > &argv, std::vector< std::string > &cmds, const std::string scheme, const std::string &_s_search, utype utype_default)
 
template<class utype>
bool args2addattachedscheme (vector< string > &argv, const string xscheme, const string &_s_search, utype utype_default)
 
template<class utype>
bool args2addattachedscheme (vector< string > &argv, vector< string > &cmds, const string xscheme, const string &_s_search, utype utype_default)
 
bool refresh ()
 

Public Attributes

std::string keyword
 
bool isentry
 
std::string content_string
 
double content_double
 
int content_int
 
uint content_uint
 
bool option
 
bool option_default
 
std::string xscheme
 
std::vector< std::string > vxscheme
 
std::vector< std::string > vxsghost
 
bool preserved
 

Private Member Functions

void free ()
 
void copy (const xoption &b)
 

Friends

std::ostream & operator<< (std::ostream &oss, const xoption &a)
 

Detailed Description

Definition at line 25 of file aurostd_xoption.h.

Constructor & Destructor Documentation

◆ xoption() [1/2]

aurostd::xoption::xoption ( )

Definition at line 35 of file aurostd_xoption.cpp.

◆ xoption() [2/2]

aurostd::xoption::xoption ( const xoption & b)

Definition at line 83 of file aurostd_xoption.cpp.

◆ ~xoption()

aurostd::xoption::~xoption ( )

Definition at line 40 of file aurostd_xoption.cpp.

Member Function Documentation

◆ operator=()

const xoption & aurostd::xoption::operator= ( const xoption & b)

Definition at line 90 of file aurostd_xoption.cpp.

◆ clear()

void aurostd::xoption::clear ( )

Definition at line 105 of file aurostd_xoption.cpp.

◆ options2entry()

void aurostd::xoption::options2entry ( const std::string & ,
const std::string & ,
int = aurostd_xoptionONOFF,
const std::string & xscheme_DEFAULT = "" )

Definition at line 113 of file aurostd_xoption.cpp.

◆ scheme2scheme() [1/2]

void aurostd::xoption::scheme2scheme ( char ,
const std::string &  )

◆ scheme2scheme() [2/2]

void aurostd::xoption::scheme2scheme ( const std::string & ,
const std::string &  )

◆ isscheme()

bool aurostd::xoption::isscheme ( const std::string & ) const
nodiscard

Definition at line 461 of file aurostd_xoption.cpp.

◆ opscheme()

uint aurostd::xoption::opscheme ( const std::string & ,
bool  )

Definition at line 521 of file aurostd_xoption.cpp.

◆ push()

uint aurostd::xoption::push ( const std::string & )

Definition at line 514 of file aurostd_xoption.cpp.

◆ pop()

uint aurostd::xoption::pop ( const std::string & )

Definition at line 517 of file aurostd_xoption.cpp.

◆ flag() [1/3]

bool aurostd::xoption::flag ( const std::string & ,
bool  )

◆ flag() [2/3]

bool aurostd::xoption::flag ( const std::string & ) const
nodiscard

◆ flag() [3/3]

bool aurostd::xoption::flag ( ) const
nodiscard

Definition at line 585 of file aurostd_xoption.cpp.

◆ isdefined()

bool aurostd::xoption::isdefined ( const std::string & ) const
nodiscard

Definition at line 595 of file aurostd_xoption.cpp.

◆ opattachedscheme()

uint aurostd::xoption::opattachedscheme ( const std::string & ,
const std::string & ,
bool  )

Definition at line 636 of file aurostd_xoption.cpp.

◆ addattachedscheme()

uint aurostd::xoption::addattachedscheme ( const std::string & scheme,
const std::string & attached,
bool flag )

Definition at line 676 of file aurostd_xoption.cpp.

◆ push_attached()

uint aurostd::xoption::push_attached ( const std::string & scheme,
const std::string & attached )

Definition at line 683 of file aurostd_xoption.cpp.

◆ pop_attached()

uint aurostd::xoption::pop_attached ( const std::string & check)

Definition at line 687 of file aurostd_xoption.cpp.

◆ getattachedscheme()

string aurostd::xoption::getattachedscheme ( const std::string & scheme) const
nodiscard

Definition at line 613 of file aurostd_xoption.cpp.

◆ getattachedutype() [1/2]

template<class utype>
utype aurostd::xoption::getattachedutype ( const std::string & scheme) const
nodiscard

◆ getattachedutype() [2/2]

template<class utype>
utype aurostd::xoption::getattachedutype ( const string & xscheme) const

Definition at line 628 of file aurostd_xoption.cpp.

◆ args2addattachedscheme() [1/8]

bool aurostd::xoption::args2addattachedscheme ( std::vector< std::string > & argv,
const std::string scheme,
const std::string & _s_search,
std::string string_default )

◆ args2addattachedscheme() [2/8]

bool aurostd::xoption::args2addattachedscheme ( std::vector< std::string > & argv,
std::vector< std::string > & cmds,
const std::string scheme,
const std::string & _s_search,
std::string string_default )

◆ args2addattachedscheme() [3/8]

bool aurostd::xoption::args2addattachedscheme ( std::vector< std::string > & argv,
const std::string scheme,
const std::string & _s_search,
const char * string_default )

◆ args2addattachedscheme() [4/8]

bool aurostd::xoption::args2addattachedscheme ( std::vector< std::string > & argv,
std::vector< std::string > & cmds,
const std::string scheme,
const std::string & _s_search,
const char * string_default )

◆ args2addattachedscheme() [5/8]

template<class utype>
bool aurostd::xoption::args2addattachedscheme ( std::vector< std::string > & argv,
const std::string scheme,
const std::string & _s_search,
utype utype_default )

◆ args2addattachedscheme() [6/8]

template<class utype>
bool aurostd::xoption::args2addattachedscheme ( std::vector< std::string > & argv,
std::vector< std::string > & cmds,
const std::string scheme,
const std::string & _s_search,
utype utype_default )

◆ args2addattachedscheme() [7/8]

template<class utype>
bool aurostd::xoption::args2addattachedscheme ( vector< string > & argv,
const string xscheme,
const string & _s_search,
utype utype_default )

Definition at line 728 of file aurostd_xoption.cpp.

◆ args2addattachedscheme() [8/8]

template<class utype>
bool aurostd::xoption::args2addattachedscheme ( vector< string > & argv,
vector< string > & cmds,
const string xscheme,
const string & _s_search,
utype utype_default )

Definition at line 732 of file aurostd_xoption.cpp.

◆ refresh()

bool aurostd::xoption::refresh ( )

Definition at line 500 of file aurostd_xoption.cpp.

◆ free()

void aurostd::xoption::free ( )
private

Definition at line 45 of file aurostd_xoption.cpp.

◆ copy()

void aurostd::xoption::copy ( const xoption & b)
private

Definition at line 61 of file aurostd_xoption.cpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & oss,
const xoption & a )
friend

Definition at line 98 of file aurostd_xoption.cpp.

Member Data Documentation

◆ keyword

std::string aurostd::xoption::keyword

Definition at line 35 of file aurostd_xoption.h.

◆ isentry

bool aurostd::xoption::isentry

Definition at line 36 of file aurostd_xoption.h.

◆ content_string

std::string aurostd::xoption::content_string

Definition at line 37 of file aurostd_xoption.h.

◆ content_double

double aurostd::xoption::content_double

Definition at line 38 of file aurostd_xoption.h.

◆ content_int

int aurostd::xoption::content_int

Definition at line 39 of file aurostd_xoption.h.

◆ content_uint

uint aurostd::xoption::content_uint

Definition at line 40 of file aurostd_xoption.h.

◆ option

bool aurostd::xoption::option

Definition at line 41 of file aurostd_xoption.h.

◆ option_default

bool aurostd::xoption::option_default

Definition at line 42 of file aurostd_xoption.h.

◆ xscheme

std::string aurostd::xoption::xscheme

Definition at line 43 of file aurostd_xoption.h.

◆ vxscheme

std::vector<std::string> aurostd::xoption::vxscheme

Definition at line 44 of file aurostd_xoption.h.

◆ vxsghost

std::vector<std::string> aurostd::xoption::vxsghost

Definition at line 45 of file aurostd_xoption.h.

◆ preserved

bool aurostd::xoption::preserved

Definition at line 46 of file aurostd_xoption.h.


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