using const char* instead
EIVE/eive-obsw/pipeline/pr-develop This commit looks good Details

This commit is contained in:
Robin Müller 2022-12-14 10:35:30 +01:00
parent 8ee6a23229
commit 9cea0c50c3
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
using namespace returnvalue;
TmStore::TmStore(object_id_t objectId, std::string baseDir, std::string baseName,
TmStore::TmStore(object_id_t objectId, const char* baseDir, std::string baseName,
RolloverInterval intervalUnit, uint32_t intervalCount, timeval& currentTv, SdCardMountedIF& sdcMan)
: SystemObject(objectId), baseDir(std::move(baseDir)), baseName(std::move(baseName)), currentTv(currentTv), sdcMan(sdcMan) {
calcDiffSeconds(intervalUnit, intervalCount);

View File

@ -19,7 +19,7 @@ enum class RolloverInterval { MINUTELY, HOURLY, DAILY };
class TmStore : public SystemObject {
public:
TmStore(object_id_t objectId, std::string baseDir, std::string baseName, RolloverInterval intervalUnit,
TmStore(object_id_t objectId, const char* baseDir, std::string baseName, RolloverInterval intervalUnit,
uint32_t intervalCount, timeval& currentTv, SdCardMountedIF& sdcMan);
void addApid(uint16_t apid);
@ -39,7 +39,7 @@ class TmStore : public SystemObject {
MessageQueueId_t getCommandQueue();
PacketFilter filter;
bool baseDirUninitialized = true;
std::string baseDir;
const char* baseDir;
std::string baseName;
std::filesystem::path basePath;
uint32_t rolloverDiffSeconds = 0;