HexTool/data.h
2018-05-30 22:44:36 +08:00

24 lines
370 B
C++

#ifndef DATA_H
#define DATA_H
#include <QString>
class Data
{
public:
enum format { seq, space, prefix };
bool cap;
Data(QString &in, bool cap);
Data(int len, bool cap);
void clean();
void to_hex();
QString get_ascii();
QString get(int unit, enum format fmt);
private:
QString txt;
};
#endif // DATA_H