Class Scanner
Use this class to scan a stream for configuration tokens.
Implements
Namespace: ABB.Robotics.Controllers.Configuration
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class Scanner : IDisposable
Constructors
Scanner(Stream)
Initializes the scanner with a stream object.
Declaration
public Scanner(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream to scan. |
Methods
Dispose()
Disposes the current object.
Declaration
public void Dispose()
GetChar()
Gets the next char from the stream.
Declaration
public char GetChar()
Returns
Type | Description |
---|---|
Char | The next char from the stream. |
GetToken()
Gets the next token from the stream.
Declaration
public Token GetToken()
Returns
Type | Description |
---|---|
Token | The token. |
PeekChar()
Peeks the next char from the stream.
Declaration
public char PeekChar()
Returns
Type | Description |
---|---|
Char |
PeekToken()
Peeks for the next token.
Declaration
public Token PeekToken()
Returns
Type | Description |
---|---|
Token | The token. |