ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbTMPFILE Class Reference

#include <ngcbTMPFILE.hpp>

Public Member Functions

ngcbTMPFILEoperator= (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.
 

Detailed Description

Temporary-file manager class

Constructor & Destructor Documentation

◆ ngcbTMPFILE() [1/2]

ngcbTMPFILE::ngcbTMPFILE ( const ngcbTMPFILE & other)

Copy constructor.

◆ ngcbTMPFILE() [2/2]

ngcbTMPFILE::ngcbTMPFILE ( )

Constructor.

◆ ~ngcbTMPFILE()

ngcbTMPFILE::~ngcbTMPFILE ( )
virtual

Destructor.

Member Function Documentation

◆ Append()

void ngcbTMPFILE::Append ( )

Jump to end of file.

◆ Clear()

void ngcbTMPFILE::Clear ( )

Rewind back to the beginning of file and truncate.

◆ Copy() [1/3]

int ngcbTMPFILE::Copy ( const char * fileName)

Copy all content to another file.

◆ Copy() [2/3]

int ngcbTMPFILE::Copy ( FILE * fd)

Copy all content to stream.

◆ Copy() [3/3]

size_t ngcbTMPFILE::Copy ( void * buffer,
size_t max,
off_t offset = 0L )

Copy up to max. bytes to buffer.

◆ ErrMsg()

const char * ngcbTMPFILE::ErrMsg ( )

Return error message.

◆ operator=()

ngcbTMPFILE & ngcbTMPFILE::operator= ( const ngcbTMPFILE & other)

Operator =.

◆ Remove()

void ngcbTMPFILE::Remove ( )

Remove temporary file.

◆ Rewind()

void ngcbTMPFILE::Rewind ( )

Rewind back to the beginning of file.

◆ Size()

size_t ngcbTMPFILE::Size ( )

Return actual size of temporary file.

Member Data Documentation

◆ fd

FILE* ngcbTMPFILE::fd

File pointer.


The documentation for this class was generated from the following files: