![]() |
Rosetta
2021.16
|
FileStream is a wrapper class for a utility::io::izstream object that derives from ResourceStream. More...
#include <FileSystemResourceLocator.hh>

Public Member Functions | |
| FileStream () | |
| FileStream (std::string const &filename, std::ios_base::openmode open_mode=std::ios_base::in) | |
| Constructor that initializes both the name for the file and its openmode. More... | |
| ~FileStream () override | |
| void | open (std::string const &filename, std::ios_base::openmode open_mode=std::ios_base::in) |
| Open a particular file; must be called if the default constructor is used. More... | |
| std::istream & | stream () override |
| Return non-const access to the internal stream so that it can be used to construct a resource. More... | |
Public Member Functions inherited from basic::resource_manager::ResourceStream | |
| ~ResourceStream () override | |
Public Member Functions inherited from utility::VirtualBase | |
| VirtualBase ()=default | |
| Default constructor. More... | |
| virtual | ~VirtualBase ()=default |
| The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
| VirtualBase (VirtualBase const &)=default | |
| VirtualBase (VirtualBase &&)=default | |
| VirtualBase & | operator= (VirtualBase const &)=default |
| VirtualBase & | operator= (VirtualBase &&)=default |
Private Member Functions | |
| FileStream (FileStream const &) | |
| This is private and unimplemented. The FileStream shouldn't be copied. More... | |
Private Attributes | |
| utility::io::izstream | stream_ |
FileStream is a wrapper class for a utility::io::izstream object that derives from ResourceStream.
| basic::resource_manager::locator::FileStream::FileStream | ( | ) |
If you use this constructor be sure to use the open function before accessing the stream
| basic::resource_manager::locator::FileStream::FileStream | ( | std::string const & | filename, |
| std::ios_base::openmode | open_mode = std::ios_base::in |
||
| ) |
Constructor that initializes both the name for the file and its openmode.
References CREATE_EXCEPTION, utility::file::file_extension(), utility::io::izstream::get_alternative_search_paths(), basic::options::OptionKeys::score::fiber_diffraction::p, platform::file::PATH_SEPARATOR(), stream_, and basic::resource_manager::locator::TR.
|
overridedefault |
|
private |
This is private and unimplemented. The FileStream shouldn't be copied.
| void basic::resource_manager::locator::FileStream::open | ( | std::string const & | filename, |
| std::ios_base::openmode | open_mode = std::ios_base::in |
||
| ) |
Open a particular file; must be called if the default constructor is used.
References CREATE_EXCEPTION, utility::io::izstream::open(), and stream_.
|
overridevirtual |
Return non-const access to the internal stream so that it can be used to construct a resource.
Implements basic::resource_manager::ResourceStream.
References stream_.
Referenced by basic::resource_manager::locator::FileListResourceLocator::locate_resource_stream().
|
private |
Referenced by FileStream(), open(), and stream().
1.8.7