NullFileWriter not working.

Forum for software developers to discuss BCI2000 software development
Locked
boulay
Posts: 382
Joined: 25 Dec 2011, 21:14

NullFileWriter not working.

Post by boulay » 17 Apr 2014, 15:06

In DataIOFilter.cpp, the parameter FileFormat string value is converted to upper then compared against the list of available FileWriters. The problem is that the NullFileWriter is not NULLFileWriter.
I added 2 lines of code to DataIOFilter.cpp and it works again. Maybe the better solution is to require all FileWriters to be upper-case?

Just below these two lines

Code: Select all

if( fileFormat == "DAT" )
      fileFormat = "BCI2000";
add

Code: Select all

if( fileFormat == "NULL" )
      fileFormat = "Null";
Last edited by boulay on 18 Apr 2014, 11:01, edited 1 time in total.
Reason: Clarified where to put the extra two lines.

Locked

Who is online

Users browsing this forum: No registered users and 32 guests