14#ifndef VIRTUALFILEMOUNTMULTIFILE_H
15#define VIRTUALFILEMOUNTMULTIFILE_H
26class EXPCL_PANDA_EXPRESS VirtualFileMountMultifile :
public VirtualFileMount {
28 INLINE VirtualFileMountMultifile(
Multifile *multifile);
29 virtual ~VirtualFileMountMultifile();
39 vector_uchar &result)
const;
50 virtual void output(std::ostream &out)
const;
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
64 static void init_type() {
65 VirtualFileMount::init_type();
67 VirtualFileMount::get_class_type());
The name of a file, such as a texture file or an Egg file.
A file that contains a set of files.
This class records a particular byte sub-range within an existing file on disk.
TypeHandle is the identifier used to differentiate C++ class types.
Multifile * get_multifile() const
Returns the Multifile pointer that this mount object is based on.
virtual bool is_regular_file(const Filename &file) const
Returns true if the indicated file exists within the mount system and is a regular file.
virtual bool has_file(const Filename &file) const
Returns true if the indicated file exists within the mount system.
virtual std::istream * open_read_file(const Filename &file) const
Opens the file for reading, if it exists.
virtual bool is_directory(const Filename &file) const
Returns true if the indicated file exists within the mount system and is a directory.
virtual time_t get_timestamp(const Filename &file) const
Returns a time_t value that represents the time the file was last modified, to within whatever precis...
virtual std::streamsize get_file_size(const Filename &file, std::istream *stream) const
Returns the current size on disk (or wherever it is) of the already-open file.
virtual bool scan_directory(vector_string &contents, const Filename &dir) const
Fills the given vector up with the list of filenames that are local to this directory,...
virtual bool read_file(const Filename &file, bool do_uncompress, vector_uchar &result) const
Fills up the indicated pvector with the contents of the file, if it is a regular file.
virtual bool get_system_info(const Filename &file, SubfileInfo &info)
Populates the SubfileInfo structure with the data representing where the file actually resides on dis...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.