mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-17 10:22:01 +03:00
18 lines
400 B
C++
18 lines
400 B
C++
|
#pragma once
|
||
|
#include "file_reader/file_reader.hpp"
|
||
|
#include "irda.h"
|
||
|
|
||
|
class IrdaAppFileParser : public FileReader {
|
||
|
public:
|
||
|
typedef struct {
|
||
|
char name[32];
|
||
|
IrdaMessage message;
|
||
|
} IrdaFileMessage;
|
||
|
|
||
|
std::unique_ptr<IrdaAppFileParser::IrdaFileMessage> read_message(File* file);
|
||
|
|
||
|
private:
|
||
|
std::unique_ptr<IrdaFileMessage> parse_message(const std::string& str) const;
|
||
|
};
|
||
|
|