15 #ifndef CONFIGVARIABLEFILENAME_H
16 #define CONFIGVARIABLEFILENAME_H
18 #include "dtoolbase.h"
19 #include "configVariable.h"
33 INLINE ConfigVariableFilename(
const string &name,
const Filename &default_value,
34 const string &description =
string(),
int flags = 0);
36 INLINE
void operator = (
const Filename &value);
37 INLINE
operator const Filename &()
const;
41 INLINE
const char *c_str()
const;
42 INLINE
bool empty()
const;
43 INLINE
size_t length()
const;
44 INLINE
char operator [] (
int n)
const;
46 INLINE
string get_fullpath()
const;
47 INLINE
string get_dirname()
const;
48 INLINE
string get_basename()
const;
49 INLINE
string get_fullpath_wo_extension()
const;
50 INLINE
string get_basename_wo_extension()
const;
51 INLINE
string get_extension()
const;
54 INLINE
bool operator == (
const Filename &other)
const;
55 INLINE
bool operator != (
const Filename &other)
const;
56 INLINE
bool operator < (
const Filename &other)
const;
58 INLINE
void set_value(
const Filename &value);
62 INLINE
Filename get_word(
int n)
const;
63 INLINE
void set_word(
int n,
const Filename &value);
67 INLINE
const Filename &get_ref_value()
const;
70 AtomicAdjust::Integer _local_modified;
74 #include "configVariableFilename.I"
This is a convenience class to specialize ConfigVariable as a Filename type.
const ConfigDeclaration * get_default_value() const
Returns the default variable specified for this variable.
This is a generic, untyped ConfigVariable.
The name of a file, such as a texture file or an Egg file.