boardinfo
This commit is contained in:
parent
46809d811b
commit
0f71e121fa
12 changed files with 168 additions and 18 deletions
35
drv/plottyfile.h
Normal file
35
drv/plottyfile.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#ifndef PLOTTYFILE_H
|
||||
#define PLOTTYFILE_H
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <exception>
|
||||
|
||||
class PlottyFile
|
||||
{
|
||||
public:
|
||||
void writeToFile(std::string filename);
|
||||
private:
|
||||
void prepStr(std::string& str, uint8_t len);
|
||||
|
||||
int8_t command;
|
||||
std::string title;
|
||||
std::string filetype;
|
||||
int16_t version;
|
||||
int16_t subversion;
|
||||
uint8_t function_type;
|
||||
uint8_t quadrant;
|
||||
uint16_t ref_x;
|
||||
uint16_t ref_y;
|
||||
uint16_t para_first;
|
||||
uint16_t para_stepwidth;
|
||||
std::string unit_x;
|
||||
std::string desc_x;
|
||||
std::string unit_y;
|
||||
std::string desc_y;
|
||||
std::string unit_para;
|
||||
std::string desc_para;
|
||||
const uint8_t eof = 0xD;
|
||||
};
|
||||
|
||||
#endif // PLOTTYFILE_H
|
Loading…
Add table
Add a link
Reference in a new issue