Panda3D
Loading...
Searching...
No Matches
virtualFileComposite.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file virtualFileComposite.I
10 * @author drose
11 * @date 2002-08-03
12 */
13
14/**
15 *
16 */
17INLINE VirtualFileComposite::
18VirtualFileComposite(VirtualFileSystem *file_system, const Filename &filename) :
19 _file_system(file_system),
20 _filename(filename)
21{
22}
23
24/**
25 * Adds one more component to the composite directory. The component should
26 * be a directory and the file system and filename should match the composite.
27 */
30 nassertv(file->is_directory());
31 nassertv(file->get_file_system() == _file_system);
32 nassertv(file->get_filename() == _filename);
33
34 _components.push_back(file);
35}
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
void add_component(VirtualFile *file)
Adds one more component to the composite directory.
A hierarchy of directories and files that appears to be one continuous file system,...
The abstract base class for a file or directory within the VirtualFileSystem.
Definition virtualFile.h:35
virtual bool is_directory() const
Returns true if this file represents a directory (and scan_directory() may be called),...