Method, unit and processor for generating properties in ios (Internetworking Operating System-Cisco) programming

A technology of accessor and processor, which is applied in the field of computer programming, can solve problems such as time-consuming, and achieve the effects of saving time, simplifying the steps of generation, and being easy to use

Active Publication Date: 2013-11-27
SHENZHEN ROADROVER TECH
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the object of the present invention is to provide a method, device and processor for generating accessors in ios programming, so as to solve the problem that a large amount of time is consumed when the data members declare the keyword property proposed in the background technology , the specific implementation plan is as follows:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, unit and processor for generating properties in ios (Internetworking Operating System-Cisco) programming
  • Method, unit and processor for generating properties in ios (Internetworking Operating System-Cisco) programming
  • Method, unit and processor for generating properties in ios (Internetworking Operating System-Cisco) programming

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] see figure 1 As shown in the schematic workflow diagram, the method for generating accessors in ios programming disclosed in this application includes the following steps:

[0052] Step S1. Obtain relevant information of the data member to be declared, the relevant information includes: data type and data name.

[0053] Data members in the same class often have different data types, and there is a certain correspondence between different data types and the attributes of the keyword property. For example, the data type of NSMutableDictionary, the corresponding attribute of the keyword property is nonatomic, copy, and the data type of IBOutletUIView, the corresponding attribute of the keyword property is nonatomic, strong. Therefore, when obtaining the relevant information of the data member to be declared, the data type and data name need to be obtained.

[0054] Step S2: Generate and output the keyword property corresponding to the data member to be declared according...

Embodiment 2

[0059] In the second embodiment disclosed in the present application, a method of generating and outputting the keyword property corresponding to the data member to be declared in step S2 is disclosed. Among them, when obtaining the relevant information of the data members to be declared in step S1, the data type and the data name are obtained sequentially, see figure 2 As shown in the schematic diagram of the workflow, the generation and output of the keyword property corresponding to the data member to be declared includes:

[0060] Step S11, after acquiring the data type, generate a data type accessor containing the data type according to the data type and the corresponding relationship between the data type and the keyword property.

[0061] For example, when the data type of the data member to be declared is NSString type and the data name is str, when the data type is obtained, that is, the NSString type, a piece of code containing the data type "property(nonatomic, cop...

Embodiment 3

[0066] In the third embodiment disclosed in the present application, another method of generating and outputting the keyword property corresponding to the data member to be declared in step S2 is disclosed. Among them, when obtaining the relevant information of the data members to be declared in step S1, the data type and the data name are obtained sequentially, see image 3 As shown in the schematic diagram of the workflow, the generation and output of the keyword property corresponding to the data member to be declared includes:

[0067] Step S21, after acquiring the data name, generate a data name accessor containing the data name according to the data name.

[0068] After receiving the data name of the data member to be declared, a code containing the data name will be generated. For example, when the data type of the data member to be declared is NSString type and the data name is str, after receiving the data name str , generate a piece of code containing the data name,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the field of computer programming, in particular to a method, a unit and a processor for generating properties in ios programming. In the method, the related information of a data member to be declared, which is the data type and data name of the data member, is first obtained, and according to the related information and the corresponding relation between prestored data types and keywords property, a corresponding keyword property is then generated. By means of the method, when the keyword property of a certain data member needs to be obtained, the keyword property of the data member to be declared can be generated and outputted as long as the related information is inputted by a worker, consequently, the keyword property of the data member can be conveniently used by the worker, and does not need to be manually declared any more, the steps of property generation are simplified, and a great deal of time is saved.

Description

technical field [0001] The invention relates to the field of computer programming, in particular to a method, device and processor for generating accessors in ios programming. Background technique [0002] In ios (Internetworking Operating System-Cisco, CISCO network configuration system) programming, the system provides a keyword property, which is used to identify the attributes of data members, and can automatically generate methods for setting functions and methods for obtaining functions, providing To provide a more concise way to access data members, the keyword property is usually called an accessor. Therefore, in the programming process of ios, the keyword property is widely used. [0003] In the prior art, when declaring a keyword property for each data member, the staff needs to obtain the data type of the data member, and then manually declare the corresponding key for the data member according to the data type of the data member The word property. [0004] How...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 方鸿灏
Owner SHENZHEN ROADROVER TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products