MCPcopy Create free account
hub / github.com/PDAL/PDAL / writeXml

Method writeXml

plugins/e57/libE57Format/src/BlobNodeImpl.cpp:185–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 void BlobNodeImpl::writeXml( ImageFileImplSharedPtr /*imf*/, CheckedFile &cf, int indent,
186 const char *forcedFieldName )
187 {
188 // don't checkImageFileOpen
189
190 ustring fieldName;
191 if ( forcedFieldName != nullptr )
192 {
193 fieldName = forcedFieldName;
194 }
195 else
196 {
197 fieldName = elementName_;
198 }
199
200 //??? need to implement
201 //??? Type --> type
202 //??? need to have length?, check same as in section header?
203 uint64_t physicalOffset = cf.logicalToPhysical( binarySectionLogicalStart_ );
204 cf << space( indent ) << "<" << fieldName << " type=\"Blob\" fileOffset=\"" << physicalOffset
205 << "\" length=\"" << blobLogicalLength_ << "\"/>\n";
206 }
207
208#ifdef E57_ENABLE_DIAGNOSTIC_OUTPUT
209 void BlobNodeImpl::dump( int indent, std::ostream &os ) const

Callers 1

closeMethod · 0.45

Calls 2

spaceFunction · 0.85
logicalToPhysicalMethod · 0.80

Tested by

no test coverage detected