|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Object identifying the SQL data type BFILE. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_File * >.
Public Member Functions | |
| 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 3876 of file ocilib.hpp.
|
inline |
Parametrized constructor.
| connection | - Parent connection |
Definition at line 2505 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 2510 of file ocilib_impl.hpp.
References ocilib::Check(), OCI_FileCreate(), OCI_FileFree(), and SetInfos().
|
inline |
Read a portion of a file.
| size | - Maximum number of bytes to read |
Definition at line 2522 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 2531 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FileSeek().
|
inline |
Check if the given file exists on server.
Definition at line 2565 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FileExists().
Set the directory and file name of our file object.
Definition at line 2570 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_FileSetName().
Referenced by File().