class xobj

XSIL object base class

Inheritance:


Public Methods

xobj(void)
Null constructor.
xobj(const char* Name, const char* Type=0)
Data constructor
xobj(const xobj& x)
Copy constructor.
virtual ~xobj(void)
Object destructor.
virtual void Spew(xsil::Xwriter& ostr) const
Write the object to an XML file
virtual const char* getObjType(void) const
Get the object type
virtual xobj* Clone(void) const
Clone an object
const char* getName(void) const
Get the object name
const char* getType(void) const
Get the object type field
const std::string& refName(void) const
Get the object name
const std::string& refType(void) const
Get the object type field
void setName(const char* Name)
Set the oobject name
void setType(const char* Type)
Set the object type

Documentation

The xobj class contains the name and type fields common to (almost) all of the XSil data objects. It also provides a standard interface for puting object of different types into lists.
xobj(void)
Default (null) constructor.

xobj(const char* Name, const char* Type=0)
Data constructor
Parameters:
Name - Pointer to the object name string
Type - Pointer to the object type string

xobj(const xobj& x)
Construct an xobj identical to the argument.
Parameters:
x - xobj to be copied.

virtual ~xobj(void)
Object destructor.

virtual void Spew(xsil::Xwriter& ostr) const
Write the Object and any embedded object to an XML file.
Parameters:
ostr - XML output file descriptor.

virtual const char* getObjType(void) const
Get the object type
Returns:
pointer to the object type string.

virtual xobj* Clone(void) const
Create an identical copy(clone) of the current object.
Returns:
Pointer to the newly created clone

const char* getName(void) const
Get the object name
Returns:
Pointer to the object type name

const char* getType(void) const
Get the object type field
Returns:
Pointer to the object type string.

const std::string& refName(void) const
Get the object name
Returns:
Reference to the object name string.

const std::string& refType(void) const
Get the object type field
Returns:
Reference to the object type string.

void setName(const char* Name)
Set the oobject name
Parameters:
Name - Pointer to the object type name

void setType(const char* Type)
Set the object type field.
Parameters:
Type - Pointer to the object type string.


Direct child classes:
time
table
param
dim
comment
column
array
XSIL
Stream
Author:
J. Zweizig
Version:
1.1; Modified December 13, 1999

alphabetic index hierarchy of classes


generated by doc++