Files
Parser/src/MatLab/MatlabCreator.cpp
2024-04-03 16:36:51 +08:00

36 lines
977 B
C++

#include "MatlabCreator.h"
#include "MatlabCreatorPrivate.h"
#include "MatlabCreatorVariableWindowPrivate.h"
#include "MatlabCreatorConvertFp16Private.h"
MatlabCreator::MatlabCreator(const std::string& aDirectoryPath)
: mPrivate(new MatlabCreatorPrivate(aDirectoryPath))
, mVariableWindowPrivate(new MatlabCreatorVariableWindowPrivate(aDirectoryPath))
, mConvertFp16Private(new MatlabCreatorConvertFp16Private(aDirectoryPath))
{
}
void MatlabCreator::setDirectoryPath(const std::string& aDirectoryPath)
{
mPrivate->setDirectoryPath(aDirectoryPath);
}
bool MatlabCreator::createKITMat(const std::string& aOutputPath)
{
return mPrivate->createKITMat(aOutputPath);
}
bool MatlabCreator::createKITVariableWindowMat(const std::string& aOutputPath)
{
return mVariableWindowPrivate->createKITMat(aOutputPath);
}
bool MatlabCreator::createKITConvertFp16Mat(const std::string& aOutputPath)
{
return mConvertFp16Private->createKITMat(aOutputPath);
}