added iOS source code
[wl-app.git] / iOS / Pods / Realm / include / core / realm / sync / changeset_parser.hpp
1 /*************************************************************************
2  *
3  * REALM CONFIDENTIAL
4  * __________________
5  *
6  *  [2011] - [2017] Realm Inc
7  *  All Rights Reserved.
8  *
9  * NOTICE:  All information contained herein is, and remains
10  * the property of Realm Incorporated and its suppliers,
11  * if any.  The intellectual and technical concepts contained
12  * herein are proprietary to Realm Incorporated
13  * and its suppliers and may be covered by U.S. and Foreign Patents,
14  * patents in process, and are protected by trade secret or copyright law.
15  * Dissemination of this information or reproduction of this material
16  * is strictly forbidden unless prior written permission is obtained
17  * from Realm Incorporated.
18  *
19  **************************************************************************/
20
21 #ifndef REALM_SYNC_CHANGESET_PARSER_HPP
22 #define REALM_SYNC_CHANGESET_PARSER_HPP
23
24 #include <realm/sync/changeset.hpp>
25 #include <realm/impl/input_stream.hpp>
26
27 namespace realm {
28 namespace sync {
29
30 struct ChangesetParser {
31     void parse(_impl::NoCopyInputStream&, InstructionHandler&);
32 private:
33     struct State;
34 };
35
36 void parse_changeset(_impl::NoCopyInputStream&, Changeset& out_log);
37 void parse_changeset(_impl::InputStream&, Changeset& out_log);
38
39
40 } // namespace sync
41 } // namespace realm
42
43 #endif // REALM_SYNC_CHANGESET_PARSER_HPP