Skip to content

Commit

Permalink
Doc and version update
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Nov 2, 2022
1 parent 0439c1e commit ccafb43
Show file tree
Hide file tree
Showing 15 changed files with 103 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ assignees: ''

**What jsoncons library version?**

- [ ] Latest release 0.168.5
- [ ] Latest release 0.169.0
- [ ] Other release ______
- [ ] master
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
master
-----
0.169.0
-------

Defect fixes:

- Fixed issue with boost_interprocess examples not working with gcc,
contributed by [raplonu](https://github.com/raplonu)

- Fixed and enhance basic_json_diagnostics_visitor,
contributed by [ecorm](https://github.com/ecorm)

Performance Enhancement:

Expand All @@ -15,6 +23,10 @@ If the event type is a `begin_object` or a `begin_array`, returns the size of th
or array if known, otherwise 0.
For all other event types, returns 0.

- Extended the parsers/cursors/encoder for JSON, CBOR, Msgpack,
BSON, CSV, UBJSON so that they are resettable to new sources/sinks,
contributed by [ecorm](https://github.com/ecorm)

Changes:

- For consistency with library naming conventions, the directory
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/basic_json_cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ Advances to the next event. If a parsing error is encountered, sets `ec`.
const ser_context& context() const override;
Returns the current [context](ser_context.md)
void reset();
Reset cursor to read another value from the same source
template <class Sourceable>
reset(Sourceable&& source)
Reset cursor to read new value from a new source
#### Non-member functions
template <class CharT, class Source, class Allocator>
Expand Down
10 changes: 8 additions & 2 deletions doc/ref/basic_json_encoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ and uses the specified [json options](basic_json_options.md).

virtual ~basic_json_encoder() noexcept

#### Inherited from [basic_json_visitor](../basic_json_visitor.md)

#### Member functions

void reset();
Reset encoder to write another value to the same sink

void reset(Sink&& sink)
Reset encoder to write a new value to a new sink

#### Inherited from [basic_json_visitor](../basic_json_visitor.md)

void flush(); (1)

bool begin_object(semantic_tag tag=semantic_tag::none,
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/bson/basic_bson_cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ Advances to the next event. If a parsing error is encountered, sets `ec`.
const ser_context& context() const override;
Returns the current [context](ser_context.md)

void reset();
Reset cursor to read another value from the same source

template <class Sourceable>
reset(Sourceable&& source)
Reset cursor to read new value from a new source

#### Non-member functions

template <class Source, class Allocator>
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/bson/basic_bson_encoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ Constructs a new encoder that writes to the specified destination.
virtual ~basic_bson_encoder() noexcept
#### Member functions
void reset();
Reset encoder to write another value to the same sink
void reset(Sink&& sink)
Reset encoder to write a new value to a new sink
#### Inherited from [jsoncons::basic_json_visitor](basic_json_visitor.md)
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/cbor/basic_cbor_cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ Advances to the next event. If a parsing error is encountered, sets `ec`.
const ser_context& context() const override;
Returns the current [context](ser_context.md)

void reset();
Reset cursor to read another value from the same source

template <class Sourceable>
reset(Sourceable&& source)
Reset cursor to read new value from a new sources

#### Non-member functions

template <class Source, class Allocator>
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/cbor/basic_cbor_encoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ Constructs a new encoder that writes to the specified destination.
virtual ~basic_cbor_encoder() noexcept
#### Member functions
void reset();
Reset encoder to write another value to the same sink
void reset(Sink&& sink)
Reset encoder to write a new value to a new sink
#### Inherited from [jsoncons::json_visitor](../basic_json_visitor.md)
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/csv/basic_csv_cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ Advances to the next event. If a parsing error is encountered, sets `ec`.
const ser_context& context() const override;
Returns the current [context](../ser_context.md)
void reset();
Reset cursor to read another value from the same source
template <class Sourceable>
reset(Sourceable&& source)
Reset cursor to read new value from a new sources
#### Non-member functions
template <class CharT, class Source, class Allocator>
Expand Down
10 changes: 8 additions & 2 deletions doc/ref/csv/basic_csv_encoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ and uses the specified [csv options](basic_csv_options.md).
virtual ~basic_csv_encoder() noexcept
#### Inherited from [basic_json_visitor](../basic_json_visitor.md)
#### Member functions
void reset();
Reset encoder to write another value to the same sink
void reset(Sink&& sink)
Reset encoder to write a new value to a new sink
#### Inherited from [basic_json_visitor](../basic_json_visitor.md)
void flush(); (1)
bool begin_object(semantic_tag tag=semantic_tag::none,
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/msgpack/basic_msgpack_cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ Advances to the next event. If a parsing error is encountered, sets `ec`.
const ser_context& context() const override;
Returns the current [context](ser_context.md)

void reset();
Reset cursor to read another value from the same source

template <class Sourceable>
reset(Sourceable&& source)
Reset cursor to read new value from a new sources

#### Non-member functions

template <class Source, class Allocator>
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/msgpack/basic_msgpack_encoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ Constructs a new encoder that writes to the specified destination.
virtual ~basic_msgpack_encoder() noexcept
#### Member functions
void reset();
Reset encoder to write another value to the same sink
void reset(Sink&& sink)
Reset encoder to write a new value to a new sink
#### Inherited from [jsoncons::basic_json_visitor](basic_json_visitor.md)
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/ubjson/basic_ubjson_cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ Advances to the next event. If a parsing error is encountered, sets `ec`.
const ser_context& context() const override;
Returns the current [context](ser_context.md)

void reset();
Reset cursor to read another value from the same source

template <class Sourceable>
reset(Sourceable&& source)
Reset cursor to read new value from a new sources

#### Non-member functions

template <class Source, class Allocator>
Expand Down
7 changes: 7 additions & 0 deletions doc/ref/ubjson/basic_ubjson_encoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ Constructs a new encoder that writes to the specified destination.
virtual ~basic_ubjson_encoder() noexcept
#### Member functions
void reset();
Reset encoder to write another value to the same sink
void reset(Sink&& sink)
Reset encoder to write a new value to a new sink
#### Inherited from [jsoncons::basic_json_visitor](basic_json_visitor.md)
Expand Down
4 changes: 2 additions & 2 deletions include/jsoncons/config/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <iostream>

#define JSONCONS_VERSION_MAJOR 0
#define JSONCONS_VERSION_MINOR 168
#define JSONCONS_VERSION_PATCH 7
#define JSONCONS_VERSION_MINOR 169
#define JSONCONS_VERSION_PATCH 0

namespace jsoncons {

Expand Down

0 comments on commit ccafb43

Please sign in to comment.