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:
@@ -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)
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user