14 #ifndef VIRTUALFILEMOUNTMULTIFILE_H 15 #define VIRTUALFILEMOUNTMULTIFILE_H 34 virtual bool has_file(
const Filename &file)
const;
35 virtual bool is_directory(
const Filename &file)
const;
36 virtual bool is_regular_file(
const Filename &file)
const;
39 vector_uchar &result)
const;
41 virtual std::istream *open_read_file(
const Filename &file)
const;
42 virtual std::streamsize get_file_size(
const Filename &file, std::istream *stream)
const;
43 virtual std::streamsize get_file_size(
const Filename &file)
const;
44 virtual time_t get_timestamp(
const Filename &file)
const;
47 virtual bool scan_directory(vector_string &contents,
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());
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
The abstract base class for a mount definition used within a VirtualFileSystem.
A file that contains a set of files.
This class records a particular byte sub-range within an existing file on disk.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Maps a Multifile's contents into the VirtualFileSystem.
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.