Bayeux  3.4.1
Core Foundation library for SuperNEMO
Namespaces | Classes | Functions
datatools::ui Namespace Reference

Namespaces

 ansi_colors
 
 path
 
 unicode
 

Classes

class  base_command
 Base command. More...
 
class  base_command_interface
 Command interface for arbitrary objects. More...
 
class  basic_shell
 Command line shell interface. More...
 
class  const_target_command
 Base command for a const target object. More...
 
class  const_target_command_interface
 Base command interface for a const target object. More...
 
class  ihs
 Interface Hierarchy System. More...
 
class  reflective_command
 Reflective command for a target object. More...
 
class  reflective_command_interface
 Reflective command interface for a target object. More...
 
struct  shell_cd_command
 Shell cd command. More...
 
class  shell_command_interface
 Base command interface for a shell. More...
 
struct  shell_exit_command
 Shell exit command. More...
 
struct  shell_help_command
 Shell help command. More...
 
struct  shell_load_command
 Shell load command. More...
 
struct  shell_ls_command
 Shell ls command. More...
 
struct  shell_man_command
 Shell man command. More...
 
struct  shell_pwd_command
 Shell pwd command. More...
 
struct  shell_tree_command
 Shell tree command. More...
 
class  target_command
 Base command for a target object. More...
 
class  target_command_interface
 Base command interface for a target object. More...
 
struct  traits
 
struct  wrapped_boolean
 Wrapper for a boolean value. More...
 
struct  wrapped_integer
 Wrapper for an integer value. More...
 
struct  wrapped_real_with_unit
 Wrapper for a real value with associated unit. More...
 
struct  wrapped_real_without_unit
 Wrapper for a dimensionless real value. More...
 

Functions

bool has_unicode_symbols ()
 
const std::string & check_mark ()
 
const std::string & error_mark ()
 
void validate (boost::any &v_, const std::vector< std::string > &values_, datatools::ui::wrapped_boolean *, int)
 
void validate (boost::any &v_, const std::vector< std::string > &values_, datatools::ui::wrapped_integer *, int)
 
void validate (boost::any &v_, const std::vector< std::string > &values_, datatools::ui::wrapped_real_without_unit *, int)
 
void validate (boost::any &v_, const std::vector< std::string > &values_, datatools::ui::wrapped_real_with_unit *, int)
 

Function Documentation

◆ check_mark()

const std::string& datatools::ui::check_mark ( )

◆ error_mark()

const std::string& datatools::ui::error_mark ( )

◆ has_unicode_symbols()

bool datatools::ui::has_unicode_symbols ( )

◆ validate() [1/4]

void datatools::ui::validate ( boost::any &  v_,
const std::vector< std::string > &  values_,
datatools::ui::wrapped_boolean ,
int   
)

Validate the syntax for a boolean value

Supported syntax:

true 1 t T false 0 f F

◆ validate() [2/4]

void datatools::ui::validate ( boost::any &  v_,
const std::vector< std::string > &  values_,
datatools::ui::wrapped_integer ,
int   
)

Validate the syntax for an integer value

Supported syntax:

... -2 -1 0 1 2 42 ...

◆ validate() [3/4]

void datatools::ui::validate ( boost::any &  v_,
const std::vector< std::string > &  values_,
datatools::ui::wrapped_real_without_unit ,
int   
)

Validate the syntax for a dimensionless real value

Supported syntax:

-inf -infinity
inf +inf +infinity
nan NaN
... -1.3 0 0.0 1.24 1.2e34 ...

◆ validate() [4/4]

void datatools::ui::validate ( boost::any &  v_,
const std::vector< std::string > &  values_,
datatools::ui::wrapped_real_with_unit ,
int   
)

Validate the syntax for a real value with associated unit

Supported syntax:

-inf -infinity
inf +inf +infinity
nan NaN
"-1.2e34 mm"
1.2_mm
1.2~mm
"1.2 mm"