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

This commit is contained in:
2016-11-30 12:21:53 +00:00
parent e66e78ac16
commit 8b72323dd1
25 changed files with 254 additions and 227 deletions

View File

@@ -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);
}