Jump to content

Programming Reference:SpellerCommand Class

From BCI2000 Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Location

src/shared/modules/application/speller

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>

Methods

SpellerCommand(string)

Parses the argument string, and initializes the object's properties from there.

ReadFromStream(istream), WriteToStream(ostream)

Reads/writes the object from/into the specified stream objects.

Properties

string Code (rw)

For plain text entry commands, this property is empty. For keyword commands, it contains the keyword, e.g. "GOTO".

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>".

See also

Programming Reference:Speller Class, Programming Reference:Target Class, User Reference:P3SpellerTask