occt: master a8d3a0b1
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
vro | bugmaster | master | 2020-12-11 15:13:25 | master c6685c65 |
Affected Issues | 0029901: Application Framework - Support save to and restore from Stream interface in TObj package | |||
Changeset | 0029901: Support save to and restore from Stream interface in TObj package Storage and retrieval of a document by means of a stream is distributed to TObj model. Modified files: -TObj_Model.hxx, cxx - the virtual methods Load() and SaveAs() obtained a stream as an argument instead of a file name. -TObj_Application.hxx, cxx - same extension: the virtual methods LoadDocument() and SaveDocument() use a stream to open and save a document. -TObjDRAW.cxx - draw-commands TObjSave and TObjLoad are extended for -stream parameter, which allows usage of a file input or output stream instead of a file name. A new test: - bugs caf bug29901 - it creates a simple TObj-model, saves it on disk using a file stream, loads it by means of a file stream and checks the content. Modified test: - bugs caf bug28425 - just improved to proper manipulate a test-file on disk. |
|||
mod - src/TObj/TObj_Application.cxx | Diff File | |||
mod - src/TObj/TObj_Application.hxx | Diff File | |||
mod - src/TObj/TObj_Model.cxx | Diff File | |||
mod - src/TObj/TObj_Model.hxx | Diff File | |||
mod - src/TObjDRAW/TObjDRAW.cxx | Diff File | |||
mod - tests/bugs/caf/bug28425 | Diff File | |||
add - tests/bugs/caf/bug29901 | Diff File |