1. 04 Jan, 2018 1 commit
  2. 04 May, 2017 1 commit
  3. 24 Apr, 2017 1 commit
  4. 11 Aug, 2016 1 commit
  5. 30 Jun, 2016 1 commit
  6. 29 Jun, 2016 1 commit
  7. 06 Jun, 2016 1 commit
    • Mark Olesen's avatar
      ENH: cleanup Ostream to ease usage (issue #254) · 06f22a9b
      Mark Olesen authored
      - Include newline in beginBlock/endBlock, since this corresponds to
        the standard usage. The beginBlock now takes keyType instead of word.
      
      - Provide Ostream::writeEntry method to reduce clutter and simplify
        writing of entries.
      
        Before
        ======
            os << indent << "name" << nl
               << indent << token::BEGIN_BLOCK << incrIndent << nl;
            os.writeKeyword("key1") << val1 << token::END_STATEMENT << nl;
            os.writeKeyword("key2") << val2 << token::END_STATEMENT << nl;
            os << decrIndent << indent << token::END_BLOCK << nl;
      
        After
        =====
            os.beginBlock("name");
            os.writeEntry("key1", val1);
            os.writeEntry("key2", val2);
            os.endBlock();
      
      - For completeness, support inline use of various Ostream methods.
        For example,
      
            os << beginBlock;
            os.writeEntry("key1", val1);
            os.writeEntry("key2", val2);
            os << endBlock;
      
      - For those who wish to write in long form, can also use endEntry inline:
      
            os.beginBlock("name");
            os.writeKeyword("key1") << val2 << endEntry;
            os.writeKeyword("key2") << val2 << endEntry;
            os.endBlock();
      
      The endEntry encapsulates a semi-colon, newline combination.
      06f22a9b
  8. 15 Apr, 2016 2 commits
  9. 29 Feb, 2016 1 commit
  10. 08 Nov, 2015 1 commit
  11. 22 Jul, 2013 1 commit
  12. 11 Apr, 2013 1 commit
  13. 02 Oct, 2012 1 commit
  14. 14 Aug, 2011 1 commit
  15. 14 Apr, 2011 1 commit
  16. 19 Jan, 2011 1 commit
  17. 14 Jan, 2011 1 commit
  18. 07 Jan, 2011 1 commit
  19. 05 Jan, 2011 2 commits
  20. 11 Oct, 2010 1 commit
  21. 15 Jul, 2010 1 commit
  22. 20 Apr, 2010 1 commit
  23. 29 Mar, 2010 1 commit
  24. 09 Feb, 2010 1 commit
  25. 28 Jan, 2010 1 commit
  26. 09 Apr, 2009 1 commit
  27. 31 Dec, 2008 1 commit
  28. 25 Jun, 2008 2 commits
  29. 15 Apr, 2008 1 commit