|
gem5
v22.0.0.2
|
#include <output.hh>
Public Types | |
| typedef StreamType | stream_type_t |
Public Member Functions | |
| virtual | ~OutputFile () |
| bool | recreateable () const override |
| Can the file be recreated if the output directory is moved? More... | |
Public Member Functions inherited from gem5::OutputStream | |
| virtual | ~OutputStream () |
| std::ostream * | stream () const |
| Get the output underlying output stream. More... | |
| const std::string & | name () const |
| Get the file name in the output directory. More... | |
Protected Member Functions | |
| OutputFile (const OutputDirectory &dir, const std::string &name, std::ios_base::openmode mode, bool recreateable) | |
| OutputFile (const OutputFile< StreamType > &f) | |
| void | relocate (const OutputDirectory &dir) override |
| Re-create the file in a new location if it is relocatable. More... | |
Protected Member Functions inherited from gem5::OutputStream | |
| OutputStream (const std::string &name, std::ostream *stream) | |
| Wrap an existing stream. More... | |
| OutputStream (const OutputStream &f) | |
Protected Attributes | |
| const std::ios_base::openmode | _mode |
| File mode when opened. More... | |
| const bool | _recreateable |
| Can the file be recreated in a new location? More... | |
| stream_type_t *const | _fstream |
| Pointer to the file stream. More... | |
Protected Attributes inherited from gem5::OutputStream | |
| const std::string | _name |
| Name in output directory. More... | |
| std::ostream *const | _stream |
| Underlying output stream. More... | |
Friends | |
| class | OutputDirectory |
| typedef StreamType gem5::OutputFile< StreamType >::stream_type_t |
|
virtual |
|
protected |
Definition at line 80 of file output.cc.
References gem5::OutputFile< StreamType >::_fstream, gem5::OutputFile< StreamType >::_mode, gem5::OutputStream::_name, panic_if, and gem5::OutputDirectory::resolve().
|
protected |
|
inlineoverridevirtual |
Can the file be recreated if the output directory is moved?
Reimplemented from gem5::OutputStream.
Definition at line 110 of file output.hh.
References gem5::OutputFile< StreamType >::_recreateable.
|
overrideprotectedvirtual |
Re-create the file in a new location if it is relocatable.
Reimplemented from gem5::OutputStream.
Definition at line 104 of file output.cc.
References gem5::OutputDirectory::resolve().
|
friend |
|
protected |
Pointer to the file stream.
Definition at line 133 of file output.hh.
Referenced by gem5::OutputFile< StreamType >::OutputFile().
|
protected |
File mode when opened.
Definition at line 127 of file output.hh.
Referenced by gem5::OutputFile< StreamType >::OutputFile().
|
protected |
Can the file be recreated in a new location?
Definition at line 130 of file output.hh.
Referenced by gem5::OutputFile< StreamType >::recreateable().