dune-fem  2.4.1-rc
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::XDRFileOutStream Class Reference

XDR output stream writing into a file. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/io/streams/xdrstreams.hh>

Inheritance diagram for Dune::Fem::XDRFileOutStream:
Inheritance graph

Public Types

enum  
 
typedef XDRFileOutStream OutStreamType
 type of the implementaton (Barton-Nackman) More...
 
typedef XDROutStreamTraits< OutStreamTypeTraits
 type of the traits More...
 
typedef ThisType OutStreamInterfaceType
 type of the interface More...
 

Public Member Functions

 XDRFileOutStream (const std::string &filename, const bool append=false)
 constructor More...
 
 ~XDRFileOutStream ()
 destructor More...
 
void flush ()
 flush the stream More...
 
void writeDouble (double value)
 write a double to the stream More...
 
void writeFloat (float value)
 write a float to the stream More...
 
void writeInt (int value)
 write an int to the stream More...
 
void writeChar (char value)
 write a char to the stream More...
 
void writeBool (const bool value)
 write a bool to the stream More...
 
void writeString (const std::string &s)
 write a string to the stream More...
 
void writeUnsignedInt (unsigned int value)
 write an unsigned int to the stream More...
 
void writeUnsignedInt64 (uint64_t value)
 write an uint64_t to the stream More...
 

Protected Member Functions

XDR * xdrs ()
 
void writeError () const
 
const Implementation & asImp () const
 
Implementation & asImp ()
 

Static Protected Member Functions

static const Implementation & asImp (const ThisType &other)
 
static Implementation & asImp (ThisType &other)
 

Protected Attributes

FILE * file_
 
XDR xdrs_
 

Detailed Description

XDR output stream writing into a file.

Newly added:

Member Typedef Documentation

type of the interface

type of the implementaton (Barton-Nackman)

type of the traits

Member Enumeration Documentation

anonymous enum
inherited

Constructor & Destructor Documentation

Dune::Fem::XDRFileOutStream::XDRFileOutStream ( const std::string &  filename,
const bool  append = false 
)
inlineexplicit

constructor

Parameters
[in]filenamename of the file to write to
[in]appendtrue if stream appends to file filename (default = false)
Dune::Fem::XDRFileOutStream::~XDRFileOutStream ( )
inline

destructor

Member Function Documentation

template<class Interface, class Implementation>
static const Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( const ThisType other)
inlinestaticprotectedinherited
template<class Interface, class Implementation>
static Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ThisType other)
inlinestaticprotectedinherited
template<class Interface, class Implementation>
const Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ) const
inlineprotectedinherited
template<class Interface, class Implementation>
Implementation& Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( )
inlineprotectedinherited
void Dune::Fem::XDRFileOutStream::flush ( )
inline

flush the stream

By calling the flush method, the user can ensure that the stream is actually transferred (e.g., written to disk)

void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeBool ( const bool  value)
inlineinherited

write a bool to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeChar ( char  value)
inlineinherited

write a char to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeDouble ( double  value)
inlineinherited

write a double to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::OutStreamInterface< XDROutStreamTraits< XDRFileOutStream > >::writeError ( ) const
inlineprotectedinherited
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeFloat ( float  value)
inlineinherited

write a float to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeInt ( int  value)
inlineinherited

write an int to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeString ( const std::string &  s)
inlineinherited

write a string to the stream

Parameters
[in]sstring to write to the stream
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeUnsignedInt ( unsigned int  value)
inlineinherited

write an unsigned int to the stream

Parameters
[in]valuevalue to write to the stream
void Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::writeUnsignedInt64 ( uint64_t  value)
inlineinherited

write an uint64_t to the stream

Parameters
[in]valuevalue to write to the stream
XDR* Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::xdrs ( )
inlineprotectedinherited

Member Data Documentation

FILE* Dune::Fem::XDRFileOutStream::file_
protected
XDR Dune::Fem::XDRBasicOutStream< XDRFileOutStream >::xdrs_
protectedinherited

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