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 BFILE. More...
#include <types.hpp>
Inherits ocilib::core::HandleHolder< OCI_File * >.
Public Member Functions | |
File () | |
Create an empty null File instance. | |
File (const Connection &connection) | |
Parametrized constructor. | |
File (const Connection &connection, const ostring &directory, const ostring &name) | |
Parametrized constructor. | |
Raw | Read (unsigned int size) |
Read a portion of a file. | |
bool | Seek (SeekMode seekMode, big_uint offset) |
Move the current position within the file for read/write operations. | |
bool | Exists () const |
Check if the given file exists on server. | |
big_uint | GetOffset () const |
Returns the current R/W offset within the file. | |
big_uint | GetLength () const |
Returns the number of bytes contained in the file. | |
Connection | GetConnection () const |
Return the file parent connection. | |
void | SetInfos (const ostring &directory, const ostring &name) |
Set the directory and file name of our file object. | |
ostring | GetName () const |
Return the file name. | |
ostring | GetDirectory () const |
Return the file directory. | |
void | Open () |
Open a file for reading on the server. | |
void | Close () |
Close the file on the server. | |
bool | IsOpened () const |
Check if the specified file is currently opened on the server by our object. | |
File | Clone () const |
Clone the current instance to a new one performing deep copy. | |
bool | operator== (const File &other) const |
Indicates if the current file value is equal the given file value. | |
bool | operator!= (const File &other) const |
Indicates if the current file value is not equal the given file value. | |
Object identifying the SQL data type BFILE.
This class wraps the OCILIB object handle OCI_File and its related methods
|
inline |
|
inline |
Parametrized constructor.
connection | - Parent connection |
Definition at line 35 of file File.hpp.
References ocilib::core::Check(), and OCI_FileCreate().
|
inline |
Parametrized constructor.
this convenient constructor calls File::SetInfos()
Definition at line 44 of file File.hpp.
References ocilib::core::Check(), OCI_FileCreate(), and SetInfos().
|
inline |
Read a portion of a file.
size | - Maximum number of bytes to read |
Definition at line 60 of file File.hpp.
References ocilib::core::Check(), ocilib::core::MakeRaw(), and OCI_FileRead().
|
inline |
Move the current position within the file for read/write operations.
seekMode | - Seek mode |
offset | - offset from current position |
Definition at line 69 of file File.hpp.
References ocilib::core::Check(), and OCI_FileSeek().
|
inline |
Check if the given file exists on server.
Definition at line 107 of file File.hpp.
References ocilib::core::Check(), and OCI_FileExists().
|
inline |
Returns the current R/W offset within the file.
Definition at line 88 of file File.hpp.
References ocilib::core::Check(), and OCI_FileGetOffset().
|
inline |
Returns the number of bytes contained in the file.
Definition at line 93 of file File.hpp.
References ocilib::core::Check(), and OCI_FileGetSize().
|
inline |
Return the file parent connection.
Definition at line 98 of file File.hpp.
References ocilib::core::Check(), and OCI_FileGetConnection().
Referenced by Clone().
Set the directory and file name of our file object.
Definition at line 112 of file File.hpp.
References ocilib::core::Check(), and OCI_FileSetName().
Referenced by File().
|
inline |
Return the file name.
Definition at line 117 of file File.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_FileGetName().
|
inline |
Return the file directory.
Definition at line 122 of file File.hpp.
References ocilib::core::Check(), ocilib::core::MakeString(), and OCI_FileGetDirectory().
|
inline |
Open a file for reading on the server.
Definition at line 127 of file File.hpp.
References ocilib::core::Check(), and OCI_FileOpen().
|
inline |
Close the file on the server.
Definition at line 137 of file File.hpp.
References ocilib::core::Check(), and OCI_FileClose().
|
inline |
Check if the specified file is currently opened on the server by our object.
Definition at line 132 of file File.hpp.
References ocilib::core::Check(), and OCI_FileIsOpen().
|
inline |
Clone the current instance to a new one performing deep copy.
Definition at line 74 of file File.hpp.
References ocilib::core::Check(), GetConnection(), and OCI_FileAssign().
|
inline |