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

TxModelIfc Class Reference

A class with pure virtual methods to define the most basic aspects of the interface between a generic scientific and engineering model and the frame/trol objects within the Tech-X QScimpl graphics package. More...

#include <TxModelIfc.h>

Inheritance diagram for TxModelIfc::

TxEmSimIfc TxNldIfc TxAccelIfc List of all members.

Public Methods

virtual ~TxModelIfc ()
 Destructor. More...

virtual TXSTD::string getFileExt () const=0
 Get file extension string. More...

virtual int write (ostream &) const=0
 write object data. More...

virtual int read (istream &fl) const=0
 Read the input file with format determined by file extension. More...

virtual vector<TxAttributeSet*> getViewMenuAttribs ()=0
 Obtain the view menu attributes from the model. More...

virtual vector<TxAttributeSet*> getViewMenuDataAttribs ()=0
 Obtain the view menu data attributes from the model. More...

virtual vector<TxAttributeSet*> getEditMenuAttribs ()=0
 Obtain the edit menu attributes from the model. More...

virtual vector<TxAttributeSet*> getParamsMenuAttribs ()=0
 Obtain the params menu attributes from the model. More...


Protected Methods

virtual void initialize ()=0
 Initialize the class data members. More...

virtual void parseInput (int argc, char *argv[])=0
 This method is used to parse the command line input. More...


Detailed Description

A class with pure virtual methods to define the most basic aspects of the interface between a generic scientific and engineering model and the frame/trol objects within the Tech-X QScimpl graphics package.

1) Determine the file suffix for the system. 2) Command the system to read itself from or write itself to a file.

Note: This interface should not depend on QT.

Author:
Kelly G. Luetkemeyer, David L. Bruhwiler, & David A. Alexander
Version:
Id:
TxModelIfc.h,v 1.4 2001/12/07 00:14:47 kgl Exp

Definition at line 38 of file TxModelIfc.h.


Constructor & Destructor Documentation

TxModelIfc::~TxModelIfc ( ) [inline, virtual]
 

Destructor.

Definition at line 46 of file TxModelIfc.h.


Member Function Documentation

vector< TxAttributeSet *> TxModelIfc::getEditMenuAttribs ( ) [pure virtual]
 

Obtain the edit menu attributes from the model.

Reimplemented in TxNldIfc.

TXSTD::string TxModelIfc::getFileExt ( ) const [pure virtual]
 

Get file extension string.

Returns:
the file extension

Reimplemented in TxNldIfc.

vector< TxAttributeSet *> TxModelIfc::getParamsMenuAttribs ( ) [pure virtual]
 

Obtain the params menu attributes from the model.

Reimplemented in TxNldIfc.

vector< TxAttributeSet *> TxModelIfc::getViewMenuAttribs ( ) [pure virtual]
 

Obtain the view menu attributes from the model.

Reimplemented in TxNldIfc.

vector< TxAttributeSet *> TxModelIfc::getViewMenuDataAttribs ( ) [pure virtual]
 

Obtain the view menu data attributes from the model.

Reimplemented in TxNldIfc.

void TxModelIfc::initialize ( ) [protected, pure virtual]
 

Initialize the class data members.

void TxModelIfc::parseInput ( int argc,
char * argv[] ) [protected, pure virtual]
 

This method is used to parse the command line input.

int TxModelIfc::read ( istream & fl ) const [pure virtual]
 

Read the input file with format determined by file extension.

Parameters:
fl   the input stream

Returns:
failure/success as integer, with 0 being the success

Reimplemented in TxNldIfc.

int TxModelIfc::write ( ostream & ostrm ) const [pure virtual]
 

write object data.

Parameters:
ostrm   the output stream to write to

Returns:
error condition - 0 for no error

Reimplemented in TxNldIfc.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.