filemm::basic_file_traits< char > Struct Template Reference

#include <file.hh>

List of all members.

template<>
struct filemm::basic_file_traits< char >


Public Types

typedef std::char_traits<
wchar_t > 
traits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type

Static Public Member Functions

static int_type fputc (int_type c, FILE *file)
static int_type getc (FILE *file)
static int_type ungetc (int_type c, FILE *file)
static int eof ()

Member Typedef Documentation

typedef traits_type::int_type filemm::basic_file_traits< char >::int_type
 

Integer type.

Definition at line 63 of file file.hh.

typedef traits_type::off_type filemm::basic_file_traits< char >::off_type
 

The offset type.

Definition at line 67 of file file.hh.

typedef traits_type::pos_type filemm::basic_file_traits< char >::pos_type
 

The position type.

Definition at line 65 of file file.hh.

typedef std::char_traits<wchar_t> filemm::basic_file_traits< char >::traits_type
 

The type of the traits.

Definition at line 61 of file file.hh.


Member Function Documentation

static int filemm::basic_file_traits< char >::eof  )  [inline, static]
 

Returns:
The end of file marker for the character type

Definition at line 96 of file file.hh.

static int_type filemm::basic_file_traits< char >::fputc int_type  c,
FILE *  file
[inline, static]
 

Put a character c to the file file.

Parameters:
c Character to put to the file
file File pointer
Returns:
On success, c cast to the integer type, or EOF on failure

Definition at line 73 of file file.hh.

static int_type filemm::basic_file_traits< char >::getc FILE *  file  )  [inline, static]
 

Get a single character from the file file.

Parameters:
file File pointer to read the character from
Returns:
EOF on end of file, or error. Otherwise character read from file, cast to the integer type

Definition at line 81 of file file.hh.

static int_type filemm::basic_file_traits< char >::ungetc int_type  c,
FILE *  file
[inline, static]
 

Pushes c back to the file, where it is available for subsequent read operations.

Pushed - back characters will be returned in reverse order; only one pushback is guaranteed.

Parameters:
c Character to push back.
file File pointer to push back to
Returns:
The character pushed back, or EOF on error

Definition at line 91 of file file.hh.


The documentation for this struct was generated from the following file:
Top of page
Last update Wed Apr 13 07:51:08 2005
Christian Holm
Created by DoxyGen 1.4.2