Home
last modified time | relevance | path

Searched refs:FileEntry (Results 1 – 15 of 15) sorted by relevance

/developtools/global_resource_tool/src/
Dfile_entry.cpp33 const std::string FileEntry::SEPARATE = "\\";
35 const std::string FileEntry::SEPARATE = "/";
39 FileEntry::FileEntry(const string &path) in FileEntry() function in OHOS::Global::Restool::FileEntry
44 FileEntry::~FileEntry() in ~FileEntry()
48 bool FileEntry::Init() in Init()
60 const vector<unique_ptr<FileEntry>> FileEntry::GetChilds() const in GetChilds()
62 vector<unique_ptr<FileEntry>> children; in GetChilds()
79 unique_ptr<FileEntry> f = make_unique<FileEntry>(filePath); in GetChilds()
94 unique_ptr<FileEntry> f = make_unique<FileEntry>(filePath); in GetChilds()
103 bool FileEntry::IsFile() const in IsFile()
[all …]
Dresource_pack.cpp118 string resourcesPath = FileEntry::FilePath(output).Append(RESOURCES_DIR).GetPath(); in InitOutput()
135 …string textPath = FileEntry::FilePath(packageParser_.GetOutput()).Append("ResourceTable.txt").GetP… in GenerateHeader()
138 string extension = FileEntry::FilePath(headerPath).GetExtension(); in GenerateHeader()
165 if (FileEntry::FilePath(config).GetFilename() == MODULE_JSON) { in InitConfigJson()
247 if (!FileEntry::IsDirectory(filePath)) { in CopyRawFileOrResFile()
252 string dst = FileEntry::FilePath(packageParser_.GetOutput()) in CopyRawFileOrResFile()
263 string rawfilePath = FileEntry::FilePath(input).Append(RAW_FILE_DIR).GetPath(); in CopyRawFileOrResFile()
267 string resfilePath = FileEntry::FilePath(input).Append(RES_FILE_DIR).GetPath(); in CopyRawFileOrResFile()
281 FileEntry f(src); in CopyRawFileOrResFileImpl()
291 string subPath = FileEntry::FilePath(dst).Append(filename).GetPath(); in CopyRawFileOrResFileImpl()
[all …]
Dresource_append.cpp81 FileEntry entry(folderPath); in Combine()
120 …string filePath = FileEntry::FilePath(outputPath).Append(ResourceUtil::GenerateHash(resourcePath))… in ScanResources()
128 FileEntry entry(resourcePath); in ScanResources()
140 bool ResourceAppend::ScanSubResources(const FileEntry entry, const string &resourcePath, const stri… in ScanSubResources()
162 bool ResourceAppend::ScanSubLimitkeyResources(const FileEntry entry, const string &resourcePath, in ScanSubLimitkeyResources()
192 FileEntry entry(resourcePath); in ScanIegalResources()
203 bool ResourceAppend::ScanLimitKey(const unique_ptr<FileEntry> &entry, in ScanLimitKey()
239 bool ResourceAppend::ScanFiles(const unique_ptr<FileEntry> &entry, in ScanFiles()
265 FileEntry::FilePath outPath(outputPath); in ScanFile()
290 FileEntry::FilePath output(outputPath); in ScanFile()
[all …]
Dresource_util.cpp65 return FileEntry::Exist(path); in FileExist()
70 return FileEntry::RemoveAllDir(path); in RmoveAllDir()
75 ifstream ifs(FileEntry::AdaptLongPath(path), ios::binary); in OpenJsonFile()
97 ofstream out(FileEntry::AdaptLongPath(path), ofstream::out | ofstream::binary); in SaveToJsonFile()
214 return FileEntry::CopyFileInner(src, dst); in CopyFleInner()
223 if (!FileEntry::CreateDirs(filePath)) { in CreateDirs()
254 return FileEntry::RealPath(path); in RealPath()
384 FileEntry::FilePath ResourceUtil::GetBaseElementPath(const string input) in GetBaseElementPath()
386 return FileEntry::FilePath(input).Append("base").Append("element"); in GetBaseElementPath()
389 FileEntry::FilePath ResourceUtil::GetMainPath(const string input) in GetMainPath()
[all …]
Dresource_directory.cpp28 FileEntry f(resourcesDir); in ScanResources()
67 FileEntry f(resourceTypeDir); in ScanResourceLimitKeyDir()
Dreference_parser.cpp117 jsonPath = FileEntry::FilePath(output).Append(RESOURCES_DIR) in ParseRefInJsonFile()
120 jsonPath = FileEntry::FilePath(output).Append(RESOURCES_DIR) in ParseRefInJsonFile()
160 if (!ResourceUtil::CreateDirs(FileEntry::FilePath(to).GetParent().GetPath())) { in ParseRefJson()
242 FileEntry::FilePath(resourceItem.GetFilePath()).GetExtension() == JSON_EXTENSION; in IsMediaRef()
248 FileEntry::FilePath(resourceItem.GetFilePath()).GetExtension() == JSON_EXTENSION; in IsProfileRef()
Di_resource_compiler.cpp45 FileEntry f(directoryInfo.dirPath); in Compile()
154 string outputFolder = FileEntry::FilePath(output_).Append(RESOURCES_DIR) in GetOutputFolder()
Did_defined_parser.cpp47 idDefinedPath = FileEntry::FilePath(inputPath).Append(ID_DEFINED_FILE).GetPath(); in Init()
66 string idDefinedPath = FileEntry::FilePath(idDefinedInput).GetPath(); in Init()
76 string sysIdDefinedPath = FileEntry::FilePath(packageParser_.GetRestoolPath()) in Init()
Dgeneric_compiler.cpp69 string outputFilePath = FileEntry::FilePath(outputFolder).Append(fileInfo.filename).GetPath(); in GetOutputFilePath()
Dresource_merge.cpp52 string resourceDir = FileEntry::FilePath(*it).GetPath(); in Init()
Dresource_table.cpp33 …idDefinedPath_ = FileEntry::FilePath(packageParser.GetIdDefinedOutput()).Append(ID_DEFINED_FILE).G… in ResourceTable()
35 …indexFilePath_ = FileEntry::FilePath(packageParser.GetOutput()).Append(RESOURCE_INDEX_FILE).GetPat… in ResourceTable()
Dcmd_parser.cpp258 path = FileEntry::FilePath(path).Append(RESOURCES_DIR).GetPath(); in AdaptResourcesDirForInput()
/developtools/global_resource_tool/include/
Dfile_entry.h26 class FileEntry {
48 FileEntry(const std::string &path);
49 virtual ~FileEntry();
51 const std::vector<std::unique_ptr<FileEntry>> GetChilds() const;
64 static bool RemoveAllDirInner(const FileEntry &entry);
Dresource_append.h41 bool ScanSubResources(const FileEntry entry, const std::string &resourcePath,
43 bool ScanSubLimitkeyResources(const FileEntry entry, const std::string &resourcePath,
46 bool ScanLimitKey(const std::unique_ptr<FileEntry> &entry, const std::string &limitKey,
48 bool ScanFiles(const std::unique_ptr<FileEntry> &entry, const DirectoryInfo &directoryInfo,
Dresource_util.h195 static FileEntry::FilePath GetBaseElementPath(const std::string input);
202 static FileEntry::FilePath GetMainPath(const std::string input);