Skip to content
Snippets Groups Projects
Commit ee895577 authored by Mark OLESEN's avatar Mark OLESEN Committed by Kutalmış Berçin
Browse files

ENH: improve OFstream append behaviour (#3160)

- previous support for file appending (largely unused) always
  specified opening with the std::ios_base::app flag.

  Now differentiate between append behaviours:

  APPEND_APP
  ~~~~~~~~~~
  Corresponds to std::ios_base::app behaviour:

  - Existing files will be preserved and a seek-to-end is performed at
    every write. With this mode seeks/repositioning within the file
    will effectively be ignored on output.

  APPEND_ATE
  ~~~~~~~~~~
  Largely approximates std::ios_base::ate behaviour:

  - Existing files will be preserved and a seek-to-end is performed
    immediately after opening, but not subsequently. Can use seekp()
    to overwrite parts of a file.
parent 9f032057
Branches
Tags
2 merge requests!695OpenFOAM v2406,!682Add support for reading ensight transient single-file format
Showing
with 412 additions and 131 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment