From 4773b845722a23a3282b794fa42ab8050c8e0618 Mon Sep 17 00:00:00 2001 From: James Bradbury Date: Fri, 16 Sep 2022 16:50:09 +0100 Subject: [PATCH] add case for -output stdout --- include/FluidCLIWrapper.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/FluidCLIWrapper.hpp b/include/FluidCLIWrapper.hpp index 6869f0f..7dc9c11 100644 --- a/include/FluidCLIWrapper.hpp +++ b/include/FluidCLIWrapper.hpp @@ -77,6 +77,11 @@ class CLIBufferAdaptor : public BufferAdaptor std::cerr << "Could not open file " << mPath << " for writing\n"; } } + else if (allowCSV && !mPath.compare(0, 6, "stdout")) + { + FluidTensorView view{ mData.data(), 0, numFrames(), numChans() }; + std::cout << view.transpose(); + } else { // TODO: file extensions/paths