9#include <Pt/RefCounted.h>
10#include <Pt/Db/Blob.h>
26 class PT_DB_API
IValue :
public RefCounted
Combined Date and Time value.
Definition DateTime.h:66
Date expressed in year, month, and day.
Definition Date.h:104
Copy-on-write binary large object.
Definition Blob.h:144
Database-value backend.
Definition IValue.h:27
virtual DateTime getDateTime() const =0
Returns the value as date-time.
virtual float getFloat() const =0
Returns the value as float.
virtual int getInt() const =0
Returns the value as int.
virtual Time getTime() const =0
Returns the value as time.
virtual char getChar() const =0
Returns the value as char.
virtual double getDouble() const =0
Returns the value as double.
virtual std::string getString() const =0
Returns the value as string.
virtual bool getBool() const =0
Returns the value as bool.
virtual bool isNull() const =0
Returns true if the value is SQL NULL.
virtual void getBlob(Blob &blobdata) const =0
Writes the value as binary data into blobdata.
virtual unsigned getUnsigned() const =0
Returns the value as unsigned.
virtual Date getDate() const =0
Returns the value as date.
Time expressed in hours, minutes, seconds and milliseconds.
Definition Time.h:98
Portable SQL database access.
Core module.
Definition Allocator.h:33