Panda3D
|
An integer-valued data element. More...
#include "xFileDataObjectInteger.h"
Public Member Functions | |
XFileDataObjectInteger (const XFileDataDef *data_def, int value) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
virtual void | output_data (ostream &out) const |
Writes a suitable representation of this node to an .x file in text mode. | |
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. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual double | get_double_value () const |
Returns the object's representation as a double, if it has one. | |
virtual int | get_int_value () const |
Returns the object's representation as an integer, if it has one. | |
virtual string | get_string_value () const |
Returns the object's representation as a string, if it has one. | |
virtual void | set_int_value (int int_value) |
Sets the object's value as an integer, if this is legal. |
An integer-valued data element.
This matches one integer data member of a template, or a single element of an integer array.
Definition at line 27 of file xFileDataObjectInteger.h.
double XFileDataObjectInteger::get_double_value | ( | ) | const [protected, virtual] |
Returns the object's representation as a double, if it has one.
Reimplemented from XFileDataObject.
Definition at line 85 of file xFileDataObjectInteger.cxx.
int XFileDataObjectInteger::get_int_value | ( | ) | const [protected, virtual] |
Returns the object's representation as an integer, if it has one.
Reimplemented from XFileDataObject.
Definition at line 74 of file xFileDataObjectInteger.cxx.
string XFileDataObjectInteger::get_string_value | ( | ) | const [protected, virtual] |
Returns the object's representation as a string, if it has one.
Reimplemented from XFileDataObject.
Definition at line 96 of file xFileDataObjectInteger.cxx.
void XFileDataObjectInteger::output_data | ( | ostream & | out | ) | const [virtual] |
Writes a suitable representation of this node to an .x file in text mode.
Reimplemented from XFileDataObject.
Definition at line 40 of file xFileDataObjectInteger.cxx.
void XFileDataObjectInteger::set_int_value | ( | int | int_value | ) | [protected, virtual] |
Sets the object's value as an integer, if this is legal.
Reimplemented from XFileDataObject.
Definition at line 63 of file xFileDataObjectInteger.cxx.
void XFileDataObjectInteger::write_data | ( | ostream & | out, |
int | indent_level, | ||
const char * | separator | ||
) | const [virtual] |
Writes a suitable representation of this node to an .x file in text mode.
Reimplemented from XFileDataObject.
Definition at line 51 of file xFileDataObjectInteger.cxx.