40 "failed to add object "<< objf.
name()<<
41 " to repository "<< owner->
name()<<
endl;
71 return owner_->isIncluded(objName);
79 return owner_->isExcluded(objName);
85 if(!implyRead())
return true;
87 if( rdHdr && ioPattern().thisCallRead())
89 if(
auto ptrIS = inStream(); ptrIS )
91 if(!readHeader(ptrIS()))
return false;
96 "could not open file " << path() <<
endl;
101 if(ioPattern().thisCallRead())
103 if(
auto ptrIS = inStream(); ptrIS )
105 if(!readObject(ptrIS(), rdHdr))
return false;
110 "could not open file " << path() <<
endl;
121 if(!implyWrite())
return true;
123 if(ioPattern().thisCallWrite())
125 if( ioPattern().thisProcWriteData())
127 if(
auto ptrOS = outStream(); ptrOS )
129 return writeObject(ptrOS());
134 "error in opening file "<< path() <<
endl;
141 if(
auto ptrOS = dummyOutStream(); ptrOS )
143 return writeObject(ptrOS());
148 "error in opening file "<< path() <<
endl;
163 ioPattern().thisCallRead() &&
164 !readHeader(is))
return false;
166 if(ioPattern().thisCallRead())
168 return read(is, ioPattern());
180 if(this->writeHeader() && ioPattern().thisProcWriteHeader())
182 writeHeader(os, typeName());
185 if(ioPattern().thisCallWrite())
187 return write(os, ioPattern() );