Commit Graph

3038 Commits

Author SHA1 Message Date
e9fb4af89d Allow json-to-vectors with 1/2/3 dimensions 2012-04-27 13:18:12 +10:00
f8145d067f Add LOG_WARN convenience macro 2012-04-27 13:17:56 +10:00
d8b74be608 Read a maximum output level from the env.
Importantly this does not change whether log parameters are evaluated,
it simply prevents output to the log stream; ie, it is purely aethetic.
2012-04-26 18:22:24 +10:00
2515db00f2 Add string to level conversions 2012-04-26 18:22:05 +10:00
9f6566812b Use abbreviated strings for level outputs
The output looks pretty painful when long names are used everywhere.
2012-04-26 18:21:23 +10:00
fa5f78366b Add WARN and DEFAULT log level values 2012-04-26 18:20:46 +10:00
3433e10ec1 Move the json output operator into json namespace 2012-04-26 18:20:08 +10:00
c8f464aa7b Add a scoped CWD restorer, and set method 2012-04-26 18:19:37 +10:00
cf63a35e94 Give fd_ref a fs::path constructor 2012-04-26 18:19:12 +10:00
1d59bae113 Change slurp to return a unique_ptr 2012-04-26 18:18:39 +10:00
dc9a11d202 Add a simple malloc/free unique pointer.
This should really be unique_ptr based, but I can't be arsed working
around the lack of template typedefs here.
2012-04-26 18:16:33 +10:00
3823f239c2 Remove unused variables and code 2012-04-26 14:55:35 +10:00
cf39104515 List correct build dependencies for json utils 2012-04-26 14:55:16 +10:00
506cf0f3e1 Add missing files to Makefile.am listing 2012-04-26 14:54:59 +10:00
ed990ba889 Move output operators into target's namespace 2012-04-24 18:12:07 +10:00
99bdd49f2f Add first pass at logging code 2012-04-24 17:38:35 +10:00
73f483c06b Add debug annotation for unusual code paths 2012-04-24 17:38:07 +10:00
82f90f3f6c Enable silent automake build rules by default 2012-04-24 13:00:31 +10:00
9377265bfa Use update autoconf functions.
Updated via autoupdate.
2012-04-24 12:59:13 +10:00
77942e008d Change my email to an active domain 2012-04-23 13:10:50 +10:00
e34975d109 Add a simple json-schema validator.
Does not handle $ref clauses, fragments, format fields, and a bunch of
other more minor details. But it should hold for simple self-contained
json objects.
2012-04-20 18:20:49 +10:00
598f125d53 Add char* equality for json::strings 2012-04-20 18:20:19 +10:00
89fb2b238c Use the json-validate tool for unit tests 2012-04-20 18:20:15 +10:00
fd113f6c4d Add json::object::has query for keys 2012-04-20 18:09:23 +10:00
f0928b80c1 Give json-clean a licence header 2012-04-20 18:08:59 +10:00
0974400f1a Make json constructors explicit 2012-04-20 18:08:38 +10:00
75eae5b4fa Make json::object iterator public 2012-04-20 18:07:16 +10:00
4ca3438fa1 Add implementation of is_integer for json 2012-04-20 18:06:30 +10:00
17667f991f Use new style as_{type} in json to range 2012-04-20 18:05:25 +10:00
fc0b978ac1 Add maths check for integer numbers on doubles 2012-04-20 18:04:40 +10:00
64dd72db85 Add support for differing types in almost_equal 2012-04-20 18:02:54 +10:00
1627754b6a Remove simple compilation warnings for tests 2012-04-19 16:54:36 +10:00
cf69a5ba7a Add json::string::size method 2012-04-19 16:45:10 +10:00
cd9762a94a Add simple json::object accessors 2012-04-19 16:44:35 +10:00
e618fb4236 Disable some annotations for earlier gcc versions 2012-04-19 16:43:37 +10:00
a302ba91eb Add a header for informational gcc macros 2012-04-19 16:43:14 +10:00
a9f34ee449 Add a header for simple preprocessor helpers 2012-04-19 16:42:35 +10:00
cae41d87fb Add json::node equality operators and specialise 2012-04-19 16:41:54 +10:00
036f0fab51 Use C++ style comments for sections 2012-04-19 16:41:10 +10:00
e74630ba29 Explicitly link to boost_system for windows builds 2012-04-19 16:39:52 +10:00
c80d1723bf Use referencing iterator for array iteration 2012-04-13 11:30:50 +10:00
8153d048c2 Add referencing_iterator to build
A simple iterator which converts a random access iterator to a
dereferencable type into a random access iterator to a reference of said
type.
2012-04-13 11:30:50 +10:00
18b862350a Add traits helpers for dereferencable types 2012-04-13 11:30:50 +10:00
af05331358 Move sign function to maths.hpp 2012-04-13 11:23:55 +10:00
fe77bf9d7d Add and use type_error for type conversion failure 2012-04-13 11:23:13 +10:00
86b5abde08 Add json::null::as_null implementation 2012-04-13 11:15:08 +10:00
c0476c553e Use unique_ptr for all compound node children 2012-04-12 16:09:49 +10:00
4a092f92cb Update header licences and copyright dates 2012-04-12 16:09:02 +10:00
45d8cfffbf Rename "to_<type>" functions to "as_<type>"
'to' implies a copy, 'as' implies reinterpret.
2012-04-12 16:08:06 +10:00
e6ad6c2db3 Use check{_hard,_soft} in preference to assert 2012-04-12 16:06:28 +10:00