14#ifndef CONFIGVARIABLEFILENAME_H
15#define CONFIGVARIABLEFILENAME_H
27class EXPCL_DTOOL_PRC ConfigVariableFilename :
public ConfigVariable {
29 INLINE ConfigVariableFilename(
const std::string &name);
30 INLINE ConfigVariableFilename(
const std::string &name,
const Filename &default_value,
31 const std::string &description = std::string(),
int flags = 0);
33 INLINE
void operator = (
const Filename &value);
34 INLINE
operator const Filename &()
const;
37 INLINE
const char *c_str()
const;
38 INLINE
bool empty()
const;
39 INLINE
size_t length()
const;
40 INLINE
char operator [] (
size_t n)
const;
50 INLINE
bool operator == (
const Filename &other)
const;
51 INLINE
bool operator != (
const Filename &other)
const;
52 INLINE
bool operator < (
const Filename &other)
const;
67 INLINE
const Filename &get_ref_value()
const;
70 AtomicAdjust::Integer _local_modified;
std::wstring __fspath__() const
Allows a ConfigVariableFilename object to be passed to any Python function that accepts an os....
std::string get_basename() const
Returns the basename part of the filename.
set_value
Reassigns the variable's local value.
std::string get_fullpath() const
Returns the entire filename: directory, basename, extension.
std::string get_dirname() const
Returns the directory part of the filename.
Filename get_word(size_t n) const
Returns the variable's nth value.
get_default_value
Returns the variable's default value.
std::string get_fullpath_wo_extension() const
Returns the full filename–directory and basename parts–except for the extension.
std::string get_extension() const
Returns the file extension.
void set_word(size_t n, const Filename &value)
Reassigns the variable's nth value.
get_value
Returns the variable's value.
std::string get_basename_wo_extension() const
Returns the basename part of the filename, without the file extension.
The name of a file, such as a texture file or an Egg file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.