You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Classes/csv_reader.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,14 @@
1
-
```c++
2
-
jsoncons::csv::csv_reader
3
-
```
1
+
### jsoncons::csv::csv_reader
4
2
5
3
The `csv_reader` class is an instantiation of the `basic_csv_reader` class template that uses `char` as the character type. It reads a [CSV file](http://tools.ietf.org/html/rfc4180) and produces JSON parse events.
6
4
7
5
`csv_reader` is noncopyable and nonmoveable.
8
6
9
-
### Header
7
+
####Header
10
8
```c++
11
9
#include<jsoncons_ext/csv/csv_reader.hpp>
12
10
```
13
-
### Constructors
11
+
####Constructors
14
12
15
13
csv_reader(std::istream& is,
16
14
json_input_handler& handler)
@@ -46,7 +44,7 @@ JSON events, the specified [parse_error_handler](parse_error_handler.md),
46
44
and [csv_parameters](csv_parameters.md).
47
45
You must ensure that the input stream, input handler, and error handler exist as long as does `csv_reader`, as `csv_reader` holds pointers to but does not own these objects.
48
46
49
-
### Member functions
47
+
####Member functions
50
48
51
49
bool eof() const
52
50
Returns `true` when there is no more data to be read from the stream, `false` otherwise
@@ -61,7 +59,7 @@ Throws [parse_error](parse_error.md) if parsing fails.
61
59
62
60
### Examples
63
61
64
-
### Reading a comma delimted file into an array of json values
62
+
####Reading a comma delimted file into an array of json values
Copy file name to clipboardExpand all lines: doc/Classes/csv_serializer.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
-
```c++
2
-
jsoncons::csv::csv_serializer
3
-
```
1
+
### jsoncons::csv::csv_serializer
2
+
4
3
The `csv_serializer` class is an instantiation of the `basic_csv_serializer` class template that uses `char` as the character type. It implements [json_output_handler](json_output_handler.md) and supports formatting a JSON value as a [CSV file](http://tools.ietf.org/html/rfc4180).
5
4
6
5
`csv_serializer` is noncopyable and nonmoveable.
7
6
8
-
### Header
7
+
####Header
9
8
```c++
10
9
#include<jsoncons_ext/csv/csv_serializer.hpp>
11
10
```
12
-
### Constructors
11
+
####Constructors
13
12
14
13
csv_serializer(std::ostream& os)
15
14
Constructs a `csv_serializer` that is associated with an output stream
@@ -22,10 +21,10 @@ Constructs a `csv_serializer` that is associated with an output stream
22
21
`os` and [csv_parameters](csv_parameters.md).
23
22
You must ensure that the output stream exists as long as does `csv_serializer`, as `json_serializer` holds a pointer to but does not own this object.
0 commit comments