/developtools/global_resource_tool/src/ |
D | resource_item.cpp | 24 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 …]
|
D | json_compiler.cpp | 134 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 …]
|
D | resource_module.cpp | 67 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()
|
D | reference_parser.cpp | 62 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()
|
D | resource_pack.cpp | 391 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()
|
D | i_resource_compiler.cpp | 76 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()
|
D | resource_table.cpp | 70 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()
|
D | resource_append.cpp | 348 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()
|
D | append_compiler.cpp | 30 ResourceItem resourceItem(fileInfo.filename, fileInfo.keyParams, type_); in CompileSingleFile()
|
D | file_manager.cpp | 43 uint32_t FileManager::MergeResourceItem(const map<int32_t, vector<ResourceItem>> &resourceInfos) in MergeResourceItem()
|
D | generic_compiler.cpp | 52 ResourceItem resourceItem(fileInfo.filename, fileInfo.keyParams, type_); in PostFile()
|
D | resource_check.cpp | 68 void ResourceCheck::CheckNodeInResourceItem(const string &key, const ResourceItem &resourceItem) in CheckNodeInResourceItem()
|
/developtools/global_resource_tool/include/ |
D | json_compiler.h | 37 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 …]
|
D | resource_item.h | 25 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);
|
D | reference_parser.h | 29 …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;
|
D | resource_append.h | 33 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_;
|
D | resource_module.h | 31 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);
|
D | i_resource_compiler.h | 31 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_;
|
D | resource_pack.h | 54 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;
|
D | file_manager.h | 30 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_;
|
D | resource_table.h | 32 …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;
|
D | resource_check.h | 41 void CheckNodeInResourceItem(const std::string &key, const ResourceItem &resourceItem);
|