#include <ngcbTMPFILE.hpp>
Public Member Functions | |
| ngcbTMPFILE & | operator= (const ngcbTMPFILE &other) |
| Operator =. | |
| ngcbTMPFILE (const ngcbTMPFILE &other) | |
| Copy constructor. | |
| ngcbTMPFILE () | |
| Constructor. | |
| virtual | ~ngcbTMPFILE () |
| Destructor. | |
| const char * | ErrMsg () |
| Return error message. | |
| size_t | Size () |
| Return actual size of temporary file. | |
| void | Remove () |
| Remove temporary file. | |
| void | Rewind () |
| Rewind back to the beginning of file. | |
| void | Append () |
| Jump to end of file. | |
| void | Clear () |
| Rewind back to the beginning of file and truncate. | |
| int | Copy (FILE *fd) |
| Copy all content to stream. | |
| int | Copy (const char *fileName) |
| Copy all content to another file. | |
| size_t | Copy (void *buffer, size_t max, off_t offset=0L) |
| Copy up to max. bytes to buffer. | |
Public Attributes | |
| FILE * | fd |
| File pointer. | |
Temporary-file manager class
| ngcbTMPFILE::ngcbTMPFILE | ( | const ngcbTMPFILE & | other | ) |
Copy constructor.
| ngcbTMPFILE::ngcbTMPFILE | ( | ) |
Constructor.
|
virtual |
Destructor.
| void ngcbTMPFILE::Append | ( | ) |
Jump to end of file.
| void ngcbTMPFILE::Clear | ( | ) |
Rewind back to the beginning of file and truncate.
| int ngcbTMPFILE::Copy | ( | const char * | fileName | ) |
Copy all content to another file.
| int ngcbTMPFILE::Copy | ( | FILE * | fd | ) |
Copy all content to stream.
| size_t ngcbTMPFILE::Copy | ( | void * | buffer, |
| size_t | max, | ||
| off_t | offset = 0L ) |
Copy up to max. bytes to buffer.
| const char * ngcbTMPFILE::ErrMsg | ( | ) |
Return error message.
| ngcbTMPFILE & ngcbTMPFILE::operator= | ( | const ngcbTMPFILE & | other | ) |
Operator =.
| void ngcbTMPFILE::Remove | ( | ) |
Remove temporary file.
| void ngcbTMPFILE::Rewind | ( | ) |
Rewind back to the beginning of file.
| size_t ngcbTMPFILE::Size | ( | ) |
Return actual size of temporary file.
| FILE* ngcbTMPFILE::fd |
File pointer.