CN112084153A - 一种plist文件按视图视角模糊快速化节点数据的方法及系统 - Google Patents

一种plist文件按视图视角模糊快速化节点数据的方法及系统 Download PDF

Info

Publication number
CN112084153A
CN112084153A CN202010942219.9A CN202010942219A CN112084153A CN 112084153 A CN112084153 A CN 112084153A CN 202010942219 A CN202010942219 A CN 202010942219A CN 112084153 A CN112084153 A CN 112084153A
Authority
CN
China
Prior art keywords
plist
file
node
module
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010942219.9A
Other languages
English (en)
Inventor
刘宇
乔金文
陈源源
汤国强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Fiberhome Telecommunication Technologies Co ltd
Original Assignee
Nanjing Fiberhome Telecommunication Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Fiberhome Telecommunication Technologies Co ltd filed Critical Nanjing Fiberhome Telecommunication Technologies Co ltd
Priority to CN202010942219.9A priority Critical patent/CN112084153A/zh
Publication of CN112084153A publication Critical patent/CN112084153A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供一种plist文件按视图视角模糊快速化节点数据的方法及系统。所述plist文件按视图视角模糊快速化节点数据的方法包括以下步骤:S1:配置plist工程环境;S2:加载plist文件;S3:进行数据操作。本发明提供的plist文件按视图视角模糊快速化节点数据的方法及系统具有利用了libplist库提供的底层接口进行二次开发,实现可以根据多层节点属性获取对应信息值,使plist格式文件操作更为简单易用,接口可读性更佳的优点。

Description

