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

25 lines
519 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-08-03 15:30:38 +02:00
const char* getCString(size_t& fileSize) const;
std::string getString() 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