Contains necessary informations to print a formatted KVector.
More...
#include <kvector_impl.hpp>
Public Member Functions | |
| KVectorContextImpl (std::string elemDelim=" ", std::string startDelim=std::string(), std::string endDelim=std::string(), unsigned prec=4) | |
| Constructor. | |
Public Attributes | |
| std::string | elemDelim_ |
| Delimiter string between vector elements. | |
| std::string | endDelim_ |
| Ending string after last vector element. | |
| unsigned | precision_ |
| Number of significant digits to output. | |
| bool | skipElemDelim_ |
| Must we skip a word between elements ? | |
| bool | skipEndDelim_ |
| Must we skip a word at end of vector ? | |
| bool | skipStartDelim_ |
| Must we skip a word at start of vector ? | |
| std::string | startDelim_ |
| Starting string before first vector element. | |
| unsigned | width_ |
| Width of output field for nice alignment. | |
Contains necessary informations to print a formatted KVector.
Instances of this class defines the behaviour of input/output operations of KVector instances from/to streams. That is to say, get() and put() as well as corresponding operator>>() and operator<<() depend of the KVectorContextImpl that has been selected by calling selectKVectorContext().
Definition at line 45 of file kvector_impl.hpp.
| Kalman::KVectorContextImpl::KVectorContextImpl | ( | std::string | elemDelim = " ", |
|
| std::string | startDelim = std::string(), |
|||
| std::string | endDelim = std::string(), |
|||
| unsigned | prec = 4 | |||
| ) | [inline, explicit] |
Constructor.
| elemDelim | Delimiter string between vector elements. | |
| startDelim | Starting string before first vector element. | |
| endDelim | Ending string after last vector element. | |
| prec | Number of significant digits to output. |
createKVectorContext() function instead. Definition at line 56 of file kvector_impl.hpp.
| std::string Kalman::KVectorContextImpl::elemDelim_ |
Delimiter string between vector elements.
Definition at line 72 of file kvector_impl.hpp.
| std::string Kalman::KVectorContextImpl::endDelim_ |
Ending string after last vector element.
Definition at line 74 of file kvector_impl.hpp.
Number of significant digits to output.
Definition at line 75 of file kvector_impl.hpp.
Must we skip a word between elements ?
Definition at line 77 of file kvector_impl.hpp.
Must we skip a word at end of vector ?
Definition at line 79 of file kvector_impl.hpp.
Must we skip a word at start of vector ?
Definition at line 78 of file kvector_impl.hpp.
| std::string Kalman::KVectorContextImpl::startDelim_ |
Starting string before first vector element.
Definition at line 73 of file kvector_impl.hpp.
| unsigned Kalman::KVectorContextImpl::width_ |
Width of output field for nice alignment.
Definition at line 76 of file kvector_impl.hpp.