Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
XFileDataObjectString Class Reference

An string-valued data element. More...

#include "xFileDataObjectString.h"

Inheritance diagram for XFileDataObjectString:
XFileDataObject ReferenceCount MemoryBase

List of all members.

Public Member Functions

 XFileDataObjectString (const XFileDataDef *data_def, const string &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 string get_string_value () const
 Returns the object's representation as a string, if it has one.
virtual void set_string_value (const string &string_value)
 Sets the object's value as a string, if this is legal.

Detailed Description

An string-valued data element.

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

Definition at line 27 of file xFileDataObjectString.h.


Member Function Documentation

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

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

Reimplemented from XFileDataObject.

Definition at line 75 of file xFileDataObjectString.cxx.

void XFileDataObjectString::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 xFileDataObjectString.cxx.

void XFileDataObjectString::set_string_value ( const string &  string_value) [protected, virtual]

Sets the object's value as a string, if this is legal.

Reimplemented from XFileDataObject.

Definition at line 64 of file xFileDataObjectString.cxx.

void XFileDataObjectString::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 xFileDataObjectString.cxx.


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