20 TypeHandle XFileDataObjectString::_type_handle;
25 XFileDataObjectString::
26 XFileDataObjectString(
const XFileDataDef *data_def,
const string &value) :
44 write_data(std::ostream &out,
int indent_level,
const char *separator)
const {
47 out << separator <<
"\n";
53 void XFileDataObjectString::
54 set_string_value(
const string &string_value) {
55 _value = string_value;
61 string XFileDataObjectString::
62 get_string_value()
const {
70 void XFileDataObjectString::
71 enquote_string(std::ostream &out)
const {
76 string::const_iterator si;
77 for (si = _value.begin(); si != _value.end(); ++si) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A definition of a single data element appearing within a template record.
virtual void write_data(std::ostream &out, int indent_level, const char *separator) const
Writes a suitable representation of this node to an .x file in text mode.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual void output_data(std::ostream &out) const
Writes a suitable representation of this node to an .x file in text mode.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The abstract base class for a number of different types of data elements that may be stored in the X ...