18 Filename FilenameUnifier::_txa_filename;
20 Filename FilenameUnifier::_rel_dirname;
32 _txa_filename = txa_filename;
34 if (_txa_dir.empty()) {
50 _rel_dirname = rel_dirname;
51 if (!_rel_dirname.empty()) {
73 if (!filename.empty()) {
85 if (!filename.empty()) {
98 if (!filename.empty()) {
112 if (filename.empty()) {
118 CanonicalFilenames::iterator fi;
119 fi = _canonical_filenames.find(orig_dirname);
120 if (fi != _canonical_filenames.end()) {
125 Filename new_dirname = orig_dirname;
126 if (new_dirname.empty()) {
132 _canonical_filenames.insert(CanonicalFilenames::value_type(orig_dirname, new_dirname));
static Filename make_bam_filename(Filename filename)
Returns a new filename that's made relative to the bam file itself, suitable for writing to the bam f...
std::string get_dirname() const
Returns the directory part of the filename.
static void set_txa_filename(const Filename &txa_filename)
Notes the filename the .txa file was found in.
bool make_canonical()
Converts this filename to a canonical name by replacing the directory part with the fully-qualified d...
static Filename make_user_filename(Filename filename)
Returns a new filename that's made relative to the current directory, suitable for reporting to the u...
static Filename make_egg_filename(Filename filename)
Returns a new filename that's made relative to the rel_directory, suitable for writing out within egg...
The name of a file, such as a texture file or an Egg file.
static Filename get_bam_filename(Filename filename)
Returns an absolute pathname based on the given relative pathname, presumably read from the bam file ...
static void make_canonical(Filename &filename)
Does the same thing as Filename::make_canonical()–it converts the filename to its canonical form–but ...
bool make_relative_to(Filename directory, bool allow_backups=true)
Adjusts this filename, which must be a fully-specified pathname beginning with a slash,...
void make_absolute()
Converts the filename to a fully-qualified pathname from the root (if it is a relative pathname),...
void set_dirname(const std::string &s)
Replaces the directory part of the filename.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static void set_rel_dirname(const Filename &rel_dirname)
Sets the name of the directory that texture filenames will be written relative to,...