10 std::cout <<
"Hello World!\n";
11 char newFileName[] =
"testFile.csv";
17 std::cout<<
"File path for log file A: "<<filePathA<<std::endl;
35 unsigned long d = 684333;
36 float e = (float) 2.718;
37 double f = -53.2468143648136418;
39 unsigned char h = 254;
41 long long j = -1314646343645;
42 unsigned long long k = 1314646343645;
68 e = (float) - 3842.718;
The core class of the library is the tsLogger class. Multiple simultaneous class objects are supporte...
void appendToPreamble(std::string appendString)
Appends a line of text to the preamble block of the log file. Replaces new line characters with space...
unsigned trackDataPoint(T *dataPointer, const std::string &dataName)
Template member function that appends the data point to the list of tracked data.
void getFilePath(char *pathDestination, size_t pathDestinationLength)
Allows the user to read the file path of the log file.
void addDataHeader()
Add the data header (consisting of datapoint names separated by commas) to the header file....
void addPreamble()
Adds the preamble to the log file-can only be added once and only be called before the addDataHeader ...
void logData()
Logs the data points being tracked as a line in the log file.