一种plist文件按视图视角模糊快速化节点数据的方法及 系统
技术领域
本发明涉及plist格式文件信息的快速存储及提取识别技术领域,尤其涉及一种plist文件按视图视角模糊快速化节点数据的方法及系统。
背景技术
Plist(property list)为一种属性列表文件,广泛应用于智能终端设备的信息存储,特别是IOS系统设备,据市场研究公司CIRP所在2020年第一季度放出的数据显示,IOS系统的占比为40%,而且随着各种APP的不断更新,使plist文件的操作使用变得尤为广泛。
目前plist文件操作接口的不足点如下:
1、Plist格式文件加载只能人为识别,并调用对应的接口。
2、获取识别某一字段时需要全部加载,并进行全部遍历区分。
3、Array、Dict等需要单独提取出来再进行识别。
4、更改、删除某一字段数据时,也需要进行全部遍历查找替换。
因此,有必要提供一种新的plist文件按视图视角模糊快速化节点数据的方法及系统解决上述技术问题。
发明内容
本发明解决的技术问题是提供一种利用了libplist库提供的底层接口进行二次开发,实现可以根据多层节点属性获取对应信息值,使plist格式文件操作更为简单易用,接口可读性更佳的plist文件按视图视角模糊快速化节点数据的方法及系统。
为解决上述技术问题,本发明提供的plist文件按视图视角模糊快速化节点数据的方法包括以下步骤:
S1:配置plist工程环境;
S2:加载plist文件;
S3:进行数据操作。
优选的,所述工程环境包含库头文件和静态库。
优选的,所述步骤S2中加载plist文件包括以下步骤:
S2-1:生成FibrPlist对象;
S2-2:调用接口open_plist_file或直接在构造函数中打开。
优选的,所述步骤S2-2中的所述构造函数为FibrPlist。
优选的,所述步骤S3中进行数据操作的操作接口如下:
S3-1:查询节点信息;
S3-2:增加节点信息;
S3-3:增加节点信息;
S3-4:删除节点信息。
优选的,所述步骤S2和所述步骤S3之间需要判断所述plist文件是否为Binary格式,若判断结果为是,将Binary格式转换成XML格式,再进入所述步骤S3;若判断结果为否,直接进入所述步骤S3。
一种plist文件按视图视角模糊快速化节点数据的系统,包括:
plist工程环境配置模块,所述plist工程环境配置模块用于配置库头文件和静态库;
plist文件加载模块,所述plist文件加载模块用于生成FibrPlist对象和调用接口open_plist_file或直接在构造函数中打开;
数据操作模块,所述数据操作模块包括用于查询节点信息,设置节点信息,增加节点信息,删除节点信息。
优选的,所述构造函数为FibrPlist。
优选的,所述plist文件按视图视角模糊快速化节点数据的系统还包括判断模块,所述判断模块断用于判断所述plist文件是否为Binary格式,若判断结果为是,将Binary格式转换成XML格式,再进行数据操作;若判断结果为否,直接进行数据操作。
与相关技术相比较,本发明提供的plist文件按视图视角模糊快速化节点数据的方法及系统具有如下有益效果:
1、加载plist文件,根据文件头(bplist00)进行判断为Xml格式还是Binary格式,自动进行相应数据信息加载缓存,可以避免人为区分格式的繁琐问题;
2、根据缓存信息生成Root节点及对应结构关系,实现点分制操作,根据节点名称则可直接获取对应的节点数值,不仅降低全部遍历耗费的时间,更简化了操作难度;
3、更改、删除某一节点时,使用点分制操作,也相应提高了效率,简化了操作;
4、对于Array、Dict等类型不必要单独提取进行操作,根据点分制节点直接操作即可。
附图说明
图1为本发明提供的plist文件按视图视角模糊快速化节点数据的方法及系统的一种较佳实施例的操作流程图;
图2为构造函数图。
具体实施方式
下面结合附图和实施方式对本发明作进一步说明。
请结合参阅图1-图2,plist文件按视图视角模糊快速化节点数据的方法包括以下步骤:
S1:配置plist工程环境,所述工程环境包含库头文件(FibrPlist.h)及静态库(FibrPlist.lib/libFibrPlist.a)。
S2:加载plist文件,包括以下步骤:
S2-1:生成FibrPlist对象
S2-2:调用接口open_plist_file(const std::string strFilePath)或直接在构造函数中打开,构造函数为FibrPlist(const std::string strFilePath),如图2所示。
S3:进行数据操作,操作接口如下:
get_plist_value(const std::string strKeyPath)
获取某一节点值,可以为多层节点,例如:get_plist_value(“Node1.Node2.Node3”)则获取Node1子节点Node2子节点的Node3节点值;
set_plist_value(const std::string strKeyPath,const std::stringstrValue)
设置某一节点属性,可以为多层节点,若无此节点则新增,例如:set_plist_value(“Node1.Node2”,”123”)则设置Node1的子节点Node2的值为“123”;
get_plist_childnodes(const std::string strKeyPath,const std::stringstrNodeName)
获取某节点下节点名称为”strNodeName”的所有子节点。
add_plist_node(const std::string strKeyPath,const std::stringstrValue)
某节点新增子节点信息。
remove_plist_node(const std::string strKeyPath,const std::stringstrNodeName)
删除某节点下节点名称为strNodeName的节点。
所述步骤S2和所述步骤S3之间需要判断所述plist文件是否为Binary格式,若判断结果为是,将Binary格式转换成XML格式,再进入所述步骤S3;若判断结果为否,直接进入所述步骤S3。
一种plist文件按视图视角模糊快速化节点数据的系统,包括:
plist工程环境配置模块,所述plist工程环境配置模块用于配置库头文件和静态库;
plist文件加载模块,所述plist文件加载模块用于生成FibrPlist对象和调用接口open_plist_file或直接在构造函数中打开;
数据操作模块,所述数据操作模块包括用于查询节点信息,设置节点信息,增加节点信息,删除节点信息。
所述构造函数为FibrPlist。
所述plist文件按视图视角模糊快速化节点数据的系统还包括判断模块,所述判断模块断用于判断所述plist文件是否为Binary格式,若判断结果为是,将Binary格式转换成XML格式,再进行数据操作;若判断结果为否,直接进行数据操作。
与相关技术相比较,本发明提供的plist文件按视图视角模糊快速化节点数据的方法及系统具有如下有益效果:
1、加载plist文件,根据文件头(bplist00)进行判断为Xml格式还是Binary格式,自动进行相应数据信息加载缓存,可以避免人为区分格式的繁琐问题;
2、根据缓存信息生成Root节点及对应结构关系,实现点分制操作,根据节点名称则可直接获取对应的节点数值,不仅降低全部遍历耗费的时间,更简化了操作难度;
3、更改、删除某一节点时,使用点分制操作,也相应提高了效率,简化了操作;
4、对于Array、Dict等类型不必要单独提取进行操作,根据点分制节点直接操作即可。
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (9)

1.一种plist文件按视图视角模糊快速化节点数据的方法,其特征在于,包括以下步骤:
S1:配置plist工程环境;
S2:加载plist文件;
S3:进行数据操作。
2.根据权利要求1所述的plist文件按视图视角模糊快速化节点数据的方法,其特征在于,所述工程环境包含库头文件和静态库。
3.根据权利要求1所述的plist文件按视图视角模糊快速化节点数据的方法,其特征在于,所述步骤S2中加载plist文件包括以下步骤:
S2-1:生成FibrPlist对象;
S2-2:调用接口open_plist_file或直接在构造函数中打开。
4.根据权利要求3所述的plist文件按视图视角模糊快速化节点数据的方法,其特征在于,所述步骤S2-2中的所述构造函数为FibrPlist。
5.根据权利要求1所述的plist文件按视图视角模糊快速化节点数据的方法,其特征在于,所述步骤S3中进行数据操作的操作接口如下:
S3-1:查询节点信息;
S3-2:设置节点信息;
S3-3:增加节点信息;
S3-4:删除节点信息。
6.根据权利要求1所述的plist文件按视图视角模糊快速化节点数据的方法,其特征在于,所述步骤S2和所述步骤S3之间需要判断所述plist文件是否为Binary格式,若判断结果为是,将Binary格式转换成XML格式,再进入所述步骤S3;若判断结果为否,直接进入所述步骤S3。
7.一种plist文件按视图视角模糊快速化节点数据的系统,其特征在于,包括:
plist工程环境配置模块,所述plist工程环境配置模块用于配置库头文件和静态库;
plist文件加载模块,所述plist文件加载模块用于生成FibrPlist对象和调用接口open_plist_file或直接在构造函数中打开;
数据操作模块,所述数据操作模块包括用于查询节点信息,设置节点信息,增加节点信息,删除节点信息。
8.根据权利要求7所述的plist文件按视图视角模糊快速化节点数据的系统,其特征在于,所述构造函数为FibrPlist。
9.根据权利要求7所述的plist文件按视图视角模糊快速化节点数据的系统,其特征在于,还包括判断模块,所述判断模块断用于判断所述plist文件是否为Binary格式,若判断结果为是,将Binary格式转换成XML格式,再进行数据操作;若判断结果为否,直接进行数据操作。
CN202010942219.9A 2020-09-09 2020-09-09 一种plist文件按视图视角模糊快速化节点数据的方法及系统 Pending CN112084153A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010942219.9A CN112084153A (zh) 2020-09-09 2020-09-09 一种plist文件按视图视角模糊快速化节点数据的方法及系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010942219.9A CN112084153A (zh) 2020-09-09 2020-09-09 一种plist文件按视图视角模糊快速化节点数据的方法及系统

