96 void Register(std::ostream **ppStream,
const char *pszFile);
141 void CloseChannels();
143 std::vector<Channel *> mChannels;
144 std::vector<Connection> mConnections;
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
static SpewTable & shared()
Report the one registry, constructing it on first use.
Definition spewtable.h:80
void Connect(const HxStr &file, const HxStr &channel)
Point the registered streams of a source file at a channel.
void Register(std::ostream **ppStream, const char *pszFile)
Register a source file's stream pointer.
void PrintConnections(std::ostream &stream)
Write every registration and its channel name, one per line.
SpewTable()
Construct an empty registry.
~SpewTable()
Close every channel and release both lists.
Output channel, 0xc bytes, created by Connect() and destroyed by the destructor.
Definition spewtable.h:22
HxStr mName
Definition spewtable.h:32
Channel(const HxStr &name, std::ostream *pStream)
Construct a channel.
Definition spewtable.h:29
std::ostream * mStream
Definition spewtable.h:33
Channel * mpChannel
Definition spewtable.h:51
HxStr mFile
Definition spewtable.h:49
Connection(const HxStr &file, std::ostream **ppStream, Channel *pChannel)
Construct a registration.
Definition spewtable.h:45
std::ostream ** mppStream
Definition spewtable.h:50