14#ifndef CONFIGVARIABLESTRING_H
15#define CONFIGVARIABLESTRING_H
23class EXPCL_DTOOL_PRC ConfigVariableString :
public ConfigVariable {
25 INLINE ConfigVariableString(
const std::string &name);
26 INLINE ConfigVariableString(
const std::string &name,
const std::string &default_value,
27 const std::string &description = std::string(),
int flags = 0);
29 INLINE
void operator = (
const std::string &value);
30 INLINE
operator const std::string & ()
const;
33 INLINE
const char *c_str()
const;
34 INLINE
bool empty()
const;
35 INLINE
size_t length()
const;
36 INLINE
char operator [] (
size_t n)
const;
39 INLINE
bool operator == (
const std::string &other)
const;
40 INLINE
bool operator != (
const std::string &other)
const;
41 INLINE
bool operator < (
const std::string &other)
const;
43 INLINE
void set_value(
const std::string &value);
44 INLINE
const std::string &
get_value()
const;
49 INLINE std::string
get_word(
size_t n)
const;
50 INLINE
void set_word(
size_t n,
const std::string &value);
56 AtomicAdjust::Integer _local_modified;
set_value
Reassigns the variable's local value.
get_value
Returns the variable's value.
std::string get_word(size_t n) const
Returns the variable's nth value.
void set_word(size_t n, const std::string &value)
Reassigns the variable's nth value.
get_default_value
Returns the variable's default value.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.