Programming Reference:SpellerCommand Class
From BCI2000 Wiki
Contents |
[edit]
Location
src/shared/modules/application/speller
[edit]
Synopsis
A SpellerCommand object represents a speller command in parsed form. Speller commands are either plain text, or command keywords and arguments enclosed in angle brackets:
a Alpha <UNDO> <GOTO 3>
[edit]
Methods
[edit]
SpellerCommand(string)
Parses the argument string, and initializes the object's properties from there.
[edit]
ReadFromStream(istream), WriteToStream(ostream)
Reads/writes the object from/into the specified stream objects.
[edit]
Properties
[edit]
string Code (rw)
For plain text entry commands, this property is empty. For keyword commands, it contains the keyword, e.g. "GOTO".
[edit]
string Value (rw)
For plain text entry commands, this property contains the text to enter. For keyword commands, it contains arguments, if any, e.g. "3" for "<GOTO 3>".
[edit]
See also
Programming Reference:Speller Class, Programming Reference:Target Class, User Reference:P3SpellerTask
