14 #ifndef XFILEDATAOBJECTINTEGER_H 15 #define XFILEDATAOBJECTINTEGER_H 29 virtual void write_data(std::ostream &out,
int indent_level,
30 const char *separator)
const;
33 virtual void set_int_value(
int int_value);
35 virtual int get_int_value()
const;
36 virtual double get_double_value()
const;
37 virtual std::string get_string_value()
const;
46 static void init_type() {
47 XFileDataObject::init_type();
49 XFileDataObject::get_class_type());
52 return get_class_type();
54 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
A definition of a single data element appearing within a template record.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An integer-valued data element.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
The abstract base class for a number of different types of data elements that may be stored in the X ...