Commit Graph

121 Commits

Author SHA1 Message Date
Jesse Beder
d818065d1c 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
741e354b48 Fix build warning from gcc about std::copy 2015-01-24 11:14:53 -06:00
beder
e60512357d Add dll tag to Binary 2014-03-25 22:03:27 -05:00
Jesse Beder
e9cb1d8d86 Add missing DLL export, and set up gtest/gmock to properly import their symbols. 2014-03-23 23:56:17 -05:00
beder
4e3221bb13 clang-format 2014-03-23 20:08:54 -05:00
beder
9154ad2e6f Run IWYU 2014-03-22 22:46:04 -05:00
beder
376a1dc678 Add more ostream_wrapper tests 2014-03-22 19:22:23 -05:00
beder
91a8fbda5b Run clang-format 2014-03-22 12:49:16 -05:00
beder
72ecb3e586 Renamed all variables named 'null' (for real now, and only that) 2012-11-08 18:38:20 -06:00
beder
5e952a2b9c Reverted last change 2012-11-08 18:24:00 -06:00
beder
c0b7359d7d Renamed all variables named 'null' 2012-11-08 18:21:00 -06:00
beder
a42a10b7a7 Changed Emitter::size() to return std::size_t instead of unsigned 2012-05-25 19:38:58 -05:00
beder
64e5d74cc9 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
6633fea749 Refactored stream overloads 2012-05-25 18:24:07 -05:00
beder
c3facc9b58 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
7c436de457 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
bfa3cce38d Updated ostream wrapper with a write() and update_pos 2012-05-25 17:39:14 -05:00
beder
c212377371 Renamed ostream -> ostream_wrapper 2012-05-25 17:28:35 -05:00
beder
b1491a6941 Removed key/value error checks (since we don't require asking them) 2012-05-22 16:57:30 -05:00
beder
70f6e4d7e6 Added flow map, simple key/value 2012-05-22 16:36:07 -05:00
beder
2dc8e5d5f6 Split block map simple/long key for both key/value 2012-05-22 14:20:50 -05:00
beder
436f809c32 Added writing float/double 2012-05-22 13:59:31 -05:00
beder
27b2688acb Added writing integral types 2012-05-22 13:57:44 -05:00
beder
9b62237623 Split the block map prepare into key/value 2012-05-22 12:56:40 -05:00
beder
00f1d064be Tweaked spacing for comments 2012-05-22 12:54:54 -05:00
beder
6e35c4c5da 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
799fdf942b Added comments, not entirely correct 2012-05-22 12:29:36 -05:00
beder
6de5f9b290 Structured emitter node handling better 2012-05-21 21:57:25 -05:00
beder
dc998b52dc Started prepare node 2012-05-21 17:06:12 -05:00
beder
a60635ed5a Implemented begin/end doc 2012-05-21 16:54:45 -05:00
beder
4cf89bc18e Removed old emitter state machine 2012-05-21 16:31:07 -05:00
beder
a388a73daa Removed stl node, which was from the old-api but never deleted 2012-05-19 15:37:39 -05:00
beder
46c6e94a7c Removed old api exceptions 2012-05-19 01:32:10 -05:00
beder
8b18d804ce Removed traces of old-api Node 2012-05-19 01:19:03 -05:00
beder
492894f9be Removed old-api tests, added (empty) core spec tests 2012-05-19 01:16:54 -05:00
beder
d07cb7dd00 First pass at spearating out a 'core' library from the old api (default) branch 2012-05-19 01:04:43 -05:00
beder
3bb7da4d26 Fixed warning about binary's shadowing members functions 2012-01-25 17:40:16 -06:00
beder
0f721ed991 Added operator >> overload for Binary 2012-01-21 02:01:37 -06:00
beder
d5f10fd5aa 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
bc208bbf75 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
457e0c16cf Added back yaml.h (since it used to be generated) 2012-01-21 00:08:35 -06:00
beder
510b1c5f61 Put all the old-api stuff back in the main folder, for simplicity 2012-01-20 23:55:39 -06:00
beder
d72f94ba87 Removed the new API from the default branch 2012-01-20 23:50:39 -06:00
beder
88540cc96a Fixed double -> int conversion (now throws) for old API 2012-01-12 23:52:51 -06:00
beder
60fa4d7f63 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
924bb8b00e Added default parameters for the as<> function (new API) 2012-01-12 01:03:31 -06:00
beder
f3446cbcea Added LoadFile and LoadAllFromFile (new API) 2012-01-11 21:31:01 -06:00
beder
e4838f0933 Fixed signed/unsigned mismatch with the new precision code 2012-01-11 16:50:06 -06:00
beder
8f948b8f37 Added float/double precision setters 2012-01-11 14:34:04 -06:00
beder
537063f907 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