Add getPath and getFileList.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user