git-svn-id: svn://db.shs.com.ru/pip@238 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -339,7 +339,7 @@ char PIFile::readChar() {
|
||||
|
||||
void PIFile::setPath(const PIString & path) {
|
||||
PIIODevice::setPath(path);
|
||||
if (isOpened()) openDevice();
|
||||
if (isOpened()) open();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ protected:
|
||||
//! 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;}
|
||||
|
||||
//! 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
|
||||
|
||||
//! Reimplement to close device, inverse return value will be set to "opened_" variable
|
||||
|
||||
Reference in New Issue
Block a user