2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 00:07:25 +00:00

Add AbstractTextDumper to implement stream holding and indendation

This commit is contained in:
Jan
2022-01-15 17:44:56 +01:00
parent c9a0392fc1
commit b48d55671e
8 changed files with 60 additions and 38 deletions

View File

@@ -9,7 +9,7 @@ SndCurveDumper::SndCurveDumper(std::ostream& stream)
}
SndCurveDumper::SndCurveDumper(std::ostream& stream, const size_t precision)
: m_stream(stream),
: AbstractTextDumper(stream),
m_precision(precision),
m_current_knot(0u),
m_total_knots(0u)

View File

@@ -1,11 +1,13 @@
#pragma once
#include <ostream>
class SndCurveDumper
#include "Dumping/AbstractTextDumper.h"
class SndCurveDumper : AbstractTextDumper
{
static constexpr auto DEFAULT_PRECISION = 4;
std::ostream& m_stream;
size_t m_precision;
size_t m_current_knot;
size_t m_total_knots;