mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-14 15:52:01 +00:00
Add AbstractTextDumper to implement stream holding and indendation
This commit is contained in:
1 parent
c9a0392fc1
commit
b48d55671e
8 files changed
+60
-38
No files matched your search
@@ -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