15 #include "xFileDataObjectInteger.h"
16 #include "string_utils.h"
19 TypeHandle XFileDataObjectInteger::_type_handle;
26 XFileDataObjectInteger::
27 XFileDataObjectInteger(
const XFileDataDef *data_def,
int value) :
51 write_data(ostream &out,
int indent_level,
const char *separator)
const {
52 indent(out, indent_level)
53 << _value << separator <<
"\n";
62 void XFileDataObjectInteger::
63 set_int_value(
int int_value) {
73 int XFileDataObjectInteger::
74 get_int_value()
const {
84 double XFileDataObjectInteger::
85 get_double_value()
const {
95 string XFileDataObjectInteger::
96 get_string_value()
const {
97 return format_string(_value);
virtual void write_data(ostream &out, int indent_level, const char *separator) const
Writes a suitable representation of this node to an .x file in text mode.
A definition of a single data element appearing within a template record.
virtual void output_data(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.
The abstract base class for a number of different types of data elements that may be stored in the X ...