1. 11 Dec, 2019 1 commit
  2. 10 Dec, 2019 1 commit
  3. 06 Dec, 2019 1 commit
    • Mark Olesen's avatar
      ENH: add ITstream append and seek methods. · 9fd696e1
      Mark Olesen authored
      - ITstream append() would previously have used the append from the
        underlying tokenList, which leaves the tokenIndex untouched and
        renders the freshly appended tokens effectively invisible if
        interspersed with primitiveEntry::read() that itself uses tokenIndex
        when building the list.
        The new append() method makes this hidden ITstream bi-directionality
        easier to manage. For efficiency, we only append lists
        (not individual tokens) and support a 'lazy' resizing that allows
        the final resizing to occur later when all tokens have been appended.
      - The new ITstream seek() method provides a conveniently means to move
        to the end of the list or reposition to the middle.
        Using rewind() and using seek(0) are identical.
      ENH: added OTstream to output directly to a list of tokens
      BUG: List::newElem resized incorrectly
      - had a simple doubling of the List size without checking that this
        would indeed be sufficient for the requested index.
        Bug was not triggered since primitiveEntry was the only class using
        this call, and it added the tokens sequentially.
  4. 31 Oct, 2019 1 commit
  5. 25 Oct, 2019 1 commit
    • Mark Olesen's avatar
      ENH: add flexible command options for setting Debug and Info switches #1467 · da332229
      Mark Olesen authored
      For example,
         $ someSolver -info-switch writeOptionalEntries
      - note that values changed via the command-line are changed after the
        etc/controlDict entries, but *before* any case-local
        system/controlDict entries.
        However, in many testing cases the command-line options eliminate
        the need for such local file modifications.
      ENH: cleanup handling of local debug switches in Time
      - add as methods directly on simpleObjectRegistry to avoid code
      STYLE: adjust internal naming of ITstream parameters
  6. 20 Aug, 2019 2 commits
    • Mark Olesen's avatar
      ENH: suppress IOerror newlines if file name is empty · 3f06722a
      Mark Olesen authored
      - compacter messages in some cases
      STYLE: simplify output handling of line numbers
    • Mark Olesen's avatar
      ENH: minor improvements, cleanup of token class · c9cb4ce3
      Mark Olesen authored
      - relax casting rules
        * down-cast of labelToken to boolToken
        * up-cast of wordToken to stringToken.
          Can use isStringType() test for word or string types
      - simplify constructors, move construct etc.
      - expose reset() method as public, which resets to UNDEFINED and
        clears allocated storage etc.
      DEFEATURE: remove assign from word or string pointer.
      - This was deprecated 2017-11 and now removed.
        For this type of content transfer, move assignment should be used
        instead of stealing pointers.
  7. 14 Aug, 2019 1 commit
  8. 31 Jul, 2019 1 commit
    • Mark Olesen's avatar
      ENH: make OSstream indentation adjustable · 8b3d77ba
      Mark Olesen authored
      - this is principally for cases where reduced indentation is desired,
        such as when streaming to a memory location. If the indentation size
        is zero or one, only a single space will be used to separate the
        This change does not affect the stream allocation size, since the
        extra data falls within the padding.
      ENH: relocate label/scalar sizes from Istream to IOstream.
      - could allow future use for output streams as well?
        Due to padding, reorganization has no effect on allocated size
        of output streams.
      STYLE: add read/write name qualifier to beginRaw, endRaw
      - removes ambiguity for bi-directional streams
      STYLE: fix inconsistent 'const' qualifier on std::streamsize
      - base Ostream was without const, some derived streams with const
  9. 29 Jul, 2019 1 commit
    • Mark Olesen's avatar
      ENH: support low-level reading of raw binary blocks (#1378) · bdc1c9bf
      Mark Olesen authored
      - symmetric with writeRaw() etc for the output stream. These are
        methods that are not required by normal users, but which provide
        a finer granularity for reading.
      - additional information about the current stream position when
        endList fails. This may help when tracing errors.
      STYLE: change return type of beginRaw()/endRaw() to bool
      - was of type Ostream& for output, but return value was unused.
        Having bool may be better for encapsulating logic
      STYLE: remove unused Istream::readEndBegin() function
  10. 06 Feb, 2019 1 commit
  11. 01 Nov, 2018 1 commit
  12. 12 Apr, 2018 1 commit
    • Mark Olesen's avatar
      STYLE: reorder/refactor stream format options · 4cf932b2
      Mark Olesen authored
      - IOstreamOption class to encapsulate format, compression, version.
        This is ordered to avoid internal padding in the structure, which
        reduces several bytes of memory overhead for stream objects
        and other things using this combination of data.
            old  IOstream:48  PstreamBuffers:88  Time:928
            new  IOstream:24  PstreamBuffers:72  Time:904
      STYLE: remove support for deprecated uncompressed/compressed selectors
      In older versions, the system/controlDict used these types of
          writeCompression uncompressed;
          writeCompression compressed;
      As of DEC-2009, these were deprecated in favour of using normal switch
          writeCompression true;
          writeCompression false;
          writeCompression on;
          writeCompression off;
      Now removed these deprecated names and treat like any other unknown
      input and issue a warning. Eg,
         Unknown compression specifier 'compressed', assuming no compression
      STYLE: provide Enum of stream format names (ascii, binary)
      COMP: fixed incorrect IFstream construct in FIREMeshReader
      - spurious bool argument (presumably meant as uncompressed) was being
        implicitly converted to a versionNumber. Now caught by making
        IOstreamOption::versionNumber constructor explicit.
      - bad version specifier in changeDictionary
  13. 05 Mar, 2018 1 commit
  14. 09 Nov, 2017 1 commit
  15. 05 Nov, 2017 1 commit
  16. 06 Nov, 2017 1 commit
  17. 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
  18. 04 Jul, 2017 1 commit
  19. 10 Jan, 2016 1 commit
  20. 10 Nov, 2015 1 commit
  21. 01 Nov, 2015 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. 29 Mar, 2010 1 commit
  29. 15 Jan, 2010 1 commit
  30. 15 Dec, 2009 2 commits
    • Mark Olesen's avatar
      Improve ITstream constructors. · 2c815e5b
      Mark Olesen authored
      - Use (const UList<token>&) instead of (const List<token>&)
      - Add (const Xfer< List<token> >&) constructor.
    • Mark Olesen's avatar
      Fix minor bug in ITstream · 3f0b6ec8
      Mark Olesen authored
      - The lineNumber of token::undefinedToken was being changed instead of
        just the lineNumber of the return token.
      - use List::first() and List::last() methods as well
  31. 23 Jun, 2009 1 commit
  32. 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
  33. 31 Dec, 2008 1 commit
  34. 25 Jun, 2008 2 commits
  35. 15 Apr, 2008 1 commit