37#ifndef STK_READWRITEPAGES_H
38#define STK_READWRITEPAGES_H
98 {
return pages_.at(ContPage::size_type(pos));}
105 {
return pages_.at(ContPage::size_type(pos));}
124 {
return pages_.at(ContPage::size_type(pos));}
131 {
return pages_.at(ContPage::size_type(pos));}
In this file we define the Interface base class IPage.
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 ReadWritePages class allow to handle a file of option containing pages.
IPage * p_page(int const &pos)
get a page of option.
IPage const * operator[](int const &pos) const
get a constant page of option.
ContPage pages_
The list of page to read and/or write.
std::vector< IPage * > ContPage
type of the container for the pages.
bool write(std::string const &file_name=std::string()) const
Attempts to write the ReadWritePage to the location specified by file_name.
String const & error() const
give the last error message encountered
stringstream buffer_
the string buffer containing the file with all the options.
IPage * operator[](int const &pos)
get a page of option.
void addPage(IPage const &page)
Add a page of option to read and/or write.
virtual ~ReadWritePages()
Destructor.
bool read(std::string const &file_name=std::string())
Attempts to read the specified file.
String msg_error_
The last error message.
bool validate()
validate all the pages.
std::string file_name_
Name of the Current file to read/write.
IPage const * p_page(int const &pos) const
get a constant page of option.
std::basic_string< Char > String
STK fundamental type of a String.
std::basic_ostream< Char > ostream
ostream for Char
std::basic_stringstream< Char > stringstream
stringstream for Char
std::basic_istream< Char > istream
istream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.