Panda3D
panda
src
express
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
*/
17
INLINE VirtualFileComposite::
18
VirtualFileComposite(
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
*/
28
INLINE
void
VirtualFileComposite::
29
add_component
(
VirtualFile
*file) {
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
}
VirtualFileComposite::add_component
void add_component(VirtualFile *file)
Adds one more component to the composite directory.
Definition:
virtualFileComposite.I:29
VirtualFile::is_directory
virtual bool is_directory() const
Returns true if this file represents a directory (and scan_directory() may be called),...
Definition:
virtualFile.cxx:41
VirtualFileSystem
A hierarchy of directories and files that appears to be one continuous file system,...
Definition:
virtualFileSystem.h:40
VirtualFile
The abstract base class for a file or directory within the VirtualFileSystem.
Definition:
virtualFile.h:35
Filename
The name of a file, such as a texture file or an Egg file.
Definition:
filename.h:39
Generated on Mon Sep 14 2020 15:06:52 for Panda3D by
1.8.20