NAP
binaryreader.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // Local includes
8 #include "rtti.h"
9 #include "path.h"
10 #include "deserializeresult.h"
11 
12 // External includes
13 #include <utility/memorystream.h>
14 #include <utility/dllexport.h>
15 #include <string>
16 
17 namespace nap
18 {
19  namespace utility
20  {
21  class ErrorState;
22  }
23 
24  namespace rtti
25  {
26  class Object;
27  class Factory;
28 
34  bool NAPAPI checkBinaryVersion(const std::string& path);
35 
44  bool NAPAPI deserializeBinary(utility::MemoryStream& stream, Factory& factory, DeserializeResult& result, utility::ErrorState& errorState);
45 
54  bool NAPAPI readBinary(const std::string& path, Factory& factory, DeserializeResult& result, utility::ErrorState& errorState);
55  }
56 
57 }
nap
Definition: templateapp.h:17
nap::rtti::checkBinaryVersion
bool NAPAPI checkBinaryVersion(const std::string &path)
nap::rtti::deserializeBinary
bool NAPAPI deserializeBinary(utility::MemoryStream &stream, Factory &factory, DeserializeResult &result, utility::ErrorState &errorState)
nap::rtti::readBinary
bool NAPAPI readBinary(const std::string &path, Factory &factory, DeserializeResult &result, utility::ErrorState &errorState)