Commit Graph

207 Commits

Author SHA1 Message Date
Jesse Beder
10d873ced4 Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting 2015-01-24 12:19:20 -06:00
Jesse Beder
0d07011e74 Fix build warning from gcc about std::copy 2015-01-24 11:14:53 -06:00
beder
13e259cf1f Add dll tag to Binary 2014-03-25 22:03:27 -05:00
Jesse Beder
da0d87af80 Add missing DLL export, and set up gtest/gmock to properly import their symbols. 2014-03-23 23:56:17 -05:00
beder
a11c70679e clang-format 2014-03-23 20:08:54 -05:00
beder
08a5d4c673 Run IWYU 2014-03-22 22:46:04 -05:00
beder
153d03c6da Add more ostream_wrapper tests 2014-03-22 19:22:23 -05:00
beder
1069bce879 Run clang-format 2014-03-22 12:49:16 -05:00
beder
a52233e638 Renamed all variables named 'null' (for real now, and only that) 2012-11-08 18:38:20 -06:00
beder
33d58b9256 Reverted last change 2012-11-08 18:24:00 -06:00
beder
3af7908b43 Renamed all variables named 'null' 2012-11-08 18:21:00 -06:00
beder
826732d85d Changed Emitter::size() to return std::size_t instead of unsigned 2012-05-25 19:38:58 -05:00
beder
dc04850ecc Switched the stream << for c-strings to take a templated array param (since we never stream user-built c-strings, only string literals). For this, refactored the escape character display 2012-05-25 19:33:34 -05:00
beder
0a8d7486ff Refactored stream overloads 2012-05-25 18:24:07 -05:00
beder
bbce38d36f Added constructor to the Emitter with a stream, so you can write directly to a stream instead of our temp 2012-05-25 18:22:33 -05:00
beder
c591e8d752 Switched the ostream wrapper to wrap a std::vector<char> instead of our manually managed memory 2012-05-25 18:17:14 -05:00
beder
083f37ada2 Updated ostream wrapper with a write() and update_pos 2012-05-25 17:39:14 -05:00
beder
6d521ac74f Renamed ostream -> ostream_wrapper 2012-05-25 17:28:35 -05:00
beder
7c235ea619 Removed key/value error checks (since we don't require asking them) 2012-05-22 16:57:30 -05:00
beder
401e19508d Added flow map, simple key/value 2012-05-22 16:36:07 -05:00
beder
e971c4f549 Split block map simple/long key for both key/value 2012-05-22 14:20:50 -05:00
beder
a11f1ce810 Added writing float/double 2012-05-22 13:59:31 -05:00
beder
d3be76c8fb Added writing integral types 2012-05-22 13:57:44 -05:00
beder
f830dc3fce Split the block map prepare into key/value 2012-05-22 12:56:40 -05:00
beder
b28d0ec08b Tweaked spacing for comments 2012-05-22 12:54:54 -05:00
beder
1b66ba7493 Fixed when we emit the doc start (only if there already is a document in the stream, and we're about to emit a new node) 2012-05-22 12:37:00 -05:00
beder
2555296de3 Added comments, not entirely correct 2012-05-22 12:29:36 -05:00
beder
72e57aeac2 Structured emitter node handling better 2012-05-21 21:57:25 -05:00
beder
e533e8801b Started prepare node 2012-05-21 17:06:12 -05:00
beder
8d10fa4efd Implemented begin/end doc 2012-05-21 16:54:45 -05:00
beder
db8d4a45f9 Removed old emitter state machine 2012-05-21 16:31:07 -05:00
beder
97ebe38666 Removed stl node, which was from the old-api but never deleted 2012-05-19 15:37:39 -05:00
beder
c858643174 Removed old api exceptions 2012-05-19 01:32:10 -05:00
beder
58de8b9ae5 Removed traces of old-api Node 2012-05-19 01:19:03 -05:00
beder
c1e890df85 Removed old-api tests, added (empty) core spec tests 2012-05-19 01:16:54 -05:00
beder
a54fe9cea9 First pass at spearating out a 'core' library from the old api (default) branch 2012-05-19 01:04:43 -05:00
beder
83638d8891 Fixed warning about binary's shadowing members functions 2012-01-25 17:40:16 -06:00
beder
2eb3815ff5 Added operator >> overload for Binary 2012-01-21 02:01:37 -06:00
beder
ce08203cd7 Renamed the base64 methods, and switched the EncodeBase64 one to return a string (to make it easy to use elsewhere) 2012-01-21 01:33:49 -06:00
beder
c193d053a2 Refactored the base64 binary to its own space with a unified class that (will) be used for parsing (in addition to emitting) 2012-01-21 01:18:37 -06:00
beder
d63b213aef Added back yaml.h (since it used to be generated) 2012-01-21 00:08:35 -06:00
beder
005ea5fc68 Put all the old-api stuff back in the main folder, for simplicity 2012-01-20 23:55:39 -06:00
beder
45962234a1 Removed the new API from the default branch 2012-01-20 23:50:39 -06:00
beder
454afa64dd Fixed double -> int conversion (now throws) for old API 2012-01-12 23:52:51 -06:00
beder
9bb3cf4915 Updated new API conversion to handle nan/inf and to throw when the conversion didn't use the entire string (e.g., parsing 1.2 as an integer) 2012-01-12 23:49:05 -06:00
beder
f468101ebb Added default parameters for the as<> function (new API) 2012-01-12 01:03:31 -06:00
beder
414f28518b Added LoadFile and LoadAllFromFile (new API) 2012-01-11 21:31:01 -06:00
beder
4abe207421 Fixed signed/unsigned mismatch with the new precision code 2012-01-11 16:50:06 -06:00
beder
64b2491a79 Added float/double precision setters 2012-01-11 14:34:04 -06:00
beder
8d087aa148 Added explicit conversion from an iterator value to a Node. This conversion was always allowed (since the iterator value is derived from Node, but since Node has a templated constructor, that would take precedence over the derived-to-base conversion. This didn't seem to be a problem in gcc or clang, but MSVC seems to have trouble. (new API) 2012-01-11 13:58:18 -06:00