Public Types | |
enum | Type { VOID, CHAR, INT32, UINT32, INT64, UINT64, STRING, DATASTREAM } |
Public Member Functions | |
NVtype (void) | |
Constructs a NVtype object. | |
NVtype (const NVtype &other) | |
Copy constructor. | |
NVtype (char val) | |
Constructs a NVtype object. | |
NVtype (nint32 val) | |
Constructs a NVType object. | |
NVtype (nuint32 val) | |
Constructs a NVType object. | |
NVtype (nint64 val) | |
Constructs a NVType object. | |
NVtype (nuint64 val) | |
Constructs a NVType object. | |
NVtype (const NString &str) | |
Constructs a NVType object. | |
NVtype (const NDataStream &str) | |
Constructs a NVType object. | |
Type | getType () const |
Current datatype of object. | |
char | toChar () const |
Gets the current data as a char. | |
nint32 | toInt32 () const |
Gets the current data as a signed 32 bit int. | |
nuint32 | toUInt32 () const |
Gets the current data as an unsigned 32 bit int. | |
nint64 | toInt64 () const |
Gets the current data as a signed 64 bit int. | |
nuint64 | toUInt64 () const |
Gets the current data as an unsigned 64 bit int. | |
NString | toString () const |
Gets the current data as a string. | |
NDataStream | toStream () const |
Gets the current data as a stream of bytes. | |
nuint32 | getSize () const |
Gets the size of the current data. | |
NVtype & | operator= (const NVtype &rhs) |
Assignment operator. | |
bool | operator== (const NVtype &rhs) const |
Checks whether the current object is equals rhs. | |
bool | operator!= (const NVtype &rhs) const |
Checks whether the current object is different than rhs. |
Definition at line 39 of file nvtype.h.
enum Type |
Copy constructor.
other | Other NVtype object to be copied |
Definition at line 32 of file nvtype.cpp.
NVtype | ( | char | val | ) | [explicit] |
Constructs a NVtype object.
val | Value to assign to the object |
Definition at line 40 of file nvtype.cpp.
References NDataStream::set().
Constructs a NVType object.
val | Value to assign to the object |
Definition at line 48 of file nvtype.cpp.
References NDataStream::set().
Constructs a NVType object.
val | Value to assign to the object |
Definition at line 55 of file nvtype.cpp.
References NDataStream::set().
Constructs a NVType object.
val | Value to assign to the object |
Definition at line 62 of file nvtype.cpp.
References NDataStream::set().
Constructs a NVType object.
val | Value to assign to the object |
Definition at line 69 of file nvtype.cpp.
References NDataStream::set().
Constructs a NVType object.
str | Value (string) to assign to the object |
Definition at line 76 of file nvtype.cpp.
References NDataStream::set().
NVtype | ( | const NDataStream & | str | ) | [explicit] |
Constructs a NVType object.
val | Value (stream) to assign to the object |
Definition at line 83 of file nvtype.cpp.
char toChar | ( | void | ) | const |
Gets the current data as a char.
Definition at line 94 of file nvtype.cpp.
References NDataStream::toChar().
nint32 toInt32 | ( | void | ) | const |
Gets the current data as a signed 32 bit int.
Definition at line 98 of file nvtype.cpp.
References NDataStream::toInt32().
nuint32 toUInt32 | ( | ) | const |
Gets the current data as an unsigned 32 bit int.
Definition at line 102 of file nvtype.cpp.
References NDataStream::toInt32().
nint64 toInt64 | ( | void | ) | const |
Gets the current data as a signed 64 bit int.
Definition at line 106 of file nvtype.cpp.
References NDataStream::toInt64().
nuint64 toUInt64 | ( | ) | const |
Gets the current data as an unsigned 64 bit int.
Definition at line 110 of file nvtype.cpp.
References NDataStream::toInt64().
NString toString | ( | void | ) | const |
Gets the current data as a string.
Definition at line 114 of file nvtype.cpp.
References NDataStream::toString().
Referenced by NSqlQuery::addBindValue(), and NSqlQuery::bindValue().
NDataStream toStream | ( | ) | const |
Gets the current data as a stream of bytes.
Definition at line 118 of file nvtype.cpp.
nuint32 getSize | ( | ) | const |
Gets the size of the current data.
Definition at line 123 of file nvtype.cpp.
References NDataStream::size().
Assignment operator.
rhs | The object to be copied |
Definition at line 128 of file nvtype.cpp.
bool operator== | ( | const NVtype & | rhs | ) | const |
Checks whether the current object is equals rhs.
rhs | The object to be checked if it's equal |
Definition at line 133 of file nvtype.cpp.
bool operator!= | ( | const NVtype & | rhs | ) | const |
Checks whether the current object is different than rhs.
rhs | The object to be checked if it's different |
Definition at line 142 of file nvtype.cpp.