git-svn-id: svn://db.shs.com.ru/pip@284 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -281,12 +281,12 @@ bool PIFile::remove(const PIString & path) {
|
||||
}
|
||||
|
||||
|
||||
PIString PIFile::constructFullPath() const {
|
||||
return fullPathPrefix() + "://" + path();
|
||||
PIString PIFile::constructFullPathDevice() const {
|
||||
return path();
|
||||
}
|
||||
|
||||
|
||||
void PIFile::configureFromFullPath(const PIString & full_path) {
|
||||
void PIFile::configureFromFullPathDevice(const PIString & full_path) {
|
||||
setPath(full_path);
|
||||
}
|
||||
|
||||
@@ -365,13 +365,13 @@ void PIFile::setPrecision(int prec) {
|
||||
}
|
||||
|
||||
|
||||
int PIFile::read(void * read_to, int max_size) {
|
||||
int PIFile::readDevice(void * read_to, int max_size) {
|
||||
if (!canRead() || fd == 0) return -1;
|
||||
return fread(read_to, 1, max_size, fd);
|
||||
}
|
||||
|
||||
|
||||
int PIFile::write(const void * data, int max_size) {
|
||||
int PIFile::writeDevice(const void * data, int max_size) {
|
||||
if (!canWrite() || fd == 0) return -1;
|
||||
return fwrite(data, 1, max_size, fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user