Add getPath and getFileList.

This commit is contained in:
sunwen
2024-02-23 17:08:18 +08:00
parent 1d7777516d
commit 9980c9f15e
4 changed files with 25 additions and 1 deletions

View File

@@ -109,3 +109,13 @@ bool Parser::verifyHashValue()
{
return mPrivate->verifyHashValue();
}
std::string Parser::getPath()
{
return mPrivate->getPath();
}
std::vector<std::string> Parser::getFileList()
{
return mPrivate->getFileList();
}

View File

@@ -5,6 +5,7 @@
#include <memory>
#include <string>
#include <vector>
class ParserPrivate;
class AScanData;
@@ -27,6 +28,8 @@ public:
Parser(const std::string& aPath);
~Parser();
void setPath(const std::string& aPath);
std::string getPath();
std::vector<std::string> getFileList();
void setDataLength(unsigned long long aLength);
unsigned long long getDataLength();
AScanData getAscanDataOfMotorPosition(const TasElementIndex& aSenderIndex,const TasElementIndex& aReceiverIndex, MotorPosition aMotorPosition, ShotList* aShotList = nullptr);

View File

@@ -881,6 +881,16 @@ TemperatureData ParserPrivate::getTemperatureData()
return mTemperatureData;
}
std::string ParserPrivate::getPath()
{
return mPath;
}
std::vector<std::string> ParserPrivate::getFileList()
{
return mFileList;
}
bool ParserPrivate::hasCEMeasured()
{
switch (mMode)
@@ -937,4 +947,3 @@ std::string ParserPrivate::getHashValue()
delete[] hashValue;
return md5Hex;
}

View File

@@ -33,6 +33,8 @@ public:
ParserPrivate(const ParserPrivate& aParserPrivate);
void setPath(const std::string& aPath);
std::string getPath();
std::vector<std::string> getFileList();
void setDataLength(unsigned long long aLength);
unsigned long long getDataLength();
AScanData getAscanDataOfMotorPosition(const TasElementIndex& aSenderIndex,const TasElementIndex& aReceiverIndex, MotorPosition aMotorPosition, ShotList* aShotList);