Skip to content

Commit 8642888

Browse files
author
Clement Champetier
committed
JsonWriter: improved documentation
1 parent ffab1fc commit 8642888

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/AvTranscoder/mediaProperty/JsonWriter.hpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
namespace avtranscoder {
1010
namespace json {
1111

12-
// To manage 'null' element in JSON
12+
/**
13+
* @brief To manage 'null' element in JSON
14+
*/
1315
struct JsonNull {};
1416

1517
/**
16-
*
18+
* @brief Based class to write element to a stream.
1719
*/
1820
class AvExport JsonStreamWriter
1921
{
@@ -59,7 +61,9 @@ template <> JsonStreamWriter& JsonStreamWriter::operator<<(const char *string);
5961
// Write null (empty value) to the stream.
6062
template <> JsonStreamWriter& JsonStreamWriter::operator<<(JsonNull);
6163

62-
// Write an object to the stream.
64+
/**
65+
* @brief Write an object to a stream.
66+
*/
6367
class AvExport JsonObjectStreamWriter : public JsonStreamWriter
6468
{
6569
public:
@@ -76,7 +80,9 @@ class AvExport JsonObjectStreamWriter : public JsonStreamWriter
7680
virtual std::ostream& finish() { return stream << '}'; }
7781
};
7882

79-
// Write an array to the stream.
83+
/**
84+
* @brief Write an array to a stream.
85+
*/
8086
class AvExport JsonArrayStreamWriter : public JsonStreamWriter
8187
{
8288
public:

0 commit comments

Comments
 (0)