# HG changeset patch # User František Kučera # Date 1531566860 -7200 # Node ID e6db2844795770690ceaaba6e8048808071e3bc0 # Parent cdfb91189c9e1b792975631e1318fe3ddbb9eb08 documentation for readString() and writeString() methods diff -r cdfb91189c9e -r e6db28447957 include/DataTypeWriterBase.h --- a/include/DataTypeWriterBase.h Fri Jul 13 23:02:09 2018 +0200 +++ b/include/DataTypeWriterBase.h Sat Jul 14 13:14:20 2018 +0200 @@ -22,8 +22,22 @@ virtual ~DataTypeWriterBase() { }; + /** + * @param input input stream, should be at position where the value is to be read; the stream will not be closed afred reading + * @return read value in form of the string representation of given data type. + * E.g. integer 123 is returned as a character string "123", + * boolean true is returned as a character string "true". + * See Relational pipes format specification for details. + */ virtual string_t readString(std::istream &input) = 0; + /** + * @param output output stream, should be at position where the value is to be written; the stream will not be closed not flushed after writing + * @param stringValue write value as given data type (e.g. integer or boolean); stringValue parameter contains given value in string representation of given data type + * E.g. integer 123 is passed as a character string "123" + * boolean true is passed as a character string "true". + * See Relational pipes format specification for details. + */ virtual void writeString(std::ostream& output, const string_t &stringValue) = 0; /**