Panda3D
pathStore.h
1 // Filename: pathStore.h
2 // Created by: drose (10Feb03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PATHSTORE_H
16 #define PATHSTORE_H
17 
18 #include "pandatoolbase.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Enum : PathStore
22 // Description : This enumerated type lists the methods by which
23 // a filename path might be mangled before storing in a
24 // destination file.
25 ////////////////////////////////////////////////////////////////////
26 enum PathStore {
27  PS_invalid, // Never use this.
28  PS_relative, // Make relative to a user-specified directory.
29  PS_absolute, // Make absolute.
30  PS_rel_abs, // Make relative if within the directory, otherwise absolute.
31  PS_strip, // Strip prefix and just store the basename.
32  PS_keep, // Don't change the filename at all.
33 };
34 
35 string format_path_store(PathStore unit);
36 
37 ostream &operator << (ostream &out, PathStore unit);
38 PathStore string_path_store(const string &str);
39 
40 #endif