Improve ITstream constructors.

- Use (const UList<token>&) instead of (const List<token>&)

- Add (const Xfer< List<token> >&) constructor.
This commit is contained in:
Mark Olesen
2009-12-15 12:59:50 +01:00
parent 2760c3db5f
commit 2c815e5b84

View File

@ -70,7 +70,26 @@ public:
ITstream
(
const string& name,
const tokenList& tokens,
const UList<token>& tokens,
streamFormat format=ASCII,
versionNumber version=currentVersion
)
:
Istream(format, version),
tokenList(tokens),
name_(name),
tokenIndex_(0)
{
setOpened();
setGood();
}
//- Construct from components, transferring the tokens
ITstream
(
const string& name,
const Xfer< List<token> >& tokens,
streamFormat format=ASCII,
versionNumber version=currentVersion
)
@ -98,8 +117,7 @@ public:
}
// Destructor
//- Destructor
virtual ~ITstream()
{}