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

IOInfo Class Reference

Base class for all input/output information. More...

#include <IOInfo.h>

Inheritance diagram for IOInfo::

IOInfoASCII IOInfoBin List of all members.

Public Methods

 IOInfo ()
 Constructor.

virtual ~IOInfo ()
 Destructor.

bool equals (IOInfo *)
 Returns TRUE if io equals this object.

virtual bool matches (IOInfo *)
 Returns TRUE if io matches this object (i.e. this I/O info contains io).

virtual QString convertToString ()=0
 Returns a string representing the input/output information.

virtual QString convertToBinStr ()=0
 Returns a string representing the binary input/output information.

virtual QString convertToHexStr ()=0
 Returns a string representing the hexadecimal input/output information.

virtual bool convertToASCII (char *ascii, int maxlen, int &length, bool singlechar=FALSE) const=0
 Converts the I/O information into a string of ASCII characters. More...

virtual IOInfoBin convertToBin (int numbits) const=0
 Converts this object into an IOInfoBin object.

virtual int convertToInt ()=0
 Converts the I/O info into an integer value.

virtual void convertToBinList (IOInfoList &list)=0
 Converts the I/O info into a list of IOInfoBin objects.

virtual IOInfo * clone ()=0
 Produces a copy of this object and returns a pointer to it.

virtual void setBin (QString bin, int numbits)=0
 Sets this I/O info to the binary string bin.

virtual void setASCII (const char *ascii, int asciilen, int numbits)=0
 Sets this I/O info to a string of ASCII characters. More...

virtual void setString (QString string, int numbits)=0
 Sets this I/O info to the string string.

virtual int getLength () const=0
 Returns the length of this I/O info (in bits).

virtual bool isSingle ()=0
 Returns TRUE if this I/O info is a single character.

virtual QList< IOInfo > getSingles ()=0
 Returns a list of IOInfo objects with single characters representing this I/O info.

virtual void setSize (int)
 Sets the size of the I/O info (in bits).

virtual void split (IOInfoList &)=0
 Splits the I/O info into its constituents.


Detailed Description

Base class for all input/output information.


Member Function Documentation

virtual bool IOInfo::convertToASCII char * ascii,
int maxlen,
int & length,
bool singlechar = FALSE
const [pure virtual]
 

Converts the I/O information into a string of ASCII characters.

Parameters:
ascii   Resulting array of ASCII characters
maxlen   Length of the array
number   of relevant ASCII characters in the array
singlechar   If TRUE only a single char is converted
Returns:
TRUE if successful

Reimplemented in IOInfoASCII, and IOInfoBin.

virtual void IOInfo::setASCII const char * ascii,
int asciilen,
int numbits
[pure virtual]
 

Sets this I/O info to a string of ASCII characters.

Parameters:
ascii   Array holding the ASCII characters
asciilen   Number of characters in the array to use
numbits   Number of bits of the resulting I/O info

Reimplemented in IOInfoASCII, and IOInfoBin.


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:16 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001