include/DataTypeWriterBase.h
branchv_0
changeset 5 7fe870c3362f
parent 4 e6db28447957
equal deleted inserted replaced
4:e6db28447957 5:7fe870c3362f
    19 	typeId(typeId), typeCode(typeCode) {
    19 	typeId(typeId), typeCode(typeCode) {
    20 	}
    20 	}
    21 
    21 
    22 	virtual ~DataTypeWriterBase() {
    22 	virtual ~DataTypeWriterBase() {
    23 	};
    23 	};
    24 
       
    25 	/**
       
    26 	 * @param input input stream, should be at position where the value is to be read; the stream will not be closed afred reading
       
    27 	 * @return read value in form of the string representation of given data type.
       
    28 	 * E.g. integer 123 is returned as a character string "123",
       
    29 	 * boolean true is returned as a character string "true".
       
    30 	 * See Relational pipes format specification for details.
       
    31 	 */
       
    32 	virtual string_t readString(std::istream &input) = 0;
       
    33 
    24 
    34 	/**
    25 	/**
    35 	 * @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
    26 	 * @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
    36 	 * @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
    27 	 * @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
    37 	 * E.g. integer 123 is passed as a character string "123"
    28 	 * E.g. integer 123 is passed as a character string "123"