gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
OutputStream Class Reference

#include <output.hh>

Inheritance diagram for OutputStream:
OutputFile< StreamType >

Public Member Functions

virtual ~OutputStream ()
 
std::ostream * stream () const
 Get the output underlying output stream. More...
 
virtual bool recreateable () const
 Can the file be recreated if the output directory is moved? More...
 
const std::string & name () const
 Get the file name in the output directory. More...
 

Protected Member Functions

 OutputStream (const std::string &name, std::ostream *stream)
 Wrap an existing stream. More...
 
 OutputStream (const OutputStream &f)
 
virtual void relocate (const OutputDirectory &dir)
 Re-create the in a new location if recreateable. More...
 

Protected Attributes

const std::string _name
 Name in output directory. More...
 
std::ostream *const _stream
 Underlying output stream. More...
 

Friends

class OutputDirectory
 

Detailed Description

Definition at line 58 of file output.hh.

Constructor & Destructor Documentation

OutputStream::~OutputStream ( )
virtual

Definition at line 73 of file output.cc.

OutputStream::OutputStream ( const std::string &  name,
std::ostream *  stream 
)
protected

Wrap an existing stream.

Definition at line 68 of file output.cc.

OutputStream::OutputStream ( const OutputStream f)
protected

Member Function Documentation

const std::string& OutputStream::name ( ) const
inline

Get the file name in the output directory.

Definition at line 75 of file output.hh.

References _name.

Referenced by OutputDirectory::close().

virtual bool OutputStream::recreateable ( ) const
inlinevirtual

Can the file be recreated if the output directory is moved?

Returns
true if the file will be created in the new location, false otherwise.

Reimplemented in OutputFile< StreamType >.

Definition at line 72 of file output.hh.

void OutputStream::relocate ( const OutputDirectory dir)
protectedvirtual

Re-create the in a new location if recreateable.

Reimplemented in OutputFile< StreamType >.

Definition at line 78 of file output.cc.

std::ostream* OutputStream::stream ( ) const
inline

Friends And Related Function Documentation

friend class OutputDirectory
friend

Definition at line 78 of file output.hh.

Member Data Documentation

const std::string OutputStream::_name
protected

Name in output directory.

Definition at line 91 of file output.hh.

Referenced by name(), and OutputFile< StreamType >::OutputFile().

std::ostream* const OutputStream::_stream
protected

Underlying output stream.

Definition at line 94 of file output.hh.

Referenced by stream().


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

Generated on Fri Jun 9 2017 13:04:16 for gem5 by doxygen 1.8.6