OSTC Companion  3.0
Companion sofftware for H&W dive computers
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
SerialTest Class Reference

Fake serial interface, to connect a Mockup device. More...

#include <SerialTest.h>

Inheritance diagram for SerialTest:
Inheritance graph
[legend]

Public Member Functions

 SerialTest ()
 
void open (const QString &port, const QString &type) override
 Instanciate a Mockup implementation. More...
 
void close () override
 
void writeByte (unsigned char byte) const override
 
unsigned char readByte () const override
 
void writeBlock (const unsigned char *ptr, unsigned int size) const override
 
unsigned int readBlock (unsigned char *ptr, unsigned int size) const override
 
void purge () override
 
void flush () const override
 
- Public Member Functions inherited from Serial
 Serial ()
 
virtual ~Serial ()
 
void writeShort (unsigned short word) const
 
unsigned short readShort () const
 
void writeInt24 (unsigned int int24) const
 
unsigned int readInt24 () const
 
void sleep (int msec) const
 
bool isOpen () const
 

Detailed Description

Fake serial interface, to connect a Mockup device.

See also
Mockup

Constructor & Destructor Documentation

SerialTest::SerialTest ( )
inline

Member Function Documentation

void SerialTest::close ( )
overridevirtual

Reimplemented from Serial.

void SerialTest::flush ( ) const
overridevirtual

Reimplemented from Serial.

void SerialTest::open ( const QString &  port,
const QString &  type 
)
overridevirtual

Instanciate a Mockup implementation.

Override

Re-implement all basic methods.

Parameters
[in]portUsed to select which implemtation to use.
[in]typeThe name of the emulator to use on the other side.

Reimplemented from Serial.

void SerialTest::purge ( )
overridevirtual

Reimplemented from Serial.

unsigned int SerialTest::readBlock ( unsigned char *  ptr,
unsigned int  size 
) const
overridevirtual

Reimplemented from Serial.

unsigned char SerialTest::readByte ( ) const
overridevirtual

Reimplemented from Serial.

void SerialTest::writeBlock ( const unsigned char *  ptr,
unsigned int  size 
) const
overridevirtual

Reimplemented from Serial.

void SerialTest::writeByte ( unsigned char  byte) const
overridevirtual

Reimplemented from Serial.


The documentation for this class was generated from the following files: