cgnuino
Public Member Functions | List of all members
CgnData Class Reference

Stores trial information and print it to the Serial. More...

#include <cgnuino.h>

Public Member Functions

 CgnData (char=9)
 Constructor. More...
 
void append (String)
 Appends a new text to output buffer. More...
 
void out ()
 Emits buffered text to serial output.
 
void clear ()
 Clears existing output buffer.
 

Detailed Description

CgnData class is a simple string container for temporally storing task information of a current trial. It concatenates strings provided by append method to its internal data string, inserting a predetermined separater character (by default \t). So you can temporally store trial conditions, response times, correct/error flags, or whatever information about current trial. When a trial ended, you can print the resultant data string to regular Serial using out method. If a trial is aborted during a progression and the data is no more needed, you can clear the temporal storage by clear method.

Constructor & Destructor Documentation

CgnData::CgnData ( char  separatingChar = 9)
Parameters
separatingCharSeparator for serial outputs (by default \t).

Member Function Documentation

void CgnData::append ( String  newData)
Parameters
newDataAppended text data.

The documentation for this class was generated from the following files: