Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Element Class Reference

#include <element.h>

Inheritance diagram for Element:

ComplexElement DefinedElement PaddingElement SimpleElement List of all members.

Public Methods

 Element (const char *name)
virtual int AssignPos (int currPos)=0
 Assign position to this element Return next pos. More...

int GetLength () const
virtual void Output (ostream &out, Element *sel)=0

Protected Attributes

std::string name
int position
int len

Constructor & Destructor Documentation

Element::Element const char *    name
 

Definition at line 28 of file element.h.

00028                                  :name(_name),position(-1),len(-1)
00029 {
00030 }


Member Function Documentation

virtual int Element::AssignPos int    currPos [pure virtual]
 

Assign position to this element Return next pos.

Implemented in ComplexElement, DefinedElement, SimpleElement, and PaddingElement.

int Element::GetLength   const [inline]
 

Definition at line 20 of file element.h.

References len.

Referenced by DefinedElement::AssignPos().

00020 { return len; }

virtual void Element::Output ostream &    out,
Element *    sel
[pure virtual]
 

Implemented in ComplexElement, DefinedElement, SimpleElement, and PaddingElement.


Member Data Documentation

int Element::len [protected]
 

Definition at line 25 of file element.h.

Referenced by PaddingElement::AssignPos(), SimpleElement::AssignPos(), DefinedElement::AssignPos(), ComplexElement::AssignPos(), GetLength(), PaddingElement::Output(), SimpleElement::Output(), DefinedElement::Output(), and ComplexElement::Output().

std::string Element::name [protected]
 

Definition at line 23 of file element.h.

Referenced by ComplexElement::ComplexElement(), ComplexElement::Find(), PaddingElement::Output(), SimpleElement::Output(), DefinedElement::Output(), ComplexElement::Output(), and ComplexElement::~ComplexElement().

int Element::position [protected]
 

Definition at line 24 of file element.h.

Referenced by PaddingElement::AssignPos(), SimpleElement::AssignPos(), DefinedElement::AssignPos(), ComplexElement::AssignPos(), PaddingElement::Output(), SimpleElement::Output(), DefinedElement::Output(), and ComplexElement::Output().


The documentation for this class was generated from the following file:
Generated on Mon Jan 13 22:20:36 2003 for perdr by doxygen1.2.15