libpniio
|
container IO configuration More...
#include <container_io_config.hpp>
Public Member Functions | |
container_io_config () | |
default constructor More... | |
container_io_config (char seperator) | |
constructor More... | |
container_io_config (char start, char stop) | |
constructor More... | |
container_io_config (char start, char stop, char seperator) | |
constructor More... | |
char | separator () const |
get separator symbol More... | |
char | start_symbol () const |
get start symbol More... | |
char | stop_symbol () const |
get stop symbol More... | |
Private Attributes | |
char | _start |
start symbol More... | |
char | _stop |
stop symbol More... | |
char | _sep |
seperator symbol More... | |
This type stores the parameters required to read and write container data.
[
)]
)Instances of this type are used for instance by the formatter<T> template when used with container types. Instances of this class are only configuratble during construction. After its construction only read only access to its members is possible.
The usage is rather simple. Configuration is done vai the constructor:
Once an instance of container_io_config
is created its elements can be accessed
pni::io::container_io_config::container_io_config | ( | ) |
By default the start, and stop symbol are empty and the seperator symbol is a single blank.
pni::io::container_io_config::container_io_config | ( | char | seperator | ) |
This destructor allows the determine the seperator symbol. The start and stop symbol remain empty.
seperator | the symbol which should be used to seperate the container elements |
pni::io::container_io_config::container_io_config | ( | char | start, |
char | stop | ||
) |
A constructor where the user can set the start and stop symbol. The seperator symbol remains a single blank.
start | symbol initiating the sequence |
stop | symbol terminating the sequence |
pni::io::container_io_config::container_io_config | ( | char | start, |
char | stop, | ||
char | seperator | ||
) |
Constructor where all aspects of container IO can be determined by the user.
start | symbol initiating the sequence |
stop | symbol terminating the sequence |
seperator | the element seperator symbol |
char pni::io::container_io_config::separator | ( | ) | const |
char pni::io::container_io_config::start_symbol | ( | ) | const |
char pni::io::container_io_config::stop_symbol | ( | ) | const |
|
private |
|
private |
|
private |