Commit Graph

199 Commits

Author SHA1 Message Date
beder
6f304c47eb Merged ostreams for the emitter change from the core 2012-05-25 19:35:24 -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
a1a4d28391 Merged emitter refactor from core 2012-05-23 15:30:03 -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
ff8a262c20 Updated from core 2012-05-19 15:40:30 -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
5571029726 Copied all files from new-api branch of old repo 2012-05-19 15:34:02 -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
beder
63ef6c42d1 Fixed compiler error in iterator_base friend forward declaration in node on clang (and I hope MSVC), plus warnings on clang 2012-01-07 01:42:21 -06:00
beder
12ed4698bf Fixed assignment with an empty node (new API) - a segfault that only showed up in debuggable 2011-12-20 22:19:54 -06:00
beder
65855fa149 Added overload for emitting unsigned char 2011-11-14 17:00:28 -06:00
beder
0d12b0ac1f Added single character emitting 2011-11-14 16:23:14 -06:00
beder
5f942b9f6b Added (unspecified-type) bool conversions for Node (new API) 2011-11-13 16:05:42 -06:00
beder
368c70554f Set the default operator >> to not compile unless there is a scalar conversion, so it doesn't interfere with user-defined types 2011-11-01 17:19:03 -05:00
beder
7e96c0d948 Fixed broken includes when using the old api 2011-10-18 15:13:10 -05:00
beder
8fd4bc3d99 Fixed the #ifdefs for the api stuff 2011-10-18 14:47:35 -05:00