28 return _original_filename;
46 return write_file((
const unsigned char *)data.data(), data.size(), auto_wrap);
56 _original_filename = filename;
61 operator << (std::ostream &out,
const VirtualFile &file) {
bool write_file(const std::string &data, bool auto_wrap)
Writes the entire contents of the file as a string, if it is writable.
void set_original_filename(const Filename &filename)
Stores the original filename that was used to locate this VirtualFile.
The abstract base class for a file or directory within the VirtualFileSystem.
The name of a file, such as a texture file or an Egg file.
std::string read_file(bool auto_unwrap) const
Returns the entire contents of the file as a string.
const Filename & get_original_filename() const
Returns the original filename as it was used to locate this VirtualFile.