I am trying to understand some of the example programs and I don't understand lines like this:
cout << pstr("Logging to: ") << name << endl;
The Arduino Language Reference web page only shows << only used as a bit shift, which is clearly not the case in this program line.
I guess the line is directing output to some sort of serial port that was created with this line:
ArduinoOutStream cout(Serial);
There are also these lines which almost make sense, but not quite.
obufstream bout(buf, sizeof(buf));
bout << pstr("millis");
I don't understand if cout goes straight to the port and bout goes to a buffer which somehow eventually also goes to the port?
I don't see any description of a function psrt(). Is there any Arduino language reference that describes how this works and how I can adapt it to my needs?
These lines are from the SdFat example AnalogLogger.