Panda3D
Loading...
Searching...
No Matches
configVariableList.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file configVariableList.cxx
10 * @author drose
11 * @date 2004-10-20
12 */
13
14#include "configVariableList.h"
15
16/**
17 *
18 */
19void ConfigVariableList::
20output(std::ostream &out) const {
21 out << get_num_values() << " values.";
22}
23
24/**
25 *
26 */
27void ConfigVariableList::
28write(std::ostream &out) const {
29 size_t num_values = get_num_values();
30 for (size_t i = 0; i < num_values; ++i) {
31 out << get_string_value(i) << "\n";
32 }
33}
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.