41#include "../include/STK_DManager_Util.h"
170 inline int get(
int const& value)
const
180 inline std::list<String>
const&
get( std::list<String>
const& value)
const
185 inline std::list<Real>
const&
get( std::list<Real>
const& value)
const
190 inline std::list<int>
const&
get( std::list<int>
const& value)
const
195 inline std::list<Range>
const&
get( std::list<Range>
const& value)
const
215 void set(
int const& value );
223 void set( std::list<String>
const& value );
227 void set(std::list<Real>
const& value );
231 void set(std::list<int>
const& value );
235 void set(std::list<Range>
const& value );
This file define methods for displaying Arrays and Expressions.
A IPage is an interface base class for reading and/or writing a page of option in a file.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
the Option class allow to store the value of an option from a IPage.
void read(istream &is)
read in the options from the input stream.
String const & name() const
name of the option.
Option & operator=(const Option &opt)
Assignment operator.
void setPage(IPage const &value)
set a value from a Page.
Range const & get(Range const &value) const
get the option as a Range
void setDefaultValue()
set a default value of the option.
int get(int const &value) const
get the option as an int
void setListSeparator(Char const &sep)
set the separator to use in the list of options.
bool setValue(String const &str)
Convert a string in a value.
std::list< int > * p_lint_
std::list< String > const & get(std::list< String > const &value) const
get the option as a list of String
void write(ostream &os) const
write out the options in the output stream
Char sep_
Char used for the option list.
IPage const & get(IPage const &value) const
get the option as a page
std::list< Range > const & get(std::list< Range > const &value) const
get the option as a list of Range
TypeOption type_
type of the option
std::list< String > * p_lString_
Real const & get(Real const &value) const
get the option as a Real
std::list< int > const & get(std::list< int > const &value) const
get the option as a list of int
bool isOptional_
true if the option is optional, false otherwise
bool isOptional() const
check if the option is optional of the option.
bool isValued_
true if the option is valued, false otherwise.
TypeOption type() const
type of the option.
std::list< Range > * p_lRange_
std::list< Real > * p_lReal_
String const & get(String const &value) const
get the option as a String
String name_
name of the option
void deleteValue()
Remove the value of the option.
std::list< Real > const & get(std::list< Real > const &value) const
get the option as a list of Real
void set(String const &value)
set a value from string.
Index sub-vector region: Specialization when the size is unknown.
TypeOption
A TypeOption is the kind of options that can read or write a program in a file.
@ linteger_
list of discrete numbers separated by commas
@ lstring_
list of strings separated by commas
@ lreal_
list of floating numbers separated by commas
@ integer_
discrete number
@ lrange_
list of range of number separated by commas
char Char
STK fundamental type of a Char.
std::basic_string< Char > String
STK fundamental type of a String.
double Real
STK fundamental type of Real values.
std::basic_ostream< Char > ostream
ostream for Char
std::basic_istream< Char > istream
istream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.