forked from objectcomputing/mFAST
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.h
More file actions
36 lines (31 loc) · 1.32 KB
/
json.h
File metadata and controls
36 lines (31 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2016, Huang-Ming Huang, Object Computing, Inc.
// All rights reserved.
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#pragma once
#define MFAST_JSON_H
#include "mfast_json_export.h"
#include "../aggregate_ref.h"
#include "../sequence_ref.h"
#include <iostream>
namespace mfast {
namespace json {
MFAST_JSON_EXPORT bool encode(std::ostream &os,
const ::mfast::aggregate_cref &msg,
unsigned json_object_tag_mask = 0);
MFAST_JSON_EXPORT bool encode(std::ostream &os,
const ::mfast::aggregate_cref &msg,
unsigned json_object_tag_mask,
unsigned ignore_tag_mask);
MFAST_JSON_EXPORT bool encode(std::ostream &is,
const ::mfast::sequence_cref &seq,
unsigned json_object_tag_mask = 0);
MFAST_JSON_EXPORT void decode(std::istream &is,
const ::mfast::aggregate_mref &msg,
unsigned json_object_tag_mask = 0);
MFAST_JSON_EXPORT void decode(std::istream &is,
const ::mfast::sequence_mref &seq,
unsigned json_object_tag_mask = 0);
} // namespace json
} // namespace mfast