41 class ImageFileImpl :
public std::enable_shared_from_this<ImageFileImpl>
47 std::shared_ptr<StructureNodeImpl>
root();
56 uint64_t
allocateSpace( uint64_t byteCount,
bool doExtendNow );
79 unsigned bitsNeeded( int64_t minimum, int64_t maximum );
87 void dump(
int indent = 0, std::ostream &os = std::cout )
const;
100 void checkImageFileOpen(
const char *srcFileName,
int srcLineNumber,
const char *srcFunctionName )
const;
112 uint64_t xmlLogicalOffset_;
113 uint64_t xmlLogicalLength_;
116 uint64_t unusedLogicalStart_;
119 std::vector<NameSpace> nameSpaces_;
122 std::shared_ptr<StructureNodeImpl> root_;
std::vector< PCLPointField > fields
ImageFileImpl(ReadChecksumPolicy policy)
std::shared_ptr< StructureNodeImpl > root()
bool isElementNameLegal(const ustring &elementName, bool allowNumber=true)
CheckedFile * file() const
void dump(int indent=0, std::ostream &os=std::cout) const
Diagnostic functions:
void extensionsAdd(const ustring &prefix, const ustring &uri)
Manipulate registered extensions in the file.
unsigned bitsNeeded(int64_t minimum, int64_t maximum)
size_t extensionsCount() const
void checkElementNameLegal(const ustring &elementName, bool allowNumber=true)
bool extensionsLookupUri(const ustring &uri, ustring &prefix) const
void construct2(const ustring &fileName, const ustring &mode)
ustring pathNameUnparse(bool isRelative, const StringList &fields)
uint64_t allocateSpace(uint64_t byteCount, bool doExtendNow)
bool isPathNameLegal(const ustring &pathName)
void pathNameParse(const ustring &pathName, bool &isRelative, StringList &fields)
bool isElementNameExtended(const ustring &elementName)
Utility functions:
void elementNameParse(const ustring &elementName, ustring &prefix, ustring &localPart, bool allowNumber=true)
ustring extensionsPrefix(const size_t index) const
bool extensionsLookupPrefix(const ustring &prefix, ustring &uri) const
ustring extensionsUri(const size_t index) const
void pathNameCheckWellFormed(const ustring &pathName)
int ReadChecksumPolicy
Specifies the percentage of checksums which are verified when reading an ImageFile (0-100%).
std::string ustring
UTF-8 encodeded Unicode string.
std::vector< std::string > StringList