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
...@@ -70,7 +70,26 @@ public: ...@@ -70,7 +70,26 @@ public:
ITstream ITstream
( (
const string& name, 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, streamFormat format=ASCII,
versionNumber version=currentVersion versionNumber version=currentVersion
) )
...@@ -98,8 +117,7 @@ public: ...@@ -98,8 +117,7 @@ public:
} }
// Destructor //- Destructor
virtual ~ITstream() virtual ~ITstream()
{} {}
......
Supports Markdown
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