JetCore/__stream.cpp

17 lines
574 B
C++

#include "__stream.h"
#include "Exception.h"
namespace jet {
__stream::__stream(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent) : Tag(in, parentOut, global, parent) {
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.
}
}