class dim : public xobj

Array dimension class.

Inheritance:


Public Methods

dim(void)
Default constructor
dim(const char* Name, int N)
Full dimension constructor.
dim(const dim& Dim)
Dimension copy constructor.
~dim(void)
Destructor
void Spew(Xwriter& xout) const
Write out the dimension object to an XML file.
xobj* Clone(void) const
Get object type.
const char* getObjType(void) const
Get object type.
int getDim(void) const
Get the dimension length
void setDim(int Dim)
Set the dimension

Inherited from xobj:

Public Methods

const char* getName(void) const
const char* getType(void) const
const std::string& refName(void) const
const std::string& refType(void) const
void setName(const char* Name)
void setType(const char* Type)

Documentation

xsil::dim carries the XSIL Array object's dimension information.
dim(void)
Default constructor

dim(const char* Name, int N)
Construct an object with a non-zero dimension size and an optional name. If the name is coded as a null pointer, the name attribute is left blank.

dim(const dim& Dim)
Construct a dimension object identical to the argument object.
Parameters:
Dim - Dimension object to be copied.

~dim(void)
Destructor

void Spew(Xwriter& xout) const
The dimension object is written to an XML output stream specified by the argument object. The calling sequesnce is kept compatible with the xobj abstract class in case it is decided that dim should inherit xobj;
Parameters:
xout - XML writer to which the dimension is to be written.

xobj* Clone(void) const
Clone a dimension object.
Returns:
Object type;

const char* getObjType(void) const
Returns a charater string "Dim" representing the object type.
Returns:
Object type;

int getDim(void) const
Get the dimension length. Returns aninteger length for this dimension.

void setDim(int Dim)
Set the dimension. Set the dimension length to the integer argument value.


This class has no child classes.
Author:
J. Zweizig
Version:
1.1; Modified December 13, 1999

alphabetic index hierarchy of classes


generated by doc++