From fef8f7080cdc12cc0c7a2d7ea18513abf5cce2c9 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Tue, 29 Oct 2024 10:08:53 -0700 Subject: [PATCH] Place stub for stream tag. --- __stream.cpp | 16 ++++++++++++++++ __stream.h | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 __stream.cpp create mode 100644 __stream.h diff --git a/__stream.cpp b/__stream.cpp new file mode 100644 index 0000000..69ec923 --- /dev/null +++ b/__stream.cpp @@ -0,0 +1,16 @@ +#include "__stream.h" +#include "Exception.h" + +namespace jet { + + __stream::__stream(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) { + if(!variableDefined("name")) + throw coreutils::Exception("stream tag must have a file name to stream."); + + // TODO: Output headers that have been written so far. + // TODO: Open file with fairly small buffer size and write to end to cout and not the out buffers. + // TODO: Force no further output from jet-2.0 at end of stream. + + } +} + diff --git a/__stream.h b/__stream.h new file mode 100644 index 0000000..afe292f --- /dev/null +++ b/__stream.h @@ -0,0 +1,18 @@ +#ifndef ____stream_h__ +#define ____stream_h__ + +#include "Tag.h" +#include "ZString.h" + +namespace jet { + + class __stream : public Tag { + + public: + __stream(coreutils::ZString &in, coreutils::MString &parent, Global &global); + + }; + +} + +#endif