Logo Search packages:      
Sourcecode: libserial version File versions  Download package

SerialPort::~SerialPort (  )  throw ()

Destructor.

Definition at line 241 of file SerialPort.cpp.

References Close(), and IsOpen().

{
    /*
     * Close the serial port if it is open.
     */
    if ( this->IsOpen() )
    {
        this->Close() ;
    }
    /*
     * Free the memory allocated to the implementation instance.
     */
    if ( mSerialPortImpl )
    {
        delete mSerialPortImpl ;
    }
    return ;
}


Generated by  Doxygen 1.6.0   Back to index