DNA Calib 1.1
Project brief
JSONStreamWriter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "dna/Defs.h"
6#include "dna/StreamWriter.h"
7#include "dna/types/Aliases.h"
8
9namespace dna {
10
12 public:
27 static JSONStreamWriter* create(BoundedIOStream* stream, std::uint32_t indentWidth = 4u,
28 MemoryResource* memRes = nullptr);
35 static void destroy(JSONStreamWriter* instance);
36
38};
39
40} // namespace dna
41
42namespace pma {
43
44template<>
45struct DefaultInstanceCreator<dna::JSONStreamWriter> {
47};
48
49template<>
50struct DefaultInstanceDestroyer<dna::JSONStreamWriter> {
52};
53
54} // namespace pma
Definition: JSONStreamWriter.h:11
~JSONStreamWriter() override
Definition: StreamWriter.h:11
MemoryResource is an abstract class that allows the implementation of polymorphic allocators.
Definition: MemoryResource.h:17
Definition: Stream.h:14
#define DNAAPI
Definition: dna/Defs.h:26
Definition: BinaryStreamReader.h:10
Definition: BinaryStreamReader.h:121
Definition: ScopedPtr.h:89
Definition: ScopedPtr.h:94
Definition: ScopedPtr.h:72
Definition: ScopedPtr.h:81