Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions

XFileDataObjectDouble Class Reference

An double-valued data element. More...

#include "xFileDataObjectDouble.h"

Inheritance diagram for XFileDataObjectDouble:
XFileDataObject ReferenceCount MemoryBase

List of all members.

Public Member Functions

 XFileDataObjectDouble (const XFileDataDef *data_def, double 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_double_value (double double_value)
 Sets the object's value as a floating-point number, if this is legal.
virtual void set_int_value (int int_value)
 Sets the object's value as an integer, if this is legal.

Detailed Description

An double-valued data element.

This matches one double data member of a template, or a single element of an double array.

Definition at line 27 of file xFileDataObjectDouble.h.


Member Function Documentation

double XFileDataObjectDouble::get_double_value ( ) const [protected, virtual]

Returns the object's representation as a double, if it has one.

Reimplemented from XFileDataObject.

Definition at line 96 of file xFileDataObjectDouble.cxx.

int XFileDataObjectDouble::get_int_value ( ) const [protected, virtual]

Returns the object's representation as an integer, if it has one.

Reimplemented from XFileDataObject.

Definition at line 85 of file xFileDataObjectDouble.cxx.

string XFileDataObjectDouble::get_string_value ( ) const [protected, virtual]

Returns the object's representation as a string, if it has one.

Reimplemented from XFileDataObject.

Definition at line 107 of file xFileDataObjectDouble.cxx.

Referenced by output_data(), and write_data().

void XFileDataObjectDouble::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 xFileDataObjectDouble.cxx.

References get_string_value().

void XFileDataObjectDouble::set_double_value ( double  double_value) [protected, virtual]

Sets the object's value as a floating-point number, if this is legal.

Reimplemented from XFileDataObject.

Definition at line 74 of file xFileDataObjectDouble.cxx.

void XFileDataObjectDouble::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 xFileDataObjectDouble.cxx.

void XFileDataObjectDouble::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 xFileDataObjectDouble.cxx.

References get_string_value().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations