Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/virtualFileComposite.I

Go to the documentation of this file.
00001 // Filename: virtualFileComposite.I
00002 // Created by:  drose (03Aug02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: VirtualFileComposite::Constructor
00022 //       Access: Public
00023 //  Description: 
00024 ////////////////////////////////////////////////////////////////////
00025 INLINE VirtualFileComposite::
00026 VirtualFileComposite(VirtualFileSystem *file_system, const Filename &filename) :
00027   _file_system(file_system),
00028   _filename(filename)
00029 {
00030 }
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //     Function: VirtualFileComposite::add_component
00034 //       Access: Public
00035 //  Description: Adds one more component to the composite directory.
00036 //                The component should be a directory and the file
00037 //                system and filename should match the composite.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE void VirtualFileComposite::
00040 add_component(VirtualFile *file) {
00041   nassertv(file->is_directory());
00042   nassertv(file->get_file_system() == _file_system);
00043   nassertv(file->get_filename() == _filename);
00044   
00045   _components.push_back(file);
00046 }

Generated on Fri May 2 00:38:48 2003 for Panda by doxygen1.3