fsfw/src/fsfw/cfdp/tlv/StringLv.h

24 lines
485 B
C
Raw Normal View History

2022-08-10 09:39:57 +02:00
#ifndef FSFW_CFDP_STRINGLV_H
#define FSFW_CFDP_STRINGLV_H
#include <string>
#include "Lv.h"
namespace cfdp {
class StringLv : public Lv {
public:
2022-08-10 10:34:02 +02:00
StringLv();
2022-08-10 09:39:57 +02:00
explicit StringLv(const std::string& fileName);
explicit StringLv(const char* filename, size_t len);
2022-09-05 14:20:01 +02:00
2023-07-24 16:38:11 +02:00
const char* getString(size_t& fileSize) const;
2022-09-05 14:20:01 +02:00
// Delete the move constructor to avoid passing in a temporary
StringLv(const std::string&&) = delete;
2022-08-10 09:39:57 +02:00
};
} // namespace cfdp
#endif // FSFW_CFDP_STRINGLV_H