Disk ARchive 2.3.10
Public Member Functions | Protected Member Functions

libdar::null_file Class Reference

the null_file class implements the /dev/null behavior More...

#include <null_file.hpp>

Inherits libdar::generic_file, and libdar::thread_cancellation.

List of all members.

Public Member Functions

 null_file (user_interaction &dialog, gf_mode m)
bool skip (const infinint &pos)
 skip at the absolute position
bool skip_to_eof ()
 skip to the end of file
bool skip_relative (signed int x)
infinint get_position ()
 get the current read/write position

Protected Member Functions

int inherited_read (char *a, size_t size)
int inherited_write (const char *a, size_t size)

Detailed Description

the null_file class implements the /dev/null behavior

this is a generic_file implementation that emulate the comportment of the /dev/null special file. all that is writen to is lost, and nothing can be read from it (empty file). This is a completed implementation all call are consistent.

Definition at line 49 of file null_file.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines