Cogs.Core
JsonSerialization.h
1#pragma once
2#include <memory>
3#include "../Bridge/TerrainProviderFunctions.h"
4
5#include "Foundation/Memory/MemoryBuffer.h"
6
7namespace Cogs::Core::TerrainProvider {
8
9 struct BaseConfig;
10
11 std::unique_ptr<BaseConfig> deserializeRastersourceConfig(Context* context, const StringView json);
12
13 IRasterSource* deserialize(Cogs::Core::Context* context, const StringView cachesPath, const StringView json);
14
15 bool serializeConfig(Memory::MemoryBuffer& buffer, const BaseConfig* conf, bool include_credentials=false);
16
17 bool serializeConfig(Memory::MemoryBuffer& buffer, const IRasterSource* rasterSource, bool include_credentials=false);
18
19}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83