Home
last modified time | relevance | path

Searched refs:ResourceItem (Results 1 – 22 of 22) sorted by relevance

/developtools/global_resource_tool/src/
Dresource_item.cpp24 ResourceItem::ResourceItem() in ResourceItem() function in OHOS::Global::Restool::ResourceItem
28 ResourceItem::ResourceItem(const ResourceItem &other) in ResourceItem() function in OHOS::Global::Restool::ResourceItem
33 ResourceItem::ResourceItem(const string &name, const vector<KeyParam> &keyparams, ResType type) in ResourceItem() function in OHOS::Global::Restool::ResourceItem
38 ResourceItem::~ResourceItem() in ~ResourceItem()
43 bool ResourceItem::SetData(const string &data) in SetData()
48 bool ResourceItem::SetData(const int8_t *data, uint32_t length) in SetData()
67 void ResourceItem::SetFilePath(const string &filePath) in SetFilePath()
72 void ResourceItem::SetLimitKey(const string &limitKey) in SetLimitKey()
77 void ResourceItem::SetName(const string &name) in SetName()
82 const int8_t *ResourceItem::GetData() const in GetData()
[all …]
Djson_compiler.cpp134 ResourceItem resourceItem(nameNode.asString(), fileInfo.keyParams, fileInfo.fileType); in ParseJsonObjectLevel()
150 bool JsonCompiler::HandleString(const Json::Value &objectNode, ResourceItem &resourceItem) const in HandleString()
159 bool JsonCompiler::HandleInteger(const Json::Value &objectNode, ResourceItem &resourceItem) const in HandleInteger()
168 bool JsonCompiler::HandleBoolean(const Json::Value &objectNode, ResourceItem &resourceItem) const in HandleBoolean()
186 bool JsonCompiler::HandleColor(const Json::Value &objectNode, ResourceItem &resourceItem) const in HandleColor()
191 bool JsonCompiler::HandleFloat(const Json::Value &objectNode, ResourceItem &resourceItem) const in HandleFloat()
196 bool JsonCompiler::HandleStringArray(const Json::Value &objectNode, ResourceItem &resourceItem) con… in HandleStringArray()
200 …[this](const Json::Value &arrayItem, const ResourceItem &resourceItem, vector<string> &values) -> … in HandleStringArray()
215 bool JsonCompiler::HandleIntegerArray(const Json::Value &objectNode, ResourceItem &resourceItem) co… in HandleIntegerArray()
219 …[this](const Json::Value &arrayItem, const ResourceItem &resourceItem, vector<string> &values) -> … in HandleIntegerArray()
[all …]
Dresource_module.cpp67 const map<int32_t, vector<ResourceItem>> &ResourceModule::GetOwner() const in GetOwner()
77 uint32_t ResourceModule::MergeResourceItem(map<int32_t, vector<ResourceItem>> &alls, in MergeResourceItem()
78 const map<int32_t, vector<ResourceItem>> &other, bool tipError) in MergeResourceItem()
108 void ResourceModule::Push(const map<int32_t, std::vector<ResourceItem>> &other) in Push()
Dreference_parser.cpp62 uint32_t ReferenceParser::ParseRefInResources(map<int32_t, vector<ResourceItem>> &items, const stri… in ParseRefInResources()
78 uint32_t ReferenceParser::ParseRefInResourceItem(ResourceItem &resourceItem) const in ParseRefInResourceItem()
108 uint32_t ReferenceParser::ParseRefInJsonFile(ResourceItem &resourceItem, const string &output, cons… in ParseRefInJsonFile()
162 bool ReferenceParser::ParseRefResourceItemData(const ResourceItem &resourceItem, string &data, bool… in ParseRefResourceItemData()
218 bool ReferenceParser::IsElementRef(const ResourceItem &resourceItem) const in IsElementRef()
230 bool ReferenceParser::IsMediaRef(const ResourceItem &resourceItem) const in IsMediaRef()
236 bool ReferenceParser::IsProfileRef(const ResourceItem &resourceItem) const in IsProfileRef()
Dresource_pack.cpp391 map<int32_t, vector<ResourceItem>> resInfoLocal; in HandleFeature()
403 vector<ResourceItem> items; in HandleFeature()
421 uint32_t ResourcePack::FindResourceItems(const map<int32_t, vector<ResourceItem>> &resInfoLocal, in FindResourceItems()
422 vector<ResourceItem> &items, int32_t id) const in FindResourceItems()
448 uint32_t ResourcePack::HandleLabel(vector<ResourceItem> &items, ConfigParser &config) const in HandleLabel()
497 uint32_t ResourcePack::HandleIcon(vector<ResourceItem> &items, ConfigParser &config) const in HandleIcon()
521 ResourceItem resourceItem(fileName, it.GetKeyParam(), ResType::MEDIA); in HandleIcon()
536 void ResourcePack::SaveResourceItem(const ResourceItem &resourceItem, int32_t nextId) const in SaveResourceItem()
538 map<int32_t, vector<ResourceItem>> resInfo; in SaveResourceItem()
539 vector<ResourceItem> vet; in SaveResourceItem()
Di_resource_compiler.cpp76 const map<int32_t, vector<ResourceItem>> &IResourceCompiler::GetResult() const in GetResult()
94 const map<pair<ResType, string>, vector<ResourceItem>> &IResourceCompiler::GetResourceItems() const in GetResourceItems()
124 bool IResourceCompiler::MergeResourceItem(const ResourceItem &resourceItem) in MergeResourceItem()
Dresource_table.cpp70 uint32_t ResourceTable::CreateResourceTable(const map<int32_t, vector<shared_ptr<ResourceItem>>> &i… in CreateResourceTable()
73 map<int32_t, vector<ResourceItem>> allResource; in CreateResourceTable()
75 vector<ResourceItem> resourceItems; in CreateResourceTable()
101 uint32_t ResourceTable::LoadResTable(const string path, map<int32_t, vector<ResourceItem>> &resInfo… in LoadResTable()
148 uint32_t ResourceTable::CreateIdDefined(const map<int32_t, vector<ResourceItem>> &allResource) const in CreateIdDefined()
153 ResourceItem item = pairPtr.second.front(); in CreateIdDefined()
440 … std::map<int32_t, std::vector<ResourceItem>> &resInfos) const in ReadDataRecordStart()
479 ResourceItem resourceitem(filename, keyparams, g_resTypeMap.find(record.resType)->second); in ReadDataRecordStart()
Dresource_append.cpp348 bool ResourceAppend::WriteResourceItem(const ResourceItem &resourceItem, ostringstream &out) in WriteResourceItem()
440 ResourceItem resourceItem("", keyParams, ResType::RAW); in WriteRawFile()
458 bool ResourceAppend::Push(const shared_ptr<ResourceItem> &resourceItem) in Push()
488 void ResourceAppend::AddRef(const shared_ptr<ResourceItem> &resourceItem) in AddRef()
556 … shared_ptr<ResourceItem> resourceItem = make_shared<ResourceItem>(nameStr, keyParams, resType); in LoadResourceItemFromMem()
600 bool ResourceAppend::CheckModuleResourceItem(const shared_ptr<ResourceItem> &resourceItem, int32_t … in CheckModuleResourceItem()
Dappend_compiler.cpp30 ResourceItem resourceItem(fileInfo.filename, fileInfo.keyParams, type_); in CompileSingleFile()
Dfile_manager.cpp43 uint32_t FileManager::MergeResourceItem(const map<int32_t, vector<ResourceItem>> &resourceInfos) in MergeResourceItem()
Dgeneric_compiler.cpp52 ResourceItem resourceItem(fileInfo.filename, fileInfo.keyParams, type_); in PostFile()
Dresource_check.cpp68 void ResourceCheck::CheckNodeInResourceItem(const string &key, const ResourceItem &resourceItem) in CheckNodeInResourceItem()
/developtools/global_resource_tool/include/
Djson_compiler.h37 using HandleResource = std::function<bool(const Json::Value&, ResourceItem&)>;
38 bool HandleString(const Json::Value &objectNode, ResourceItem &resourceItem) const;
39 bool HandleInteger(const Json::Value &objectNode, ResourceItem &resourceItem) const;
40 bool HandleBoolean(const Json::Value &objectNode, ResourceItem &resourceItem) const;
41 bool HandleColor(const Json::Value &objectNode, ResourceItem &resourceItem) const;
42 bool HandleFloat(const Json::Value &objectNode, ResourceItem &resourceItem) const;
43 bool HandleStringArray(const Json::Value &objectNode, ResourceItem &resourceItem) const;
44 bool HandleIntegerArray(const Json::Value &objectNode, ResourceItem &resourceItem) const;
45 bool HandleTheme(const Json::Value &objectNode, ResourceItem &resourceItem) const;
46 bool HandlePattern(const Json::Value &objectNode, ResourceItem &resourceItem) const;
[all …]
Dresource_item.h25 class ResourceItem {
27 ResourceItem();
28 ResourceItem(const ResourceItem &other);
29 ResourceItem(const std::string &name, const std::vector<KeyParam> &keyparams, ResType type);
30 virtual ~ResourceItem();
46 ResourceItem &operator=(const ResourceItem &other);
49 void CopyFrom(const ResourceItem &other);
Dreference_parser.h29 …uint32_t ParseRefInResources(std::map<int32_t, std::vector<ResourceItem>> &items, const std::strin…
30 uint32_t ParseRefInResourceItem(ResourceItem &resourceItem) const;
31 …uint32_t ParseRefInJsonFile(ResourceItem &resourceItem, const std::string &output, const bool isIn…
35 …bool ParseRefResourceItemData(const ResourceItem &resourceItem, std::string &data, bool &update) c…
38 bool IsElementRef(const ResourceItem &resourceItem) const;
39 bool IsMediaRef(const ResourceItem &resourceItem) const;
40 bool IsProfileRef(const ResourceItem &resourceItem) const;
Dresource_append.h33 const std::map<int32_t, std::vector<std::shared_ptr<ResourceItem>>> GetItems() const in GetItems()
53 bool WriteResourceItem(const ResourceItem &resourceItem, std::ostringstream &out);
57 bool Push(const std::shared_ptr<ResourceItem> &resourceItem);
58 void AddRef(const std::shared_ptr<ResourceItem> &resourceItem);
63 bool CheckModuleResourceItem(const std::shared_ptr<ResourceItem> &resourceItem, int32_t id);
69 std::map<int32_t, std::vector<std::shared_ptr<ResourceItem>>> items_;
70 std::map<int32_t, std::vector<std::shared_ptr<ResourceItem>>> itemsForModule_;
71 std::vector<std::shared_ptr<ResourceItem>> refs_;
Dresource_module.h31 const std::map<int32_t, std::vector<ResourceItem>> &GetOwner() const;
33 static uint32_t MergeResourceItem(std::map<int32_t, std::vector<ResourceItem>> &alls,
34 const std::map<int32_t, std::vector<ResourceItem>> &other, bool tipError = false);
40 std::map<int32_t, std::vector<ResourceItem>> owner_;
43 void Push(const std::map<int32_t, std::vector<ResourceItem>> &other);
Di_resource_compiler.h31 const std::map<int32_t, std::vector<ResourceItem>> &GetResult() const;
35 …const std::map<std::pair<ResType, std::string>, std::vector<ResourceItem>> &GetResourceItems() con…
39 bool MergeResourceItem(const ResourceItem &resourceItem);
46 std::map<int32_t, std::vector<ResourceItem>> resourceInfos_;
48 std::map<std::pair<ResType, std::string>, std::vector<ResourceItem>> nameInfos_;
Dresource_pack.h54 uint32_t FindResourceItems(const std::map<int32_t, std::vector<ResourceItem>> &resInfoLocal,
55 std::vector<ResourceItem> &items, int32_t id) const;
56 uint32_t HandleLabel(std::vector<ResourceItem> &items, ConfigParser &config) const;
57 uint32_t HandleIcon(std::vector<ResourceItem> &items, ConfigParser &config) const;
58 void SaveResourceItem(const ResourceItem &resourceItem, int32_t nextId) const;
Dfile_manager.h30 const std::map<int32_t, std::vector<ResourceItem>> &GetResources() const in GetResources()
38 uint32_t MergeResourceItem(const std::map<int32_t, std::vector<ResourceItem>> &resourceInfos);
46 std::map<int32_t, std::vector<ResourceItem>> items_;
Dresource_table.h32 …uint32_t CreateResourceTable(const std::map<int32_t, std::vector<std::shared_ptr<ResourceItem>>> &…
33 …uint32_t LoadResTable(const std::string path, std::map<int32_t, std::vector<ResourceItem>> &resInf…
37 ResourceItem resourceItem;
65 uint32_t CreateIdDefined(const std::map<int32_t, std::vector<ResourceItem>> &allResource) const;
85 std::map<int32_t, std::vector<ResourceItem>> &resInfos) const;
Dresource_check.h41 void CheckNodeInResourceItem(const std::string &key, const ResourceItem &resourceItem);