Publications (1)

Publication Number Publication Date
CN112084153A true CN112084153A (zh) 2020-12-15

Family

ID=73732161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010942219.9A Pending CN112084153A (zh) 2020-09-09 2020-09-09 一种plist文件按视图视角模糊快速化节点数据的方法及系统

Country Status (1)

Country Link
CN (1) CN112084153A (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259864A (zh) * 2008-03-04 2013-08-21 苹果公司 数据同步协议
US20130275560A1 (en) * 2012-04-12 2013-10-17 Absolute Software Corporation Configuration of third party applications in a sandboxed environment
CN105740390A (zh) * 2016-01-27 2016-07-06 四川秘无痕信息安全技术有限责任公司 一种逆向提取plist格式数据的方法
US20200110591A1 (en) * 2018-10-04 2020-04-09 International Business Machines Corporation Automated configuration profile generation and management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259864A (zh) * 2008-03-04 2013-08-21 苹果公司 数据同步协议
US20130275560A1 (en) * 2012-04-12 2013-10-17 Absolute Software Corporation Configuration of third party applications in a sandboxed environment
CN105740390A (zh) * 2016-01-27 2016-07-06 四川秘无痕信息安全技术有限责任公司 一种逆向提取plist格式数据的方法
US20200110591A1 (en) * 2018-10-04 2020-04-09 International Business Machines Corporation Automated configuration profile generation and management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘肖: "Windows平台下iOS设备取证方法研究", 中国优秀硕士学位论文全文数据库信息科技辑, pages 63 - 64 *
贺滢睿;陆道宏;李建新;徐云峰;: "面向iPhone手机的电子数据取证分析", 信息网络安全, no. 10, pages 97 - 100 *

Similar Documents

Publication Publication Date Title
CN108376376B (zh) 基于bim模型的建筑工程质量管理标准化方法
US8190648B1 (en) Method and system for the storage and use of engineering modeling alternatives with unitized data
CN106777808B (zh) 一种基于标准化cad图纸的网络资源生成方法
CN112182698B (zh) 一种基于revit墙体构件的深度提取方法
CN113051650B (zh) 一种建筑信息模型构件数据实时采集方法和装置
US20040205598A1 (en) Method and system for management of structured document and medium having processing program therefor
CN111259202B (zh) 一种文档结构化数据嵌入方法及系统
Rho et al. An efficient version model of software diagrams
CN114968984A (zh) 数字孪生全生命周期管理平台
US7159171B2 (en) Structured document management system, structured document management method, search device and search method
CN116991931A (zh) 一种元数据管理方法和系统
CN115630172A (zh) 针对流程行业的数字主线构建方法及系统
Li et al. An empirical study of object-oriented system evolution
CN113486418B (zh) 一种bim模型云编码方法及系统
CN111966572B (zh) 一种基于面向信号的测试描述模型的描述方法及装置
CN112084153A (zh) 一种plist文件按视图视角模糊快速化节点数据的方法及系统
CN112926106A (zh) 基于六级系统的输变电工程协同设计方法及系统
CN117539433A (zh) 一种基于模型驱动架构的微服务设计方法
CN115033936B (zh) 一种用于SolidWorks系统的物料模型管理方法
CN115130186A (zh) 一种基于建模软件快速创建管道系统的方法
CN115759258A (zh) 一种基于知识图谱的电网设备实体的关系调整方法
CN116029648A (zh) 基于产品bom结构的关系建模管理方法、装置及系统
CN109271350A (zh) 一种基于远动通信的数据库及信息点表自动比对及同步方法
CN114020719A (zh) 一种应用于异构数据库的证照数据迁移方法
CN113935196A (zh) 一种仿真建模方法

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination