IBR-DTNSuite 0.6

ibrcommon::locked_fstreambuf Class Reference

#include <File.h>

List of all members.

Public Member Functions

 locked_fstreambuf ()
 locked_fstreambuf (File &file, char mode[])
 ~locked_fstreambuf ()
void open (File &file, char mode[])
bool is_open ()
void close ()

Protected Member Functions

virtual int sync ()
virtual int overflow (int=std::char_traits< char >::eof())
virtual int underflow ()
virtual traits_type::pos_type seekoff (traits_type::off_type sp, ios_base::seekdir sd, ios_base::openmode mode=ios_base::in|ios_base::out)
virtual traits_type::pos_type seekpos (traits_type::pos_type sp, ios_base::openmode mode=ios_base::in|ios_base::out)

Detailed Description

Definition at line 182 of file File.h.


Constructor & Destructor Documentation

ibrcommon::locked_fstreambuf::locked_fstreambuf ( )

Definition at line 281 of file File.cpp.

ibrcommon::locked_fstreambuf::locked_fstreambuf ( File file,
char  mode[] 
)

Definition at line 289 of file File.cpp.

References open().

Here is the call graph for this function:

ibrcommon::locked_fstreambuf::~locked_fstreambuf ( )

Definition at line 295 of file File.cpp.

References close().

Here is the call graph for this function:


Member Function Documentation

void ibrcommon::locked_fstreambuf::close ( )

Definition at line 326 of file File.cpp.

References is_open().

Referenced by ibrcommon::locked_ofstream::close(), ibrcommon::locked_ifstream::close(), and ~locked_fstreambuf().

Here is the call graph for this function:

bool ibrcommon::locked_fstreambuf::is_open ( )
void ibrcommon::locked_fstreambuf::open ( File file,
char  mode[] 
)

Definition at line 304 of file File.cpp.

References ibrcommon::File::getPath().

Referenced by locked_fstreambuf(), ibrcommon::locked_ofstream::open(), and ibrcommon::locked_ifstream::open().

Here is the call graph for this function:

int ibrcommon::locked_fstreambuf::overflow ( int  c = std::char_traits<char>::eof()) [protected, virtual]

Definition at line 344 of file File.cpp.

Referenced by sync().

virtual traits_type::pos_type ibrcommon::locked_fstreambuf::seekoff ( traits_type::off_type  sp,
ios_base::seekdir  sd,
ios_base::openmode  mode = ios_base::in | ios_base::out 
) [inline, protected, virtual]

Definition at line 198 of file File.h.

virtual traits_type::pos_type ibrcommon::locked_fstreambuf::seekpos ( traits_type::pos_type  sp,
ios_base::openmode  mode = ios_base::in | ios_base::out 
) [inline, protected, virtual]

Definition at line 204 of file File.h.

int ibrcommon::locked_fstreambuf::sync ( ) [protected, virtual]

Definition at line 335 of file File.cpp.

References overflow().

Here is the call graph for this function:

int ibrcommon::locked_fstreambuf::underflow ( ) [protected, virtual]

Definition at line 375 of file File.cpp.


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