18 TypeHandle XFileDataObjectInteger::_type_handle;
23 XFileDataObjectInteger::
24 XFileDataObjectInteger(
const XFileDataDef *data_def,
int value) :
42 write_data(std::ostream &out,
int indent_level,
const char *separator)
const {
44 << _value << separator <<
"\n";
50 void XFileDataObjectInteger::
51 set_int_value(
int int_value) {
58 int XFileDataObjectInteger::
59 get_int_value()
const {
66 double XFileDataObjectInteger::
67 get_double_value()
const {
74 std::string XFileDataObjectInteger::
75 get_string_value()
const {
76 return format_string(_value);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A definition of a single data element appearing within a template record.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void output_data(std::ostream &out) const
Writes a suitable representation of this node to an .x file in text mode.
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.
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 ...