git-svn-id: svn://db.shs.com.ru/pip@238 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-08-23 17:31:29 +00:00
parent f3af56a70e
commit 3b6a746644
2 changed files with 2 additions and 2 deletions

View File

@@ -339,7 +339,7 @@ char PIFile::readChar() {
void PIFile::setPath(const PIString & path) { void PIFile::setPath(const PIString & path) {
PIIODevice::setPath(path); PIIODevice::setPath(path);
if (isOpened()) openDevice(); if (isOpened()) open();
} }

View File

@@ -285,7 +285,7 @@ protected:
//! Reimplement to configure device from entries "e_main" and "e_parent", cast arguments to \a PIConfig::Entry* //! Reimplement to configure device from entries "e_main" and "e_parent", cast arguments to \a PIConfig::Entry*
virtual bool configureDevice(const void * e_main, const void * e_parent = 0) {return true;} virtual bool configureDevice(const void * e_main, const void * e_parent = 0) {return true;}
//! Reimplement to open device, return value will be set to "opened_" variable //! Reimplement to open device, return value will be set to "opened_" variable; don't call this function in subclass, use open()
virtual bool openDevice() = 0; // use path_, type_, opened_, init_ variables virtual bool openDevice() = 0; // use path_, type_, opened_, init_ variables
//! Reimplement to close device, inverse return value will be set to "opened_" variable //! Reimplement to close device, inverse return value will be set to "opened_" variable