14#ifndef XFILEDATAOBJECTDOUBLE_H
15#define XFILEDATAOBJECTDOUBLE_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);
34 virtual void set_double_value(
double double_value);
36 virtual int get_int_value()
const;
37 virtual double get_double_value()
const;
38 virtual std::string get_string_value()
const;
47 static void init_type() {
48 XFileDataObject::init_type();
50 XFileDataObject::get_class_type());
53 return get_class_type();
55 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
TypeHandle is the identifier used to differentiate C++ class types.
A definition of a single data element appearing within a template record.
An double-valued data element.
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.
virtual void output_data(std::ostream &out) 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 ...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.