include/DataTypeWriterBase.h
branchv_0
changeset 4 e6db28447957
parent 3 cdfb91189c9e
child 5 7fe870c3362f
equal deleted inserted replaced
3:cdfb91189c9e 4:e6db28447957
    20 	}
    20 	}
    21 
    21 
    22 	virtual ~DataTypeWriterBase() {
    22 	virtual ~DataTypeWriterBase() {
    23 	};
    23 	};
    24 
    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 	 */
    25 	virtual string_t readString(std::istream &input) = 0;
    32 	virtual string_t readString(std::istream &input) = 0;
    26 
    33 
       
    34 	/**
       
    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
       
    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
       
    37 	 * E.g. integer 123 is passed as a character string "123"
       
    38 	 * boolean true is passed as a character string "true".
       
    39 	 * See Relational pipes format specification for details.
       
    40 	 */
    27 	virtual void writeString(std::ostream& output, const string_t &stringValue) = 0;
    41 	virtual void writeString(std::ostream& output, const string_t &stringValue) = 0;
    28 
    42 
    29 	/**
    43 	/**
    30 	 * @param dataType data type code as defined in DDP L0
    44 	 * @param dataType data type code as defined in DDP L0
    31 	 * @return whether this class supports conversions of this type
    45 	 * @return whether this class supports conversions of this type