Skip to content
Snippets Groups Projects
Commit 2c815e5b authored by Mark Olesen's avatar Mark Olesen
Browse files

Improve ITstream constructors.

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

- Add (const Xfer< List<token> >&) constructor.
parent 2760c3db
Branches
Tags
No related merge requests found
......@@ -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()
{}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment