14#ifndef CONFIGVARIABLELIST_H
15#define CONFIGVARIABLELIST_H
31class EXPCL_DTOOL_PRC ConfigVariableList :
public ConfigVariableBase {
33 INLINE ConfigVariableList(
const std::string &name,
34 const std::string &description = std::string(),
36 INLINE ~ConfigVariableList();
44 INLINE
size_t size()
const;
45 INLINE std::string operator [] (
size_t n)
const;
47 void output(std::ostream &out)
const;
48 void write(std::ostream &out)
const;
51INLINE std::ostream &operator << (std::ostream &out,
const ConfigVariableList &variable);
This class is similar to ConfigVariable, but it reports its value as a list of strings.
std::string get_unique_value(size_t n) const
Returns the nth unique value of the variable.
size_t get_num_unique_values() const
Returns the number of unique values in the variable.
size_t size() const
Returns the number of unique values of the variable.
size_t get_num_values() const
Returns the number of values in the variable.
std::string get_string_value(size_t n) const
Returns the nth value of the variable.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.