OCILIB (C and C++ Driver for Oracle)
4.6.3
|
Object identifying the SQL data type BFILE. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_File *>.
Public Member Functions | |
File () | |
Create an empty null File instance. | |
File (const Connection &connection) | |
Parametrized constructor. More... | |
File (const Connection &connection, const ostring &directory, const ostring &name) | |
Parametrized constructor. More... | |
Raw | Read (unsigned int size) |
Read a portion of a file. More... | |
bool | Seek (SeekMode seekMode, big_uint offset) |
Move the current position within the file for read/write operations. More... | |
bool | Exists () const |
Check if the given file exists on server. More... | |
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. More... | |
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
Definition at line 4495 of file ocilib.hpp.
|
inline |
Parametrized constructor.
connection | - Parent connection |
Definition at line 3311 of file ocilib_impl.hpp.
References ocilib::Check(), OCI_FileCreate(), and OCI_FileFree().
|
inline |
Parametrized constructor.
this convenient constructor calls File::SetInfos()
Definition at line 3316 of file ocilib_impl.hpp.
References ocilib::Check(), File(), OCI_FileCreate(), and OCI_FileFree().
|
inline |
Read a portion of a file.
size | - Maximum number of bytes to read |
Definition at line 3328 of file ocilib_impl.hpp.
References ocilib::Check(), ocilib::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 3337 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FileSeek().
|
inline |
Check if the given file exists on server.
Definition at line 3371 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FileExists().
Set the directory and file name of our file object.
Definition at line 3376 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FileSetName().