15 #ifndef XFILEDATAOBJECTINTEGER_H
16 #define XFILEDATAOBJECTINTEGER_H
18 #include "pandatoolbase.h"
19 #include "xFileDataObject.h"
32 virtual void write_data(ostream &out,
int indent_level,
33 const char *separator)
const;
36 virtual void set_int_value(
int int_value);
38 virtual int get_int_value()
const;
39 virtual double get_double_value()
const;
40 virtual string get_string_value()
const;
49 static void init_type() {
50 XFileDataObject::init_type();
51 register_type(_type_handle,
"XFileDataObjectInteger",
52 XFileDataObject::get_class_type());
55 return get_class_type();
57 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
63 #include "xFileDataObjectInteger.I"
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.
An integer-valued data element.
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 ...