OCILIB (C and C++ Driver for Oracle)
4.7.5
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
|
Object identifying the SQL data type NUMBER. More...
#include <types.hpp>
Inherits ocilib::core::HandleHolder< OCI_Number * >, and ocilib::core::Streamable.
Public Member Functions | |
Number (bool create=false) | |
Create an empty null number object. | |
Number (const otext *str, const otext *format=OTEXT("")) | |
Create a Number object with the value provided by the input Number string. | |
Number (const ostring &str, const ostring &format=OTEXT("")) | |
Create a Number object with the value provided by the input Number string. | |
void | FromString (const ostring &str, const ostring &format=OTEXT("")) const |
Assign to the number object the value provided by the input number time string. | |
ostring | ToString (const ostring &format) const |
Convert the number value to a string using the given format. | |
ostring | ToString () const override |
Convert the number value to a string using default format OCI_STRING_FORMAT_NUMERIC. | |
Number | Clone () const |
Clone the current instance to a new one performing deep copy. | |
Object identifying the SQL data type NUMBER.
This class wraps the OCILIB object handle OCI_Number and its related methods
NUMBERs can be handled using native scalar types This class is optional and exposes some special NUMBER properties
|
inline |
Create an empty null number object.
create | - Indicates if a Oracle Number object must be must be created |
Definition at line 28 of file Number.hpp.
|
inline |
Create a Number object with the value provided by the input Number string.
Definition at line 48 of file Number.hpp.
References FromString().
Create a Number object with the value provided by the input Number string.
Definition at line 41 of file Number.hpp.
References FromString().
|
inline |
Assign to the number object the value provided by the input number time string.
str | - String number time |
format | - format of the number time provided in parameter 'data' |
Definition at line 64 of file Number.hpp.
References ocilib::core::Check(), ocilib::FormatNumeric, ocilib::Environment::GetFormat(), and OCI_NumberFromText().
Referenced by Number().
Convert the number value to a string using the given format.
format | - number time format to use |
Definition at line 69 of file Number.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_NumberToText().
|
inlineoverridevirtual |
Convert the number value to a string using default format OCI_STRING_FORMAT_NUMERIC.
Implements ocilib::core::Streamable.
Definition at line 85 of file Number.hpp.
References ocilib::FormatNumeric, ocilib::Environment::GetFormat(), and ToString().
Referenced by ToString().
|
inline |
Clone the current instance to a new one performing deep copy.
Definition at line 90 of file Number.hpp.
References ocilib::core::Check(), and OCI_NumberAssign().