#include <IOInfoBin.h>
Inheritance diagram for IOInfoBin::

Public Methods | |
| IOInfoBin (char *) | |
| Constructor. More... | |
| IOInfoBin () | |
| Standard constructor. More... | |
| IOInfoBin (int code, int len) | |
| Constructor. More... | |
| ~IOInfoBin () | |
| Destructor. | |
| IOInfoBin (const IOInfoBin &) | |
| Copy constructor. | |
| IOInfoBin & | operator= (const IOInfoBin &) |
| Overloaded assignment operator. | |
| bool | isSingle () |
| Returns TRUE if this I/O info is a single character. | |
| QList< IOInfo > | getSingles () |
| Returns a list of IOInfo objects with single characters representing this I/O info. | |
| int | getLength () const |
| Returns lenght of the information. | |
| char * | getInfo () |
| Returns a pointer to the binary array. | |
| void | setInfo (char *) |
| Sets the I/O info to the character string io (binary format, see IOInfoBin::info). | |
| void | invertBits () |
| Inverts the order of the bits of this I/O info. | |
| void | setBin (QString bin, int numbits) |
| Sets this I/O info to the binary string bin. | |
| void | setASCII (const char *ascii, int asciilen, int numbits) |
| Sets this I/O info to a string of ASCII characters. More... | |
| void | setString (QString string, int numbits) |
| Sets this I/O info to the string string. | |
| void | setSize (int) |
| Sets the size of the I/O info (in bits). | |
| QString | convertToString () |
| Returns a string representing the input/output information. | |
| QString | convertToBinStr () |
| Returns a string representing the binary input/output information. | |
| QString | convertToHexStr () |
| Returns a string representing the hexadecimal input/output information. | |
| bool | convertToASCII (char *ascii, int maxlen, int &length, bool singlechar=FALSE) const |
| Converts the I/O information into a string of ASCII characters. More... | |
| IOInfoBin | convertToBin (int numbits) const |
| Converts this object into an IOInfoBin object. | |
| int | convertToInt () |
| Converts the I/O info into an integer value. | |
| void | convertToBinList (IOInfoList &list) |
| Converts the I/O info into a list of IOInfoBin objects. | |
| IOInfo * | clone () |
| Produces a copy of this object and returns a pointer to it. | |
| void | split (IOInfoList &) |
| Splits the I/O info into its constituents. | |
Static Private Methods | |
| void | resolveX (IOInfoBin bin, IOInfoList &list) |
| Resolves the 'don't care' positions. More... | |
Private Attributes | |
| char * | info |
| The char array that contains the bits. More... | |
|
|
Constructor. Initialises the IOInfo object with the bits contained in the array io with the length len. |
|
|
Standard constructor. Sets no information. |
|
|||||||||||||||
|
Constructor.
|
|
|||||||||||||||||||||||||||||
|
Converts the I/O information into a string of ASCII characters.
Reimplemented from IOInfo. |
|
|||||||||||||||
|
Resolves the 'don't care' positions. Example: '0X' would result in '00' and '01'
|
|
||||||||||||||||||||||
|
Sets this I/O info to a string of ASCII characters.
Reimplemented from IOInfo. |
|
|
The char array that contains the bits. Every character represents a bit. 0: 0 / 1: 1 / 2: X (don't care) / 10: end of string |
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001