Jump to content

Programming Reference:States: Difference between revisions

From BCI2000 Wiki
Mellinger (talk | contribs)
No edit summary
 
Mellinger (talk | contribs)
Line 3: Line 3:
==State Class==
==State Class==
===Methods===
===Methods===
====bool operator==( State ), bool operator!=( State )====
Tests two <tt>State</tt> objects for equality.
====State AssignValue( State )====
Assigns the value of the specified <tt>State</tt> object.
====ostream WriteToStream( ostream ), istream ReadFromStream( istream )====
Writes/reads the <tt>Param</tt> object to/from a stream in human readable format.
====ostream WriteBinary( ostream ), istream ReadBinary( istream )====
Writes/reads the <tt>Param</tt> object to/from a BCI2000 binary stream (such as the streams connecting BCI2000 modules).
===Properties===
===Properties===



Revision as of 15:14, 29 June 2010

In BCI2000, states have the function of event markers. State objects are grouped into StateLists, and their values are transported in a global StateVector object. This page lists the methods and properties of State, StateList, and StateVector classes; for a general discussion of the state concept in BCI2000, see the State Definition page.

State Class

Methods

bool operator==( State ), bool operator!=( State )

Tests two State objects for equality.

State AssignValue( State )

Assigns the value of the specified State object.

ostream WriteToStream( ostream ), istream ReadFromStream( istream )

Writes/reads the Param object to/from a stream in human readable format.

ostream WriteBinary( ostream ), istream ReadBinary( istream )

Writes/reads the Param object to/from a BCI2000 binary stream (such as the streams connecting BCI2000 modules).

Properties

StateList Class

Methods

Properties

StateVector Class

Methods

Properties

See also

Technical Reference:State Definition