1. 18 Feb, 2020 2 commits
  2. 23 Jan, 2020 1 commit
    • Mark Olesen's avatar
      ENH: stream adjustments · 0ff02713
      Mark Olesen authored
      - make stream constructors explicit
      
      - remove "using std::ifstream", "using std::iofstream" statements
        for a cleaner namespace.
      
      * copy/move assignments for ITstream
      
      * IStringStream: default construct and construct from std::string
        instead of Foam::string
      
      - reduce some overhead in masterOFstream
      
      - simplify Pstream handling of string variants (#1525)
      0ff02713
  3. 31 Oct, 2019 1 commit
  4. 02 Apr, 2019 1 commit
  5. 06 Feb, 2019 1 commit
  6. 23 Jan, 2019 1 commit
  7. 07 May, 2018 1 commit
  8. 27 Apr, 2018 1 commit
  9. 13 Apr, 2018 1 commit
  10. 26 Sep, 2017 1 commit
  11. 22 Sep, 2017 1 commit
  12. 23 Oct, 2017 1 commit
    • Mark Olesen's avatar
      ENH: add reset() method to IStringStream · af5f8576
      Mark Olesen authored
      - for convenience and symmetry with OStringStream
      
      STYLE: void return value for stream rewind() methods
      
      - this makes it easier to design bidirectional streams
      af5f8576
  13. 18 Jul, 2017 1 commit
  14. 17 Jul, 2017 1 commit
    • Mark Olesen's avatar
      ENH: make treatment of stream allocators more uniform (issue #532) · 86ef9e86
      Mark Olesen authored
      - use allocator class to wrap the stream pointers instead of passing
        them into ISstream, OSstream and using a dynamic cast to delete
        then. This is especially important if we will have a bidirectional
        stream (can't delete twice!).
      
      STYLE:
      
      - file stream constructors with std::string (C++11)
      
      - for rewind, explicit about in|out direction. This is not currently
        important, but avoids surprises with any future bidirectional access.
      
      - combined string streams in StringStream.H header.
        Similar to <sstream> include that has both input and output string
        streams.
      86ef9e86
  15. 04 Jul, 2017 1 commit
  16. 07 Jul, 2017 1 commit
    • Andrew Heather's avatar
      INT: Integration of Mattijs' collocated parallel IO additions · d8d6030a
      Andrew Heather authored
      Original commit message:
      ------------------------
      
      Parallel IO: New collated file format
      
      When an OpenFOAM simulation runs in parallel, the data for decomposed fields and
      mesh(es) has historically been stored in multiple files within separate
      directories for each processor.  Processor directories are named 'processorN',
      where N is the processor number.
      
      This commit introduces an alternative "collated" file format where the data for
      each decomposed field (and mesh) is collated into a single file, which is
      written and read on the master processor.  The files are stored in a single
      directory named 'processors'.
      
      The new format produces significantly fewer files - one per field, instead of N
      per field.  For large parallel cases, this avoids the restriction on the number
      of open files imposed by the operating system limits.
      
      The file writing can be threaded allowing the simulation to continue running
      while the data is being written to file.  NFS (Ne...
      d8d6030a
  17. 05 Aug, 2016 1 commit
  18. 20 Jan, 2016 2 commits
  19. 08 Nov, 2015 1 commit
  20. 18 Dec, 2013 1 commit
  21. 11 Dec, 2012 1 commit
  22. 14 Aug, 2011 1 commit
  23. 19 Jan, 2011 1 commit
  24. 14 Jan, 2011 1 commit
  25. 07 Jan, 2011 1 commit
  26. 05 Jan, 2011 2 commits
  27. 28 Jul, 2010 1 commit
  28. 12 Apr, 2010 1 commit
  29. 29 Mar, 2010 1 commit
  30. 21 Dec, 2009 1 commit
    • Mark Olesen's avatar
      Expose STL std streams in a consistent manner for serial streams. · 27926249
      Mark Olesen authored
      Previously Fstreams had stdStream() as a public member and the other
      streams had stream() as a protected member.
      
      All serial streams now have public method stdStream() and the stream()
      method has been eliminated. This is not only more consistent, but also
      avoids confusion (for the programmer, not the compiler) with the
      ITstream::stream() method.
      27926249
  31. 22 Jun, 2009 1 commit
  32. 05 Mar, 2009 1 commit
    • Mark Olesen's avatar
      regIOobject, Hasher, IOobject tweak · 7544164d
      Mark Olesen authored
      - regIOobject: don't re-register an unregister object on rename/assignment
      - Hasher: split-off HasherInt with uint32_t specializations
      - IOobject: writeBanner/writeDivider return Stream for easier chaining.
      
      ... also dropped some namespace bracketing while I was at it.
      7544164d
  33. 06 Feb, 2009 1 commit
    • Mark Olesen's avatar
      OSspecific: altered file tests · ffd9bb08
      Mark Olesen authored
      - removed the previously added fileName type(), isDir(), isFile() methods.
      
      - added optional bool parameter to isFile() function to explicitly
        enable/disable the check for gzip files.
      
      - fixed minor bugginess where the default usage of isFile() would result in
        false positive matches.
      
      - be slightly more stringent and use isDir() and isFile() instead of
        exists() function when we actually know the expected type.
      ffd9bb08
  34. 02 Feb, 2009 1 commit
  35. 10 Jan, 2009 1 commit
    • Mark Olesen's avatar
      Simplify checking of container (List/HashTable, strings) sizes · 95dcb6de
      Mark Olesen authored
      - can use 'XX.empty()' instead of 'XX.size() == 0', 'XX.size() < 1' or
        'XX.size() <= 0' or for simpler coding.
        It also has the same number of characters as '!XX.size()' and /might/ be
        more readable
      
      - many size checking had 'XX.size() > 0', 'XX.size() != 0', or 'XX.size() >= 1'
        when a simple 'XX.size()' suffices
      95dcb6de
  36. 03 Jan, 2009 1 commit
    • Mark Olesen's avatar
      reworked IOstreams · 1d866d7f
      Mark Olesen authored
      - Istream and Ostream now retain backslashes when reading/writing strings.
        The previous implementation simply discarded them, except when used to
        escape a double-quote or a newline. It is now vitally important to retain
        them, eg for quoting regular expression meta-characters.
      
        The backslash continues to be used as an escape character for double-quote
        and newline, but otherwise get passed through "as-is" without any other
        special meaning (ie, they are *NOT* C-style strings). This helps avoid
        'backslash hell'!
        For example,
           string:   "match real dots \.+, question mark \? or any char .*"
           C-style:  "match real dots \\.+, question mark \\? or any char .*"
      
      - combined subfiles in db/IOstreams, some had more copyright info than code
      - OPstreamI.H contained only private methods, moved into OPstream.C
      
      Are these really correct?
         IOstreams/Istream.H:#   include "HashTable.C"
         token/token.H:#define NoHashTableC
      1d866d7f
  37. 31 Dec, 2008 1 commit