A IPage is an interface base class for reading and/or writing a page of option in a file.
ContPage pages_
The list of page to read and/or write.
bool write(std::string const &file_name=std::string()) const
Attempts to write the ReadWritePage to the location specified by file_name.
ReadWritePages(std::string const &file_name=std::string())
default constructor.
stringstream buffer_
the string buffer containing the file with all the options.
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.
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.