Main Page | Class Hierarchy | Compound List | File List | Compound Members

dimeHeaderSection Class Reference

The dimeHeaderSection class handles the HEADER section. More...

#include <dime/sections/HeaderSection.h>

Inheritance diagram for dimeHeaderSection:

dimeSection dimeBase List of all members.

Public Member Functions

 dimeHeaderSection (dimeMemHandler *const memhandler)
virtual ~dimeHeaderSection ()
int getVariable (const char *const variableName, int *const groupcodes, dimeParam *const params, const int maxparams) const
int setVariable (const char *const variableName, const int *const groupcodes, const dimeParam *const params, const int numparams, dimeMemHandler *const memhandler=NULL)
virtual const char * getSectionName () const
virtual dimeSectioncopy (dimeModel *const model) const
virtual bool read (dimeInput *const file)
virtual bool write (dimeOutput *const file)
virtual int typeId () const
virtual int countRecords () const

Detailed Description

The dimeHeaderSection class handles the HEADER section.


Constructor & Destructor Documentation

dimeHeaderSection::dimeHeaderSection dimeMemHandler *const  memhandler  ) 
 

Constructor

dimeHeaderSection::~dimeHeaderSection  )  [virtual]
 

Destructor


Member Function Documentation

int dimeHeaderSection::countRecords  )  const [virtual]
 

Returns the number of records in this section.

Implements dimeSection.

int dimeHeaderSection::getVariable const char *const  variableName,
int *const  groupcodes,
dimeParam *const  params,
const int  maxparams
const
 

Returns a header variable. The variable attributes are copied into the groupcodes and params arrays. No more than maxparams attributes are copied. This method returns the number of attributes copied into the arrays, or -1 if the variable could not be found.

int dimeHeaderSection::setVariable const char *const  variableName,
const int *const  groupcodes,
const dimeParam *const  params,
const int  numparams,
dimeMemHandler *const  memhandler = NULL
 

Sets a header variable.

If the variable already exists in the header section, its value is overwritten. Otherwise, a new variable is created and appended to the existing variables.

int dimeHeaderSection::typeId  )  const [virtual]
 

Must be implemented by all subclasses, and should return an unique id for that class.

Implements dimeSection.


The documentation for this class was generated from the following files:
Copyright © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.