]> OCCT Git - occt.git/commit
0032099: Visualization - define OSD_FileSystem class managing opening of file streams CR31500 IR-2021-02-12
authorosa <osa@opencascade.com>
Fri, 5 Feb 2021 14:51:17 +0000 (17:51 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sat, 13 Feb 2021 08:04:19 +0000 (11:04 +0300)
commit92f8ec2f01ac8abf1d54576941e7ba1f4c8112a4
treea94b2300805b20c7a4d50f7435c94083dd0f2b18
parent9ee24815989c871e6e566ef899ab23252cc92721
0032099: Visualization - define OSD_FileSystem class managing opening of file streams

1) Remove unnecessary includes of "Standard_OStream.hxx" file and add it only into files where it is really used.
2) Create the base interface for a file stream provider OSD_FileSystem and its inheritor OSD_CachedFileSystem that keeping last stream to be reused for opening a stream with the same URL.
3) Use OSD_CachedFileSystem object instead of RWGltf_GltfSharedIStream during Gltf reading.
23 files changed:
src/GccEnt/GccEnt.hxx
src/Graphic3d/Graphic3d_Vertex.hxx
src/IGESData/IGESData_IGESDumper.hxx
src/OSD/FILES
src/OSD/OSD_CachedFileSystem.cxx [new file with mode: 0644]
src/OSD/OSD_CachedFileSystem.hxx [new file with mode: 0644]
src/OSD/OSD_FileSystem.cxx [new file with mode: 0644]
src/OSD/OSD_FileSystem.hxx [new file with mode: 0644]
src/OSD/OSD_FileSystemSelector.cxx [new file with mode: 0644]
src/OSD/OSD_FileSystemSelector.hxx [new file with mode: 0644]
src/OSD/OSD_LocalFileSystem.cxx [new file with mode: 0644]
src/OSD/OSD_LocalFileSystem.hxx [new file with mode: 0644]
src/OSD/OSD_StreamBuffer.hxx [new file with mode: 0644]
src/RWGltf/RWGltf_CafReader.cxx
src/RWGltf/RWGltf_PrimitiveArrayReader.cxx
src/RWGltf/RWGltf_PrimitiveArrayReader.hxx
src/Standard/Standard_CString.cxx
src/Standard/Standard_ExtCharacter.hxx
src/Standard/Standard_Mutex.cxx
src/Standard/Standard_Real.cxx
src/Standard/Standard_ShortReal.cxx
src/TopLoc/TopLoc_Location.hxx
src/gp/gp_Mat.hxx