00001 // Filename: pathStore.h 00002 // Created by: drose (10Feb03) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PATHSTORE_H 00016 #define PATHSTORE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Enum : PathStore 00022 // Description : This enumerated type lists the methods by which 00023 // a filename path might be mangled before storing in a 00024 // destination file. 00025 //////////////////////////////////////////////////////////////////// 00026 enum PathStore { 00027 PS_invalid, // Never use this. 00028 PS_relative, // Make relative to a user-specified directory. 00029 PS_absolute, // Make absolute. 00030 PS_rel_abs, // Make relative if within the directory, otherwise absolute. 00031 PS_strip, // Strip prefix and just store the basename. 00032 PS_keep, // Don't change the filename at all. 00033 }; 00034 00035 string format_path_store(PathStore unit); 00036 00037 ostream &operator << (ostream &out, PathStore unit); 00038 PathStore string_path_store(const string &str); 00039 00040 #endif