Make your own free website on Tripod.com
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PaddingElement Class Reference

#include <element.h>

Inheritance diagram for PaddingElement:

Element List of all members.

Public Methods

 PaddingElement (const char *name, int size)
int AssignPos (int currPos)
 Assign position to this element Return next pos. More...

void Output (ostream &out, Element *sel)

Private Attributes

int size

Constructor & Destructor Documentation

PaddingElement::PaddingElement const char *    name,
int    size
 

Definition at line 207 of file element.h.

00207                                                         :
00208         Element(name),size(_size)
00209 {
00210         
00211 }


Member Function Documentation

int PaddingElement::AssignPos int    currPos [virtual]
 

Assign position to this element Return next pos.

Implements Element.

Definition at line 213 of file element.h.

References Element::len, Element::position, and size.

00214 {
00215         position = currPos;
00216         len = size;
00217         return currPos + len;
00218 }

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

Implements Element.

Definition at line 220 of file element.h.

References Element::len, Element::name, and Element::position.

00221 {
00222         out << "Padding " << name << " pos:" << position << " len:" << len << ";" << endl;
00223 }


Member Data Documentation

int PaddingElement::size [private]
 

Definition at line 204 of file element.h.

Referenced by AssignPos().


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