加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

DAVE SDK 4.1.2 Help content (翻译)——manifest 结构

发布时间:2020-12-14 16:46:30 所属栏目:大数据 来源:网络整理
导读:?? Manifest Properties 每一个 DAVE? APP 必须要有一个 manifest 文件。例如: DEMOAPP.manifest . Manifest 包含下面部分: 加载声明 (Import statements) 类 (Class object for DAVE? APP (e.g. DEMOAPP)) ? 所有的属性必须在 app 类中定义。如果它们没有
??

Manifest Properties

每一个DAVE? APP 必须要有一个manifest文件。例如:DEMOAPP.manifest.

Manifest包含下面部分:

  1. 加载声明(Import statements)

  2. (Class object for DAVE? APP (e.g. DEMOAPP))

?

所有的属性必须在app类中定义。如果它们没有被声明,在生成app时就会产生错误。

这些属性不能被appGUI改变。它们能以任何顺序被定义,能在templates file 中被读取。

?

属性应该这样定义:

def??? <property_name>= value>

<Type> > <?

?

?

在下面的程序你能看到默认生成的manifest file 和其中的定义和各个属性

1

?2

?3

?4

?5

?6

?7

?8

?9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

// Import statements

import ifx.davex.app.manifest.*

?

class DEMOAPP extends DEMOAPP_GUI {

?? // Note : Following APP properties are mandatory and important

// Begin : APP property section

?? /**

??? * APP version

??? * Format: a string with three digit separated by a dot.

??? */

??? def version = '1.0.0'

??? * APP categories declaration.

??? * It is list of strings. Subcategories are separated by slash.

??? * No limits on number of categories and subcategories depth.

categoriesDescription ["Category/Sub Category"]

/**

??? * Minimum DAVE version required for this APP.

??? *

??? * It is string with three digit separated by a dot.

minDaveVersion = '4.0.0'

??? * Keywords used by search feature in APPs selection view

??? * It is a list of string.

keywords ['My keyword']

??? * softwareIDs is used to declare which devices are compatible with this APP.

??? * It is a map with key a string containing a pattern that shall match the SW id of

??? * the device and as value the minimal version of the APP.

??? // Any step of XMC4500F144 and XMC4400F144

// Any step of XMC4400F100 and XMC4400F64

// Any step,any variant and any packages of XMC1300

softwareIDs [

??????? "XMC4.[4-5].00.F144.*":"1.0.0",

??????? "XMC4.4.00.(F100|F64).*" ??????? "XMC1.3.*.*.*":"1.0.0"

??? ??? * Singleton property:

??? * When it is true the APP can be instantiated only once.

singleton = false

??? * initProvider property

??? * It shall be true to add a call to <AppName>_Init()

initProvider ?

??? * Deprecated APP

??? * Set it to true to indicate that the APP shall be not used for new projects.

deprecated ??? * Sharable property.

??? * It shall be true to allows multiple APPs to require the same instance of this APP.

sharable ??? * APP function description.

description = "Here the APP description. Please add appropriate APP description"

// End?? : APP property section

// Begin : User APP property section

// End?? : User APP property section

// APP Constructor

public DEMOAPP(DaveEnv daveEnv) ??????? //TODO: Initialize manifest variables here

}

// File Generation

def generateFiles(){

??????? generate("demoapp.tmpl""demoapp.h"false)

}

?

属性:

version

categoriesDescription

minDaveVersion

keywords

softwareIDs

singleton

initProvider

deprecated

sharable

descrition

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读