DLG_stream_input.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
/************************************************************/
/* */
/* Predefined char stream: Input from (c++) stream. */
/* */
/* By Hubert Holin (Hubert.Holin@Bigfoot.com), 1998. */
/* */
/* This is completely free stuff, do whatever you want with */
/* it (but then, I will take no responsability for whatever */
/* may happen if you do either... caveat emptor!). */
/* */
/************************************************************/
#ifndef _DLG_STREAM_INPUT_H
#define _DLG_STREAM_INPUT_H
#include "pccts_istream.h"
#ifndef DLGX_H
#include "DLexerBase.h"
#endif
// NOTES: The semantics of the copy constructor
// and the affectation operator may be unwaranted...
// and the stream may not be reset.
//
// It would have been so much nicer for nextChar()
// to throw (of for the DLGInputStream to change status)
// upon hiting EOF than to return an "int"...
template <
class E,
>
{
{
// nothing to do!
};
{
// nothing to do!
};
{
};
{
if (this != &a_affecter)
{
}
return(*this);
};
{
if (*input)
{
return(int(extracted_stuff));
}
else
{
return(EOF);
}
};
void purge()
{
// nothing to do!
};
};
#endif /* _DLG_STREAM_INPUT_H */