std::basic_ofstream< _CharT, _Traits > Class Template Reference

List of all members.

Public Member Functions

 basic_ofstream ()
 basic_ofstream (const char *__s, ios_base::openmode __mode=ios_base::out|ios_base::trunc)
 Create an output stream.

__filebuf_type * rdbuf () const
 Get a pointer to the file stream's buffer.

bool is_open ()
 Query to see if file stream is open.

void open (const char *__s, ios_base::openmode __mode=ios_base::out|ios_base::trunc)
 Specify a file to open for output.

void close ()

Detailed Description

template<typename _CharT, typename _Traits>
class std::basic_ofstream< _CharT, _Traits >

Derivation of general output streams, specific to files.

Definition at line 394 of file fstream.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits>
std::basic_ofstream< _CharT, _Traits >::basic_ofstream  )  [inline]
 

Default constructor for output file_stream.

Definition at line 414 of file fstream.

template<typename _CharT, typename _Traits>
std::basic_ofstream< _CharT, _Traits >::basic_ofstream const char *  __s,
ios_base::openmode  __mode = ios_base::out|ios_base::trunc
[inline, explicit]
 

Create an output stream.

Parameters:
s Null terminated string specifying filename.
mode Open file in specified mode (see std::ios_base).
Tip: When using std::string to hold the filename, you must use .c_str() before passing it to this constructor.

Definition at line 427 of file fstream.


Member Function Documentation

template<typename _CharT, typename _Traits>
void std::basic_ofstream< _CharT, _Traits >::close  )  [inline]
 

Close the file stream.

Definition at line 472 of file fstream.

template<typename _CharT, typename _Traits>
bool std::basic_ofstream< _CharT, _Traits >::is_open  )  [inline]
 

Query to see if file stream is open.

Returns:
True if stream is open.

Definition at line 452 of file fstream.

template<typename _CharT, typename _Traits>
void std::basic_ofstream< _CharT, _Traits >::open const char *  __s,
ios_base::openmode  __mode = ios_base::out | ios_base::trunc
[inline]
 

Specify a file to open for output.

Parameters:
s Null terminated string specifying filename.
mode Mode in which to open file (see std::ios_base).
Tip: When using std::string to hold the filename, you must use .c_str() before passing it to this constructor.

Definition at line 463 of file fstream.

template<typename _CharT, typename _Traits>
__filebuf_type* std::basic_ofstream< _CharT, _Traits >::rdbuf  )  const [inline]
 

Get a pointer to the file stream's buffer.

Returns:
Pointer to basic_filebuf.

Definition at line 444 of file fstream.


The documentation for this class was generated from the following file:
Generated on Wed Sep 29 13:54:58 2004 for libstdc++-v3 Source by doxygen 1.3.7