Parcourir la source

fixed:首次提交,未测试

master
qi-qin il y a 6 mois
révision
2d47fce4d2
100 fichiers modifiés avec 3748 ajouts et 0 suppressions
  1. 173
    0
      .cproject
  2. 28
    0
      .project
  3. 25
    0
      .settings/language.settings.xml
  4. 3
    0
      .settings/org.eclipse.core.resources.prefs
  5. 12
    0
      .tracecompass/.project
  6. 24
    0
      Debug/common/subdir.mk
  7. 11
    0
      Debug/ems_app_para_calcu/Release/common/subdir.mk
  8. 13
    0
      Debug/ems_app_para_calcu/Release/models/devices/subdir.mk
  9. 11
    0
      Debug/ems_app_para_calcu/Release/models/sys/subdir.mk
  10. 11
    0
      Debug/ems_app_para_calcu/Release/services/impl/subdir.mk
  11. 12
    0
      Debug/ems_app_para_calcu/Release/utils/easylogger/plugins/file/subdir.mk
  12. 11
    0
      Debug/ems_app_para_calcu/Release/utils/easylogger/port/subdir.mk
  13. 14
    0
      Debug/ems_app_para_calcu/Release/utils/easylogger/src/subdir.mk
  14. 12
    0
      Debug/ems_app_para_calcu/Release/utils/subdir.mk
  15. 24
    0
      Debug/ems_app_para_calcu/common/subdir.mk
  16. 30
    0
      Debug/ems_app_para_calcu/models/devices/subdir.mk
  17. 24
    0
      Debug/ems_app_para_calcu/models/sys/subdir.mk
  18. 24
    0
      Debug/ems_app_para_calcu/services/impl/subdir.mk
  19. 27
    0
      Debug/ems_app_para_calcu/utils/easylogger/plugins/file/subdir.mk
  20. 24
    0
      Debug/ems_app_para_calcu/utils/easylogger/port/subdir.mk
  21. 33
    0
      Debug/ems_app_para_calcu/utils/easylogger/src/subdir.mk
  22. 24
    0
      Debug/ems_app_para_calcu/utils/iLOG/subdir.mk
  23. 27
    0
      Debug/ems_app_para_calcu/utils/subdir.mk
  24. 82
    0
      Debug/makefile
  25. 30
    0
      Debug/models/devices/subdir.mk
  26. 24
    0
      Debug/models/sys/subdir.mk
  27. 8
    0
      Debug/objects.mk
  28. 24
    0
      Debug/services/impl/subdir.mk
  29. 51
    0
      Debug/sources.mk
  30. 27
    0
      Debug/utils/easylogger/plugins/file/subdir.mk
  31. 24
    0
      Debug/utils/easylogger/port/subdir.mk
  32. 33
    0
      Debug/utils/easylogger/src/subdir.mk
  33. 27
    0
      Debug/utils/subdir.mk
  34. 9
    0
      Release/common/GUID.d
  35. BIN
      Release/common/GUID.o
  36. 31
    0
      Release/common/subdir.mk
  37. BIN
      Release/libems_app_anti_backflow.so
  38. BIN
      Release/libems_app_power_plan.so
  39. 85
    0
      Release/makefile
  40. 4
    0
      Release/models/devices/Common.d
  41. BIN
      Release/models/devices/Common.o
  42. 23
    0
      Release/models/devices/Device.d
  43. BIN
      Release/models/devices/Device.o
  44. 25
    0
      Release/models/devices/ES.d
  45. BIN
      Release/models/devices/ES.o
  46. 37
    0
      Release/models/devices/subdir.mk
  47. 26
    0
      Release/models/sys/System.d
  48. BIN
      Release/models/sys/System.o
  49. 31
    0
      Release/models/sys/subdir.mk
  50. 8
    0
      Release/objects.mk
  51. 47
    0
      Release/services/impl/EmsAppImpl.d
  52. BIN
      Release/services/impl/EmsAppImpl.o
  53. 31
    0
      Release/services/impl/subdir.mk
  54. 41
    0
      Release/sources.mk
  55. 15
    0
      Release/utils/DataBase.d
  56. BIN
      Release/utils/DataBase.o
  57. 38
    0
      Release/utils/Util.d
  58. BIN
      Release/utils/Util.o
  59. 14
    0
      Release/utils/easylogger/plugins/file/elog_file.d
  60. BIN
      Release/utils/easylogger/plugins/file/elog_file.o
  61. 14
    0
      Release/utils/easylogger/plugins/file/elog_file_port.d
  62. BIN
      Release/utils/easylogger/plugins/file/elog_file_port.o
  63. 34
    0
      Release/utils/easylogger/plugins/file/subdir.mk
  64. 13
    0
      Release/utils/easylogger/port/elog_port.d
  65. BIN
      Release/utils/easylogger/port/elog_port.o
  66. 31
    0
      Release/utils/easylogger/port/subdir.mk
  67. 7
    0
      Release/utils/easylogger/src/elog.d
  68. BIN
      Release/utils/easylogger/src/elog.o
  69. 7
    0
      Release/utils/easylogger/src/elog_async.d
  70. BIN
      Release/utils/easylogger/src/elog_async.o
  71. 7
    0
      Release/utils/easylogger/src/elog_buf.d
  72. BIN
      Release/utils/easylogger/src/elog_buf.o
  73. 7
    0
      Release/utils/easylogger/src/elog_utils.d
  74. BIN
      Release/utils/easylogger/src/elog_utils.o
  75. 40
    0
      Release/utils/easylogger/src/subdir.mk
  76. 34
    0
      Release/utils/subdir.mk
  77. 22
    0
      common/GUID.cpp
  78. 25
    0
      common/IFace.h
  79. 24
    0
      common/IUnknown.h
  80. 429
    0
      common/Type.h
  81. 33
    0
      externservices/EmsCoreI.h
  82. 19
    0
      models/devices/Common.cpp
  83. 101
    0
      models/devices/Common.h
  84. 115
    0
      models/devices/Device.cpp
  85. 67
    0
      models/devices/Device.h
  86. 20
    0
      models/devices/ES.cpp
  87. 20
    0
      models/devices/ES.h
  88. 26
    0
      models/devices/OperateDevice.h
  89. 314
    0
      models/sys/System.cpp
  90. 247
    0
      models/sys/System.h
  91. 32
    0
      services/EmsAppI.h
  92. 116
    0
      services/impl/EmsAppImpl.cpp
  93. 55
    0
      services/impl/EmsAppImpl.h
  94. 31
    0
      utils/DataBase.cpp
  95. 49
    0
      utils/DataBase.h
  96. 49
    0
      utils/Util.cpp
  97. 28
    0
      utils/Util.h
  98. 273
    0
      utils/easylogger/inc/elog.h
  99. 67
    0
      utils/easylogger/inc/elog_cfg.h
  100. 0
    0
      utils/easylogger/plugins/file/elog_file.c

+ 173
- 0
.cproject Voir le fichier

@@ -0,0 +1,173 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
3
+	<storageModule moduleId="org.eclipse.cdt.core.settings">
4
+		<cconfiguration id="cdt.managedbuild.config.gnu.cross.exe.debug.133602178">
5
+			<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.cross.exe.debug.133602178" moduleId="org.eclipse.cdt.core.settings" name="Debug">
6
+				<externalSettings>
7
+					<externalSetting>
8
+						<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/ems_app_state_machine"/>
9
+						<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/ems_app_init"/>
10
+						<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/ems_app_state_machine/Debug"/>
11
+						<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/ems_app_init/Debug"/>
12
+						<entry flags="RESOLVED" kind="libraryFile" name="ems_app_state_machine" srcPrefixMapping="" srcRootPath=""/>
13
+						<entry flags="RESOLVED" kind="libraryFile" name="ems_app_init" srcPrefixMapping="" srcRootPath=""/>
14
+					</externalSetting>
15
+				</externalSettings>
16
+				<extensions>
17
+					<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
18
+					<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
19
+					<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
20
+					<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
21
+					<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
22
+					<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
23
+				</extensions>
24
+			</storageModule>
25
+			<storageModule moduleId="cdtBuildSystem" version="4.0.0">
26
+				<configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.cross.exe.debug.133602178" name="Debug" optionalBuildProperties="" parent="cdt.managedbuild.config.gnu.cross.exe.debug">
27
+					<folderInfo id="cdt.managedbuild.config.gnu.cross.exe.debug.133602178." name="/" resourcePath="">
28
+						<toolChain id="cdt.managedbuild.toolchain.gnu.cross.exe.debug.1563319583" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.exe.debug">
29
+							<option id="cdt.managedbuild.option.gnu.cross.prefix.1262294193" name="Prefix" superClass="cdt.managedbuild.option.gnu.cross.prefix" useByScannerDiscovery="false" value="arm-linux-gnueabihf-" valueType="string"/>
30
+							<option id="cdt.managedbuild.option.gnu.cross.path.871758462" name="Path" superClass="cdt.managedbuild.option.gnu.cross.path" useByScannerDiscovery="false" value="C:\Program Files (x86)\Linaro\gcc-linaro-arm-linux-gnueabihf-4.7-2013.04\bin" valueType="string"/>
31
+							<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1686742437" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
32
+							<builder buildPath="${workspace_loc:/ems_app_state_machine}/Debug" id="cdt.managedbuild.builder.gnu.cross.671452644" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
33
+							<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.719664088" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
34
+								<option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.1073817289" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
35
+								<option id="gnu.c.compiler.option.debugging.level.373078378" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated"/>
36
+								<option id="gnu.c.compiler.option.misc.pic.748242384" name="Position Independent Code (-fPIC)" superClass="gnu.c.compiler.option.misc.pic" useByScannerDiscovery="false" value="true" valueType="boolean"/>
37
+								<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.950166548" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
38
+							</tool>
39
+							<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.689631363" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
40
+								<option id="gnu.cpp.compiler.option.optimization.level.669197523" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
41
+								<option id="gnu.cpp.compiler.option.debugging.level.2140188085" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
42
+								<option id="gnu.cpp.compiler.option.dialect.std.1960127672" name="Language standard" superClass="gnu.cpp.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.cpp.compiler.dialect.c++11" valueType="enumerated"/>
43
+								<option id="gnu.cpp.compiler.option.other.pic.774543236" name="Position Independent Code (-fPIC)" superClass="gnu.cpp.compiler.option.other.pic" useByScannerDiscovery="false" value="true" valueType="boolean"/>
44
+								<option id="gnu.cpp.compiler.option.other.other.855684270" name="Other flags" superClass="gnu.cpp.compiler.option.other.other" useByScannerDiscovery="false" value="-c -fmessage-length=0" valueType="string"/>
45
+								<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.740717313" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
46
+							</tool>
47
+							<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.97442960" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker">
48
+								<option defaultValue="true" id="gnu.c.link.option.shared.497599759" name="Shared (-shared)" superClass="gnu.c.link.option.shared" valueType="boolean"/>
49
+							</tool>
50
+							<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.751392485" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker">
51
+								<option defaultValue="true" id="gnu.cpp.link.option.shared.803274392" name="Shared (-shared)" superClass="gnu.cpp.link.option.shared" useByScannerDiscovery="false" value="true" valueType="boolean"/>
52
+								<option id="gnu.cpp.link.option.flags.1952743283" name="Linker flags" superClass="gnu.cpp.link.option.flags" useByScannerDiscovery="false" value="" valueType="string"/>
53
+								<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.cpp.link.option.libs.1768689926" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" useByScannerDiscovery="false" valueType="libs">
54
+									<listOptionValue builtIn="false" value="dl"/>
55
+								</option>
56
+								<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1760925271" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
57
+									<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
58
+									<additionalInput kind="additionalinput" paths="$(LIBS)"/>
59
+								</inputType>
60
+							</tool>
61
+							<tool id="cdt.managedbuild.tool.gnu.cross.archiver.1844837637" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
62
+							<tool id="cdt.managedbuild.tool.gnu.cross.assembler.1175178409" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
63
+								<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1315800250" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
64
+							</tool>
65
+						</toolChain>
66
+					</folderInfo>
67
+					<sourceEntries>
68
+						<entry excluding="utils/iLOG" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
69
+					</sourceEntries>
70
+				</configuration>
71
+			</storageModule>
72
+			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
73
+		</cconfiguration>
74
+		<cconfiguration id="cdt.managedbuild.config.gnu.cross.exe.release.1441486615">
75
+			<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.cross.exe.release.1441486615" moduleId="org.eclipse.cdt.core.settings" name="Release">
76
+				<externalSettings>
77
+					<externalSetting>
78
+						<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/ems_app_state_machine"/>
79
+						<entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/ems_app_init"/>
80
+						<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/ems_app_state_machine/Release"/>
81
+						<entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/ems_app_init/Release"/>
82
+						<entry flags="RESOLVED" kind="libraryFile" name="ems_app_state_machine" srcPrefixMapping="" srcRootPath=""/>
83
+						<entry flags="RESOLVED" kind="libraryFile" name="ems_app_init" srcPrefixMapping="" srcRootPath=""/>
84
+					</externalSetting>
85
+				</externalSettings>
86
+				<extensions>
87
+					<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
88
+					<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
89
+					<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
90
+					<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
91
+					<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
92
+					<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
93
+				</extensions>
94
+			</storageModule>
95
+			<storageModule moduleId="cdtBuildSystem" version="4.0.0">
96
+				<configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.cross.exe.release.1441486615" name="Release" parent="cdt.managedbuild.config.gnu.cross.exe.release">
97
+					<folderInfo id="cdt.managedbuild.config.gnu.cross.exe.release.1441486615." name="/" resourcePath="">
98
+						<toolChain id="cdt.managedbuild.toolchain.gnu.cross.exe.release.1292895419" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.exe.release">
99
+							<option id="cdt.managedbuild.option.gnu.cross.prefix.782461934" name="Prefix" superClass="cdt.managedbuild.option.gnu.cross.prefix" useByScannerDiscovery="false" value="arm-linux-gnueabihf-" valueType="string"/>
100
+							<option id="cdt.managedbuild.option.gnu.cross.path.536844484" name="Path" superClass="cdt.managedbuild.option.gnu.cross.path" useByScannerDiscovery="false" value="C:\Program Files (x86)\Linaro\gcc-linaro-arm-linux-gnueabihf-4.7-2013.04\bin" valueType="string"/>
101
+							<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1862020436" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
102
+							<builder buildPath="${workspace_loc:/ems_app_state_machine}/Release" id="cdt.managedbuild.builder.gnu.cross.660266826" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
103
+							<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.1075084870" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
104
+								<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.220054521" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
105
+								<option id="gnu.c.compiler.option.debugging.level.303523887" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.none" valueType="enumerated"/>
106
+								<option id="gnu.c.compiler.option.dialect.std.540645858" name="Language standard" superClass="gnu.c.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.c.compiler.dialect.default" valueType="enumerated"/>
107
+								<option id="gnu.c.compiler.option.misc.pic.1031357148" name="Position Independent Code (-fPIC)" superClass="gnu.c.compiler.option.misc.pic" useByScannerDiscovery="false" value="true" valueType="boolean"/>
108
+								<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.c.compiler.option.include.paths.1700337062" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
109
+									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/utils/easylogger/plugins/file}&quot;"/>
110
+									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/utils/easylogger/inc}&quot;"/>
111
+								</option>
112
+								<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.2030969403" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
113
+							</tool>
114
+							<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.1427176471" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
115
+								<option id="gnu.cpp.compiler.option.optimization.level.1649016201" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
116
+								<option id="gnu.cpp.compiler.option.debugging.level.506093800" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
117
+								<option id="gnu.cpp.compiler.option.dialect.std.581137270" name="Language standard" superClass="gnu.cpp.compiler.option.dialect.std" useByScannerDiscovery="true" value="gnu.cpp.compiler.dialect.c++11" valueType="enumerated"/>
118
+								<option id="gnu.cpp.compiler.option.other.pic.1747855634" name="Position Independent Code (-fPIC)" superClass="gnu.cpp.compiler.option.other.pic" useByScannerDiscovery="false" value="true" valueType="boolean"/>
119
+								<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.cpp.compiler.option.include.paths.1012702358" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
120
+									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/utils/easylogger/inc}&quot;"/>
121
+									<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/utils/easylogger/plugins/file}&quot;"/>
122
+								</option>
123
+								<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1292089021" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
124
+							</tool>
125
+							<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.962374493" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker">
126
+								<option defaultValue="true" id="gnu.c.link.option.shared.1496610136" name="Shared (-shared)" superClass="gnu.c.link.option.shared" valueType="boolean"/>
127
+							</tool>
128
+							<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.1794084590" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker">
129
+								<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="gnu.cpp.link.option.libs.1599450169" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" useByScannerDiscovery="false" valueType="libs">
130
+									<listOptionValue builtIn="false" value="dl"/>
131
+								</option>
132
+								<option id="gnu.cpp.link.option.shared.1457191447" name="Shared (-shared)" superClass="gnu.cpp.link.option.shared" useByScannerDiscovery="false" value="true" valueType="boolean"/>
133
+								<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.264897188" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
134
+									<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
135
+									<additionalInput kind="additionalinput" paths="$(LIBS)"/>
136
+								</inputType>
137
+							</tool>
138
+							<tool id="cdt.managedbuild.tool.gnu.cross.archiver.817749906" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
139
+							<tool id="cdt.managedbuild.tool.gnu.cross.assembler.1427747622" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
140
+								<inputType id="cdt.managedbuild.tool.gnu.assembler.input.236327336" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
141
+							</tool>
142
+						</toolChain>
143
+					</folderInfo>
144
+					<sourceEntries>
145
+						<entry excluding="utils/iLOG" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
146
+					</sourceEntries>
147
+				</configuration>
148
+			</storageModule>
149
+			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
150
+		</cconfiguration>
151
+	</storageModule>
152
+	<storageModule moduleId="cdtBuildSystem" version="4.0.0">
153
+		<project id="ems_app_state_machine.cdt.managedbuild.target.gnu.cross.exe.782326483" name="Executable" projectType="cdt.managedbuild.target.gnu.cross.exe"/>
154
+	</storageModule>
155
+	<storageModule moduleId="scannerConfiguration">
156
+		<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
157
+		<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.debug.133602178;cdt.managedbuild.config.gnu.cross.exe.debug.133602178.;cdt.managedbuild.tool.gnu.cross.cpp.compiler.689631363;cdt.managedbuild.tool.gnu.cpp.compiler.input.740717313">
158
+			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
159
+		</scannerConfigBuildInfo>
160
+		<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.release.1441486615;cdt.managedbuild.config.gnu.cross.exe.release.1441486615.;cdt.managedbuild.tool.gnu.cross.c.compiler.1075084870;cdt.managedbuild.tool.gnu.c.compiler.input.2030969403">
161
+			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
162
+		</scannerConfigBuildInfo>
163
+		<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.release.1441486615;cdt.managedbuild.config.gnu.cross.exe.release.1441486615.;cdt.managedbuild.tool.gnu.cross.cpp.compiler.1427176471;cdt.managedbuild.tool.gnu.cpp.compiler.input.1292089021">
164
+			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
165
+		</scannerConfigBuildInfo>
166
+		<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.debug.133602178;cdt.managedbuild.config.gnu.cross.exe.debug.133602178.;cdt.managedbuild.tool.gnu.cross.c.compiler.719664088;cdt.managedbuild.tool.gnu.c.compiler.input.950166548">
167
+			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
168
+		</scannerConfigBuildInfo>
169
+	</storageModule>
170
+	<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
171
+	<storageModule moduleId="refreshScope"/>
172
+	<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
173
+</cproject>

+ 28
- 0
.project Voir le fichier

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>ems_app_power_plan</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+		<buildCommand>
9
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10
+			<triggers>clean,full,incremental,</triggers>
11
+			<arguments>
12
+			</arguments>
13
+		</buildCommand>
14
+		<buildCommand>
15
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
16
+			<triggers>full,incremental,</triggers>
17
+			<arguments>
18
+			</arguments>
19
+		</buildCommand>
20
+	</buildSpec>
21
+	<natures>
22
+		<nature>org.eclipse.cdt.core.cnature</nature>
23
+		<nature>org.eclipse.cdt.core.ccnature</nature>
24
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
25
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
26
+		<nature>org.eclipse.linuxtools.tmf.project.nature</nature>
27
+	</natures>
28
+</projectDescription>

+ 25
- 0
.settings/language.settings.xml Voir le fichier

@@ -0,0 +1,25 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+<project>
3
+	<configuration id="cdt.managedbuild.config.gnu.cross.exe.debug.133602178" name="Debug">
4
+		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
5
+			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
6
+			<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
7
+			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
8
+			<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1662284402047368778" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
9
+				<language-scope id="org.eclipse.cdt.core.gcc"/>
10
+				<language-scope id="org.eclipse.cdt.core.g++"/>
11
+			</provider>
12
+		</extension>
13
+	</configuration>
14
+	<configuration id="cdt.managedbuild.config.gnu.cross.exe.release.1441486615" name="Release">
15
+		<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
16
+			<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
17
+			<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
18
+			<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
19
+			<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1662284402047368778" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
20
+				<language-scope id="org.eclipse.cdt.core.gcc"/>
21
+				<language-scope id="org.eclipse.cdt.core.g++"/>
22
+			</provider>
23
+		</extension>
24
+	</configuration>
25
+</project>

+ 3
- 0
.settings/org.eclipse.core.resources.prefs Voir le fichier

@@ -0,0 +1,3 @@
1
+eclipse.preferences.version=1
2
+encoding//common/GUID.cpp=UTF-8
3
+encoding/<project>=UTF-8

+ 12
- 0
.tracecompass/.project Voir le fichier

@@ -0,0 +1,12 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<projectDescription>
3
+	<name>.tracecompass-ems_app_power_plan</name>
4
+	<comment></comment>
5
+	<projects>
6
+	</projects>
7
+	<buildSpec>
8
+	</buildSpec>
9
+	<natures>
10
+		<nature>org.eclipse.linuxtools.tmf.project.nature</nature>
11
+	</natures>
12
+</projectDescription>

+ 24
- 0
Debug/common/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../common/GUID.cpp 
8
+
9
+OBJS += \
10
+./common/GUID.o 
11
+
12
+CPP_DEPS += \
13
+./common/GUID.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+common/%.o: ../common/%.cpp
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 11
- 0
Debug/ems_app_para_calcu/Release/common/subdir.mk Voir le fichier

@@ -0,0 +1,11 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/common/GUID.o 
8
+
9
+
10
+# Each subdirectory must supply rules for building sources it contributes
11
+

+ 13
- 0
Debug/ems_app_para_calcu/Release/models/devices/subdir.mk Voir le fichier

@@ -0,0 +1,13 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/models/devices/Common.o \
8
+../ems_app_para_calcu/Release/models/devices/Device.o \
9
+../ems_app_para_calcu/Release/models/devices/ES.o 
10
+
11
+
12
+# Each subdirectory must supply rules for building sources it contributes
13
+

+ 11
- 0
Debug/ems_app_para_calcu/Release/models/sys/subdir.mk Voir le fichier

@@ -0,0 +1,11 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/models/sys/System.o 
8
+
9
+
10
+# Each subdirectory must supply rules for building sources it contributes
11
+

+ 11
- 0
Debug/ems_app_para_calcu/Release/services/impl/subdir.mk Voir le fichier

@@ -0,0 +1,11 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/services/impl/EmsAppImpl.o 
8
+
9
+
10
+# Each subdirectory must supply rules for building sources it contributes
11
+

+ 12
- 0
Debug/ems_app_para_calcu/Release/utils/easylogger/plugins/file/subdir.mk Voir le fichier

@@ -0,0 +1,12 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/utils/easylogger/plugins/file/elog_file.o \
8
+../ems_app_para_calcu/Release/utils/easylogger/plugins/file/elog_file_port.o 
9
+
10
+
11
+# Each subdirectory must supply rules for building sources it contributes
12
+

+ 11
- 0
Debug/ems_app_para_calcu/Release/utils/easylogger/port/subdir.mk Voir le fichier

@@ -0,0 +1,11 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/utils/easylogger/port/elog_port.o 
8
+
9
+
10
+# Each subdirectory must supply rules for building sources it contributes
11
+

+ 14
- 0
Debug/ems_app_para_calcu/Release/utils/easylogger/src/subdir.mk Voir le fichier

@@ -0,0 +1,14 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/utils/easylogger/src/elog.o \
8
+../ems_app_para_calcu/Release/utils/easylogger/src/elog_async.o \
9
+../ems_app_para_calcu/Release/utils/easylogger/src/elog_buf.o \
10
+../ems_app_para_calcu/Release/utils/easylogger/src/elog_utils.o 
11
+
12
+
13
+# Each subdirectory must supply rules for building sources it contributes
14
+

+ 12
- 0
Debug/ems_app_para_calcu/Release/utils/subdir.mk Voir le fichier

@@ -0,0 +1,12 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+O_SRCS += \
7
+../ems_app_para_calcu/Release/utils/DataBase.o \
8
+../ems_app_para_calcu/Release/utils/Util.o 
9
+
10
+
11
+# Each subdirectory must supply rules for building sources it contributes
12
+

+ 24
- 0
Debug/ems_app_para_calcu/common/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../ems_app_para_calcu/common/GUID.cpp 
8
+
9
+OBJS += \
10
+./ems_app_para_calcu/common/GUID.o 
11
+
12
+CPP_DEPS += \
13
+./ems_app_para_calcu/common/GUID.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+ems_app_para_calcu/common/%.o: ../ems_app_para_calcu/common/%.cpp
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 30
- 0
Debug/ems_app_para_calcu/models/devices/subdir.mk Voir le fichier

@@ -0,0 +1,30 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../ems_app_para_calcu/models/devices/Common.cpp \
8
+../ems_app_para_calcu/models/devices/Device.cpp \
9
+../ems_app_para_calcu/models/devices/ES.cpp 
10
+
11
+OBJS += \
12
+./ems_app_para_calcu/models/devices/Common.o \
13
+./ems_app_para_calcu/models/devices/Device.o \
14
+./ems_app_para_calcu/models/devices/ES.o 
15
+
16
+CPP_DEPS += \
17
+./ems_app_para_calcu/models/devices/Common.d \
18
+./ems_app_para_calcu/models/devices/Device.d \
19
+./ems_app_para_calcu/models/devices/ES.d 
20
+
21
+
22
+# Each subdirectory must supply rules for building sources it contributes
23
+ems_app_para_calcu/models/devices/%.o: ../ems_app_para_calcu/models/devices/%.cpp
24
+	@echo 'Building file: $<'
25
+	@echo 'Invoking: Cross G++ Compiler'
26
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
27
+	@echo 'Finished building: $<'
28
+	@echo ' '
29
+
30
+

+ 24
- 0
Debug/ems_app_para_calcu/models/sys/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../ems_app_para_calcu/models/sys/System.cpp 
8
+
9
+OBJS += \
10
+./ems_app_para_calcu/models/sys/System.o 
11
+
12
+CPP_DEPS += \
13
+./ems_app_para_calcu/models/sys/System.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+ems_app_para_calcu/models/sys/%.o: ../ems_app_para_calcu/models/sys/%.cpp
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 24
- 0
Debug/ems_app_para_calcu/services/impl/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../ems_app_para_calcu/services/impl/EmsAppImpl.cpp 
8
+
9
+OBJS += \
10
+./ems_app_para_calcu/services/impl/EmsAppImpl.o 
11
+
12
+CPP_DEPS += \
13
+./ems_app_para_calcu/services/impl/EmsAppImpl.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+ems_app_para_calcu/services/impl/%.o: ../ems_app_para_calcu/services/impl/%.cpp
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 27
- 0
Debug/ems_app_para_calcu/utils/easylogger/plugins/file/subdir.mk Voir le fichier

@@ -0,0 +1,27 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../ems_app_para_calcu/utils/easylogger/plugins/file/elog_file.c \
8
+../ems_app_para_calcu/utils/easylogger/plugins/file/elog_file_port.c 
9
+
10
+OBJS += \
11
+./ems_app_para_calcu/utils/easylogger/plugins/file/elog_file.o \
12
+./ems_app_para_calcu/utils/easylogger/plugins/file/elog_file_port.o 
13
+
14
+C_DEPS += \
15
+./ems_app_para_calcu/utils/easylogger/plugins/file/elog_file.d \
16
+./ems_app_para_calcu/utils/easylogger/plugins/file/elog_file_port.d 
17
+
18
+
19
+# Each subdirectory must supply rules for building sources it contributes
20
+ems_app_para_calcu/utils/easylogger/plugins/file/%.o: ../ems_app_para_calcu/utils/easylogger/plugins/file/%.c
21
+	@echo 'Building file: $<'
22
+	@echo 'Invoking: Cross GCC Compiler'
23
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
24
+	@echo 'Finished building: $<'
25
+	@echo ' '
26
+
27
+

+ 24
- 0
Debug/ems_app_para_calcu/utils/easylogger/port/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../ems_app_para_calcu/utils/easylogger/port/elog_port.c 
8
+
9
+OBJS += \
10
+./ems_app_para_calcu/utils/easylogger/port/elog_port.o 
11
+
12
+C_DEPS += \
13
+./ems_app_para_calcu/utils/easylogger/port/elog_port.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+ems_app_para_calcu/utils/easylogger/port/%.o: ../ems_app_para_calcu/utils/easylogger/port/%.c
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross GCC Compiler'
20
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 33
- 0
Debug/ems_app_para_calcu/utils/easylogger/src/subdir.mk Voir le fichier

@@ -0,0 +1,33 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../ems_app_para_calcu/utils/easylogger/src/elog.c \
8
+../ems_app_para_calcu/utils/easylogger/src/elog_async.c \
9
+../ems_app_para_calcu/utils/easylogger/src/elog_buf.c \
10
+../ems_app_para_calcu/utils/easylogger/src/elog_utils.c 
11
+
12
+OBJS += \
13
+./ems_app_para_calcu/utils/easylogger/src/elog.o \
14
+./ems_app_para_calcu/utils/easylogger/src/elog_async.o \
15
+./ems_app_para_calcu/utils/easylogger/src/elog_buf.o \
16
+./ems_app_para_calcu/utils/easylogger/src/elog_utils.o 
17
+
18
+C_DEPS += \
19
+./ems_app_para_calcu/utils/easylogger/src/elog.d \
20
+./ems_app_para_calcu/utils/easylogger/src/elog_async.d \
21
+./ems_app_para_calcu/utils/easylogger/src/elog_buf.d \
22
+./ems_app_para_calcu/utils/easylogger/src/elog_utils.d 
23
+
24
+
25
+# Each subdirectory must supply rules for building sources it contributes
26
+ems_app_para_calcu/utils/easylogger/src/%.o: ../ems_app_para_calcu/utils/easylogger/src/%.c
27
+	@echo 'Building file: $<'
28
+	@echo 'Invoking: Cross GCC Compiler'
29
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
30
+	@echo 'Finished building: $<'
31
+	@echo ' '
32
+
33
+

+ 24
- 0
Debug/ems_app_para_calcu/utils/iLOG/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../ems_app_para_calcu/utils/iLOG/LOG.c 
8
+
9
+OBJS += \
10
+./ems_app_para_calcu/utils/iLOG/LOG.o 
11
+
12
+C_DEPS += \
13
+./ems_app_para_calcu/utils/iLOG/LOG.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+ems_app_para_calcu/utils/iLOG/%.o: ../ems_app_para_calcu/utils/iLOG/%.c
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross GCC Compiler'
20
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 27
- 0
Debug/ems_app_para_calcu/utils/subdir.mk Voir le fichier

@@ -0,0 +1,27 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../ems_app_para_calcu/utils/DataBase.cpp \
8
+../ems_app_para_calcu/utils/Util.cpp 
9
+
10
+OBJS += \
11
+./ems_app_para_calcu/utils/DataBase.o \
12
+./ems_app_para_calcu/utils/Util.o 
13
+
14
+CPP_DEPS += \
15
+./ems_app_para_calcu/utils/DataBase.d \
16
+./ems_app_para_calcu/utils/Util.d 
17
+
18
+
19
+# Each subdirectory must supply rules for building sources it contributes
20
+ems_app_para_calcu/utils/%.o: ../ems_app_para_calcu/utils/%.cpp
21
+	@echo 'Building file: $<'
22
+	@echo 'Invoking: Cross G++ Compiler'
23
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
24
+	@echo 'Finished building: $<'
25
+	@echo ' '
26
+
27
+

+ 82
- 0
Debug/makefile Voir le fichier

@@ -0,0 +1,82 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+-include ../makefile.init
6
+
7
+RM := rm -rf
8
+
9
+# All of the sources participating in the build are defined here
10
+-include sources.mk
11
+-include utils/easylogger/src/subdir.mk
12
+-include utils/easylogger/port/subdir.mk
13
+-include utils/easylogger/plugins/file/subdir.mk
14
+-include utils/subdir.mk
15
+-include services/impl/subdir.mk
16
+-include models/sys/subdir.mk
17
+-include models/devices/subdir.mk
18
+-include ems_app_para_calcu/utils/iLOG/subdir.mk
19
+-include ems_app_para_calcu/utils/easylogger/src/subdir.mk
20
+-include ems_app_para_calcu/utils/easylogger/port/subdir.mk
21
+-include ems_app_para_calcu/utils/easylogger/plugins/file/subdir.mk
22
+-include ems_app_para_calcu/utils/subdir.mk
23
+-include ems_app_para_calcu/services/impl/subdir.mk
24
+-include ems_app_para_calcu/models/sys/subdir.mk
25
+-include ems_app_para_calcu/models/devices/subdir.mk
26
+-include ems_app_para_calcu/common/subdir.mk
27
+-include ems_app_para_calcu/Release/utils/easylogger/src/subdir.mk
28
+-include ems_app_para_calcu/Release/utils/easylogger/port/subdir.mk
29
+-include ems_app_para_calcu/Release/utils/easylogger/plugins/file/subdir.mk
30
+-include ems_app_para_calcu/Release/utils/subdir.mk
31
+-include ems_app_para_calcu/Release/services/impl/subdir.mk
32
+-include ems_app_para_calcu/Release/models/sys/subdir.mk
33
+-include ems_app_para_calcu/Release/models/devices/subdir.mk
34
+-include ems_app_para_calcu/Release/common/subdir.mk
35
+-include common/subdir.mk
36
+-include subdir.mk
37
+-include objects.mk
38
+
39
+ifneq ($(MAKECMDGOALS),clean)
40
+ifneq ($(strip $(CC_DEPS)),)
41
+-include $(CC_DEPS)
42
+endif
43
+ifneq ($(strip $(C++_DEPS)),)
44
+-include $(C++_DEPS)
45
+endif
46
+ifneq ($(strip $(C_UPPER_DEPS)),)
47
+-include $(C_UPPER_DEPS)
48
+endif
49
+ifneq ($(strip $(CXX_DEPS)),)
50
+-include $(CXX_DEPS)
51
+endif
52
+ifneq ($(strip $(C_DEPS)),)
53
+-include $(C_DEPS)
54
+endif
55
+ifneq ($(strip $(CPP_DEPS)),)
56
+-include $(CPP_DEPS)
57
+endif
58
+endif
59
+
60
+-include ../makefile.defs
61
+
62
+# Add inputs and outputs from these tool invocations to the build variables 
63
+
64
+# All Target
65
+all: libems_app_machine_huizhou.so
66
+
67
+# Tool invocations
68
+libems_app_machine_huizhou.so: $(OBJS) $(USER_OBJS)
69
+	@echo 'Building target: $@'
70
+	@echo 'Invoking: Cross G++ Linker'
71
+	arm-linux-gnueabihf-g++ -shared -o "libems_app_machine_huizhou.so" $(OBJS) $(USER_OBJS) $(LIBS)
72
+	@echo 'Finished building target: $@'
73
+	@echo ' '
74
+
75
+# Other Targets
76
+clean:
77
+	-$(RM) $(LIBRARIES)$(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) libems_app_machine_huizhou.so
78
+	-@echo ' '
79
+
80
+.PHONY: all clean dependents
81
+
82
+-include ../makefile.targets

+ 30
- 0
Debug/models/devices/subdir.mk Voir le fichier

@@ -0,0 +1,30 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../models/devices/Common.cpp \
8
+../models/devices/Device.cpp \
9
+../models/devices/ES.cpp 
10
+
11
+OBJS += \
12
+./models/devices/Common.o \
13
+./models/devices/Device.o \
14
+./models/devices/ES.o 
15
+
16
+CPP_DEPS += \
17
+./models/devices/Common.d \
18
+./models/devices/Device.d \
19
+./models/devices/ES.d 
20
+
21
+
22
+# Each subdirectory must supply rules for building sources it contributes
23
+models/devices/%.o: ../models/devices/%.cpp
24
+	@echo 'Building file: $<'
25
+	@echo 'Invoking: Cross G++ Compiler'
26
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
27
+	@echo 'Finished building: $<'
28
+	@echo ' '
29
+
30
+

+ 24
- 0
Debug/models/sys/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../models/sys/System.cpp 
8
+
9
+OBJS += \
10
+./models/sys/System.o 
11
+
12
+CPP_DEPS += \
13
+./models/sys/System.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+models/sys/%.o: ../models/sys/%.cpp
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 8
- 0
Debug/objects.mk Voir le fichier

@@ -0,0 +1,8 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+USER_OBJS :=
6
+
7
+LIBS := -ldl
8
+

+ 24
- 0
Debug/services/impl/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../services/impl/EmsAppImpl.cpp 
8
+
9
+OBJS += \
10
+./services/impl/EmsAppImpl.o 
11
+
12
+CPP_DEPS += \
13
+./services/impl/EmsAppImpl.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+services/impl/%.o: ../services/impl/%.cpp
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 51
- 0
Debug/sources.mk Voir le fichier

@@ -0,0 +1,51 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+C_UPPER_SRCS := 
6
+CXX_SRCS := 
7
+C++_SRCS := 
8
+OBJ_SRCS := 
9
+CC_SRCS := 
10
+ASM_SRCS := 
11
+C_SRCS := 
12
+CPP_SRCS := 
13
+O_SRCS := 
14
+S_UPPER_SRCS := 
15
+LIBRARIES := 
16
+CC_DEPS := 
17
+C++_DEPS := 
18
+OBJS := 
19
+C_UPPER_DEPS := 
20
+CXX_DEPS := 
21
+C_DEPS := 
22
+CPP_DEPS := 
23
+
24
+# Every subdirectory with source files must be described here
25
+SUBDIRS := \
26
+common \
27
+ems_app_para_calcu/Release/common \
28
+ems_app_para_calcu/Release/models/devices \
29
+ems_app_para_calcu/Release/models/sys \
30
+ems_app_para_calcu/Release/services/impl \
31
+ems_app_para_calcu/Release/utils \
32
+ems_app_para_calcu/Release/utils/easylogger/plugins/file \
33
+ems_app_para_calcu/Release/utils/easylogger/port \
34
+ems_app_para_calcu/Release/utils/easylogger/src \
35
+ems_app_para_calcu/common \
36
+ems_app_para_calcu/models/devices \
37
+ems_app_para_calcu/models/sys \
38
+ems_app_para_calcu/services/impl \
39
+ems_app_para_calcu/utils \
40
+ems_app_para_calcu/utils/easylogger/plugins/file \
41
+ems_app_para_calcu/utils/easylogger/port \
42
+ems_app_para_calcu/utils/easylogger/src \
43
+ems_app_para_calcu/utils/iLOG \
44
+models/devices \
45
+models/sys \
46
+services/impl \
47
+utils \
48
+utils/easylogger/plugins/file \
49
+utils/easylogger/port \
50
+utils/easylogger/src \
51
+

+ 27
- 0
Debug/utils/easylogger/plugins/file/subdir.mk Voir le fichier

@@ -0,0 +1,27 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../utils/easylogger/plugins/file/elog_file.c \
8
+../utils/easylogger/plugins/file/elog_file_port.c 
9
+
10
+OBJS += \
11
+./utils/easylogger/plugins/file/elog_file.o \
12
+./utils/easylogger/plugins/file/elog_file_port.o 
13
+
14
+C_DEPS += \
15
+./utils/easylogger/plugins/file/elog_file.d \
16
+./utils/easylogger/plugins/file/elog_file_port.d 
17
+
18
+
19
+# Each subdirectory must supply rules for building sources it contributes
20
+utils/easylogger/plugins/file/%.o: ../utils/easylogger/plugins/file/%.c
21
+	@echo 'Building file: $<'
22
+	@echo 'Invoking: Cross GCC Compiler'
23
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
24
+	@echo 'Finished building: $<'
25
+	@echo ' '
26
+
27
+

+ 24
- 0
Debug/utils/easylogger/port/subdir.mk Voir le fichier

@@ -0,0 +1,24 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../utils/easylogger/port/elog_port.c 
8
+
9
+OBJS += \
10
+./utils/easylogger/port/elog_port.o 
11
+
12
+C_DEPS += \
13
+./utils/easylogger/port/elog_port.d 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+utils/easylogger/port/%.o: ../utils/easylogger/port/%.c
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross GCC Compiler'
20
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+

+ 33
- 0
Debug/utils/easylogger/src/subdir.mk Voir le fichier

@@ -0,0 +1,33 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../utils/easylogger/src/elog.c \
8
+../utils/easylogger/src/elog_async.c \
9
+../utils/easylogger/src/elog_buf.c \
10
+../utils/easylogger/src/elog_utils.c 
11
+
12
+OBJS += \
13
+./utils/easylogger/src/elog.o \
14
+./utils/easylogger/src/elog_async.o \
15
+./utils/easylogger/src/elog_buf.o \
16
+./utils/easylogger/src/elog_utils.o 
17
+
18
+C_DEPS += \
19
+./utils/easylogger/src/elog.d \
20
+./utils/easylogger/src/elog_async.d \
21
+./utils/easylogger/src/elog_buf.d \
22
+./utils/easylogger/src/elog_utils.d 
23
+
24
+
25
+# Each subdirectory must supply rules for building sources it contributes
26
+utils/easylogger/src/%.o: ../utils/easylogger/src/%.c
27
+	@echo 'Building file: $<'
28
+	@echo 'Invoking: Cross GCC Compiler'
29
+	arm-linux-gnueabihf-gcc -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
30
+	@echo 'Finished building: $<'
31
+	@echo ' '
32
+
33
+

+ 27
- 0
Debug/utils/subdir.mk Voir le fichier

@@ -0,0 +1,27 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../utils/DataBase.cpp \
8
+../utils/Util.cpp 
9
+
10
+OBJS += \
11
+./utils/DataBase.o \
12
+./utils/Util.o 
13
+
14
+CPP_DEPS += \
15
+./utils/DataBase.d \
16
+./utils/Util.d 
17
+
18
+
19
+# Each subdirectory must supply rules for building sources it contributes
20
+utils/%.o: ../utils/%.cpp
21
+	@echo 'Building file: $<'
22
+	@echo 'Invoking: Cross G++ Compiler'
23
+	arm-linux-gnueabihf-g++ -std=c++0x -O0 -g3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
24
+	@echo 'Finished building: $<'
25
+	@echo ' '
26
+
27
+

+ 9
- 0
Release/common/GUID.d Voir le fichier

@@ -0,0 +1,9 @@
1
+common/GUID.o: ../common/GUID.cpp ../common/Type.h \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h
4
+
5
+../common/Type.h:
6
+
7
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
8
+
9
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:

BIN
Release/common/GUID.o Voir le fichier


+ 31
- 0
Release/common/subdir.mk Voir le fichier

@@ -0,0 +1,31 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../common/GUID.cpp 
8
+
9
+CPP_DEPS += \
10
+./common/GUID.d 
11
+
12
+OBJS += \
13
+./common/GUID.o 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+common/%.o: ../common/%.cpp common/subdir.mk
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+
25
+clean: clean-common
26
+
27
+clean-common:
28
+	-$(RM) ./common/GUID.d ./common/GUID.o
29
+
30
+.PHONY: clean-common
31
+

BIN
Release/libems_app_anti_backflow.so Voir le fichier


BIN
Release/libems_app_power_plan.so Voir le fichier


+ 85
- 0
Release/makefile Voir le fichier

@@ -0,0 +1,85 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+-include ../makefile.init
6
+
7
+RM := rm -rf
8
+
9
+# All of the sources participating in the build are defined here
10
+-include sources.mk
11
+-include utils/easylogger/src/subdir.mk
12
+-include utils/easylogger/port/subdir.mk
13
+-include utils/easylogger/plugins/file/subdir.mk
14
+-include utils/subdir.mk
15
+-include services/impl/subdir.mk
16
+-include models/sys/subdir.mk
17
+-include models/devices/subdir.mk
18
+-include common/subdir.mk
19
+ifneq ($(MAKECMDGOALS),clean)
20
+ifneq ($(strip $(C++M_DEPS)),)
21
+-include $(C++M_DEPS)
22
+endif
23
+ifneq ($(strip $(C++_DEPS)),)
24
+-include $(C++_DEPS)
25
+endif
26
+ifneq ($(strip $(CCM_DEPS)),)
27
+-include $(CCM_DEPS)
28
+endif
29
+ifneq ($(strip $(CC_DEPS)),)
30
+-include $(CC_DEPS)
31
+endif
32
+ifneq ($(strip $(CPP_DEPS)),)
33
+-include $(CPP_DEPS)
34
+endif
35
+ifneq ($(strip $(CXXM_DEPS)),)
36
+-include $(CXXM_DEPS)
37
+endif
38
+ifneq ($(strip $(CXX_DEPS)),)
39
+-include $(CXX_DEPS)
40
+endif
41
+ifneq ($(strip $(C_DEPS)),)
42
+-include $(C_DEPS)
43
+endif
44
+ifneq ($(strip $(C_UPPER_DEPS)),)
45
+-include $(C_UPPER_DEPS)
46
+endif
47
+endif
48
+
49
+-include ../makefile.defs
50
+
51
+OPTIONAL_TOOL_DEPS := \
52
+$(wildcard ../makefile.defs) \
53
+$(wildcard ../makefile.init) \
54
+$(wildcard ../makefile.targets) \
55
+
56
+
57
+BUILD_ARTIFACT_NAME := ems_app_power_plan
58
+BUILD_ARTIFACT_EXTENSION := so
59
+BUILD_ARTIFACT_PREFIX := lib
60
+BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
61
+
62
+# Add inputs and outputs from these tool invocations to the build variables 
63
+
64
+# All Target
65
+all: main-build
66
+
67
+# Main-build Target
68
+main-build: libems_app_power_plan.so
69
+
70
+# Tool invocations
71
+libems_app_power_plan.so: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
72
+	@echo 'Building target: $@'
73
+	@echo 'Invoking: Cross G++ Linker'
74
+	arm-linux-gnueabihf-g++ -shared -o "libems_app_power_plan.so" $(OBJS) $(USER_OBJS) $(LIBS) -ldl
75
+	@echo 'Finished building target: $@'
76
+	@echo ' '
77
+
78
+# Other Targets
79
+clean:
80
+	-$(RM) libems_app_power_plan.so
81
+	-@echo ' '
82
+
83
+.PHONY: all clean dependents main-build
84
+
85
+-include ../makefile.targets

+ 4
- 0
Release/models/devices/Common.d Voir le fichier

@@ -0,0 +1,4 @@
1
+models/devices/Common.o: ../models/devices/Common.cpp \
2
+ ../models/devices/Common.h
3
+
4
+../models/devices/Common.h:

BIN
Release/models/devices/Common.o Voir le fichier


+ 23
- 0
Release/models/devices/Device.d Voir le fichier

@@ -0,0 +1,23 @@
1
+models/devices/Device.o: ../models/devices/Device.cpp \
2
+ ../models/devices/Device.h ../models/devices/../../common/Type.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
5
+ ../models/devices/Common.h ../models/devices/OperateDevice.h \
6
+ ../models/devices/../../utils/Util.h \
7
+ ../models/devices/../../utils/../common/Type.h
8
+
9
+../models/devices/Device.h:
10
+
11
+../models/devices/../../common/Type.h:
12
+
13
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
14
+
15
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
16
+
17
+../models/devices/Common.h:
18
+
19
+../models/devices/OperateDevice.h:
20
+
21
+../models/devices/../../utils/Util.h:
22
+
23
+../models/devices/../../utils/../common/Type.h:

BIN
Release/models/devices/Device.o Voir le fichier


+ 25
- 0
Release/models/devices/ES.d Voir le fichier

@@ -0,0 +1,25 @@
1
+models/devices/ES.o: ../models/devices/ES.cpp ../models/devices/ES.h \
2
+ ../models/devices/Device.h ../models/devices/../../common/Type.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
5
+ ../models/devices/Common.h ../models/devices/OperateDevice.h \
6
+ ../models/devices/../../utils/Util.h \
7
+ ../models/devices/../../utils/../common/Type.h
8
+
9
+../models/devices/ES.h:
10
+
11
+../models/devices/Device.h:
12
+
13
+../models/devices/../../common/Type.h:
14
+
15
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
16
+
17
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
18
+
19
+../models/devices/Common.h:
20
+
21
+../models/devices/OperateDevice.h:
22
+
23
+../models/devices/../../utils/Util.h:
24
+
25
+../models/devices/../../utils/../common/Type.h:

BIN
Release/models/devices/ES.o Voir le fichier


+ 37
- 0
Release/models/devices/subdir.mk Voir le fichier

@@ -0,0 +1,37 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../models/devices/Common.cpp \
8
+../models/devices/Device.cpp \
9
+../models/devices/ES.cpp 
10
+
11
+CPP_DEPS += \
12
+./models/devices/Common.d \
13
+./models/devices/Device.d \
14
+./models/devices/ES.d 
15
+
16
+OBJS += \
17
+./models/devices/Common.o \
18
+./models/devices/Device.o \
19
+./models/devices/ES.o 
20
+
21
+
22
+# Each subdirectory must supply rules for building sources it contributes
23
+models/devices/%.o: ../models/devices/%.cpp models/devices/subdir.mk
24
+	@echo 'Building file: $<'
25
+	@echo 'Invoking: Cross G++ Compiler'
26
+	arm-linux-gnueabihf-g++ -std=c++0x -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
27
+	@echo 'Finished building: $<'
28
+	@echo ' '
29
+
30
+
31
+clean: clean-models-2f-devices
32
+
33
+clean-models-2f-devices:
34
+	-$(RM) ./models/devices/Common.d ./models/devices/Common.o ./models/devices/Device.d ./models/devices/Device.o ./models/devices/ES.d ./models/devices/ES.o
35
+
36
+.PHONY: clean-models-2f-devices
37
+

+ 26
- 0
Release/models/sys/System.d Voir le fichier

@@ -0,0 +1,26 @@
1
+models/sys/System.o: ../models/sys/System.cpp ../models/sys/System.h \
2
+ ../models/sys/../../common/Type.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
5
+ ../models/sys/../../utils/DataBase.h \
6
+ ../models/sys/../../utils/../common/Type.h \
7
+ ../models/sys/../../utils/easylogger/inc/elog.h \
8
+ ../models/sys/../../utils/Util.h ../models/sys/../devices/Common.h
9
+
10
+../models/sys/System.h:
11
+
12
+../models/sys/../../common/Type.h:
13
+
14
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
15
+
16
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
17
+
18
+../models/sys/../../utils/DataBase.h:
19
+
20
+../models/sys/../../utils/../common/Type.h:
21
+
22
+../models/sys/../../utils/easylogger/inc/elog.h:
23
+
24
+../models/sys/../../utils/Util.h:
25
+
26
+../models/sys/../devices/Common.h:

BIN
Release/models/sys/System.o Voir le fichier


+ 31
- 0
Release/models/sys/subdir.mk Voir le fichier

@@ -0,0 +1,31 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../models/sys/System.cpp 
8
+
9
+CPP_DEPS += \
10
+./models/sys/System.d 
11
+
12
+OBJS += \
13
+./models/sys/System.o 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+models/sys/%.o: ../models/sys/%.cpp models/sys/subdir.mk
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+
25
+clean: clean-models-2f-sys
26
+
27
+clean-models-2f-sys:
28
+	-$(RM) ./models/sys/System.d ./models/sys/System.o
29
+
30
+.PHONY: clean-models-2f-sys
31
+

+ 8
- 0
Release/objects.mk Voir le fichier

@@ -0,0 +1,8 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+USER_OBJS :=
6
+
7
+LIBS := -ldl
8
+

+ 47
- 0
Release/services/impl/EmsAppImpl.d Voir le fichier

@@ -0,0 +1,47 @@
1
+services/impl/EmsAppImpl.o: ../services/impl/EmsAppImpl.cpp \
2
+ ../services/impl/EmsAppImpl.h ../services/impl/../../common/Type.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
5
+ ../services/impl/../../models/devices/Common.h \
6
+ ../services/impl/../EmsAppI.h ../services/impl/../../common/IUnknown.h \
7
+ ../services/impl/../../common/Type.h \
8
+ ../services/impl/../../common/Type.h \
9
+ ../services/impl/../../externservices/EmsCoreI.h \
10
+ ../services/impl/../../externservices/../common/Type.h \
11
+ ../services/impl/../../common/GUID.cpp \
12
+ ../services/impl/../../models/sys/System.h \
13
+ ../services/impl/../../models/sys/../../common/Type.h \
14
+ ../services/impl/../../models/sys/../../utils/DataBase.h \
15
+ ../services/impl/../../models/sys/../../utils/../common/Type.h
16
+
17
+../services/impl/EmsAppImpl.h:
18
+
19
+../services/impl/../../common/Type.h:
20
+
21
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
22
+
23
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
24
+
25
+../services/impl/../../models/devices/Common.h:
26
+
27
+../services/impl/../EmsAppI.h:
28
+
29
+../services/impl/../../common/IUnknown.h:
30
+
31
+../services/impl/../../common/Type.h:
32
+
33
+../services/impl/../../common/Type.h:
34
+
35
+../services/impl/../../externservices/EmsCoreI.h:
36
+
37
+../services/impl/../../externservices/../common/Type.h:
38
+
39
+../services/impl/../../common/GUID.cpp:
40
+
41
+../services/impl/../../models/sys/System.h:
42
+
43
+../services/impl/../../models/sys/../../common/Type.h:
44
+
45
+../services/impl/../../models/sys/../../utils/DataBase.h:
46
+
47
+../services/impl/../../models/sys/../../utils/../common/Type.h:

BIN
Release/services/impl/EmsAppImpl.o Voir le fichier


+ 31
- 0
Release/services/impl/subdir.mk Voir le fichier

@@ -0,0 +1,31 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../services/impl/EmsAppImpl.cpp 
8
+
9
+CPP_DEPS += \
10
+./services/impl/EmsAppImpl.d 
11
+
12
+OBJS += \
13
+./services/impl/EmsAppImpl.o 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+services/impl/%.o: ../services/impl/%.cpp services/impl/subdir.mk
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross G++ Compiler'
20
+	arm-linux-gnueabihf-g++ -std=c++0x -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+
25
+clean: clean-services-2f-impl
26
+
27
+clean-services-2f-impl:
28
+	-$(RM) ./services/impl/EmsAppImpl.d ./services/impl/EmsAppImpl.o
29
+
30
+.PHONY: clean-services-2f-impl
31
+

+ 41
- 0
Release/sources.mk Voir le fichier

@@ -0,0 +1,41 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+ASM_SRCS := 
6
+C++M_SRCS := 
7
+C++_SRCS := 
8
+CCM_SRCS := 
9
+CC_SRCS := 
10
+CPP_SRCS := 
11
+CXXM_SRCS := 
12
+CXX_SRCS := 
13
+C_SRCS := 
14
+C_UPPER_SRCS := 
15
+OBJ_SRCS := 
16
+O_SRCS := 
17
+SX_SRCS := 
18
+S_UPPER_SRCS := 
19
+C++M_DEPS := 
20
+C++_DEPS := 
21
+CCM_DEPS := 
22
+CC_DEPS := 
23
+CPP_DEPS := 
24
+CXXM_DEPS := 
25
+CXX_DEPS := 
26
+C_DEPS := 
27
+C_UPPER_DEPS := 
28
+LIBRARIES := 
29
+OBJS := 
30
+
31
+# Every subdirectory with source files must be described here
32
+SUBDIRS := \
33
+common \
34
+models/devices \
35
+models/sys \
36
+services/impl \
37
+utils \
38
+utils/easylogger/plugins/file \
39
+utils/easylogger/port \
40
+utils/easylogger/src \
41
+

+ 15
- 0
Release/utils/DataBase.d Voir le fichier

@@ -0,0 +1,15 @@
1
+utils/DataBase.o: ../utils/DataBase.cpp ../utils/DataBase.h \
2
+ ../utils/../common/Type.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
5
+ ../utils/../common/type.h
6
+
7
+../utils/DataBase.h:
8
+
9
+../utils/../common/Type.h:
10
+
11
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
12
+
13
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
14
+
15
+../utils/../common/type.h:

BIN
Release/utils/DataBase.o Voir le fichier


+ 38
- 0
Release/utils/Util.d Voir le fichier

@@ -0,0 +1,38 @@
1
+utils/Util.o: ../utils/Util.cpp ../utils/Util.h ../utils/../common/Type.h \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
4
+ ../utils/../services/impl/EmsAppImpl.h \
5
+ ../utils/../services/impl/../../common/Type.h \
6
+ ../utils/../services/impl/../../models/devices/Common.h \
7
+ ../utils/../services/impl/../EmsAppI.h \
8
+ ../utils/../services/impl/../../common/IUnknown.h \
9
+ ../utils/../services/impl/../../common/Type.h \
10
+ ../utils/../services/impl/../../common/Type.h \
11
+ ../utils/../services/impl/../../externservices/EmsCoreI.h \
12
+ ../utils/../services/impl/../../externservices/../common/Type.h
13
+
14
+../utils/Util.h:
15
+
16
+../utils/../common/Type.h:
17
+
18
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
19
+
20
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
21
+
22
+../utils/../services/impl/EmsAppImpl.h:
23
+
24
+../utils/../services/impl/../../common/Type.h:
25
+
26
+../utils/../services/impl/../../models/devices/Common.h:
27
+
28
+../utils/../services/impl/../EmsAppI.h:
29
+
30
+../utils/../services/impl/../../common/IUnknown.h:
31
+
32
+../utils/../services/impl/../../common/Type.h:
33
+
34
+../utils/../services/impl/../../common/Type.h:
35
+
36
+../utils/../services/impl/../../externservices/EmsCoreI.h:
37
+
38
+../utils/../services/impl/../../externservices/../common/Type.h:

BIN
Release/utils/Util.o Voir le fichier


+ 14
- 0
Release/utils/easylogger/plugins/file/elog_file.d Voir le fichier

@@ -0,0 +1,14 @@
1
+utils/easylogger/plugins/file/elog_file.o: \
2
+ ../utils/easylogger/plugins/file/elog_file.c \
3
+ ../utils/easylogger/plugins/file/elog_file.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
5
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
6
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file_cfg.h
7
+
8
+../utils/easylogger/plugins/file/elog_file.h:
9
+
10
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
11
+
12
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
13
+
14
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file_cfg.h:

BIN
Release/utils/easylogger/plugins/file/elog_file.o Voir le fichier


+ 14
- 0
Release/utils/easylogger/plugins/file/elog_file_port.d Voir le fichier

@@ -0,0 +1,14 @@
1
+utils/easylogger/plugins/file/elog_file_port.o: \
2
+ ../utils/easylogger/plugins/file/elog_file_port.c \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
5
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
6
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file_cfg.h
7
+
8
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file.h:
9
+
10
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
11
+
12
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
13
+
14
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file_cfg.h:

BIN
Release/utils/easylogger/plugins/file/elog_file_port.o Voir le fichier


+ 34
- 0
Release/utils/easylogger/plugins/file/subdir.mk Voir le fichier

@@ -0,0 +1,34 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../utils/easylogger/plugins/file/elog_file.c \
8
+../utils/easylogger/plugins/file/elog_file_port.c 
9
+
10
+C_DEPS += \
11
+./utils/easylogger/plugins/file/elog_file.d \
12
+./utils/easylogger/plugins/file/elog_file_port.d 
13
+
14
+OBJS += \
15
+./utils/easylogger/plugins/file/elog_file.o \
16
+./utils/easylogger/plugins/file/elog_file_port.o 
17
+
18
+
19
+# Each subdirectory must supply rules for building sources it contributes
20
+utils/easylogger/plugins/file/%.o: ../utils/easylogger/plugins/file/%.c utils/easylogger/plugins/file/subdir.mk
21
+	@echo 'Building file: $<'
22
+	@echo 'Invoking: Cross GCC Compiler'
23
+	arm-linux-gnueabihf-gcc -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
24
+	@echo 'Finished building: $<'
25
+	@echo ' '
26
+
27
+
28
+clean: clean-utils-2f-easylogger-2f-plugins-2f-file
29
+
30
+clean-utils-2f-easylogger-2f-plugins-2f-file:
31
+	-$(RM) ./utils/easylogger/plugins/file/elog_file.d ./utils/easylogger/plugins/file/elog_file.o ./utils/easylogger/plugins/file/elog_file_port.d ./utils/easylogger/plugins/file/elog_file_port.o
32
+
33
+.PHONY: clean-utils-2f-easylogger-2f-plugins-2f-file
34
+

+ 13
- 0
Release/utils/easylogger/port/elog_port.d Voir le fichier

@@ -0,0 +1,13 @@
1
+utils/easylogger/port/elog_port.o: ../utils/easylogger/port/elog_port.c \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h \
4
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file.h \
5
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file_cfg.h
6
+
7
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
8
+
9
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:
10
+
11
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file.h:
12
+
13
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file/elog_file_cfg.h:

BIN
Release/utils/easylogger/port/elog_port.o Voir le fichier


+ 31
- 0
Release/utils/easylogger/port/subdir.mk Voir le fichier

@@ -0,0 +1,31 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../utils/easylogger/port/elog_port.c 
8
+
9
+C_DEPS += \
10
+./utils/easylogger/port/elog_port.d 
11
+
12
+OBJS += \
13
+./utils/easylogger/port/elog_port.o 
14
+
15
+
16
+# Each subdirectory must supply rules for building sources it contributes
17
+utils/easylogger/port/%.o: ../utils/easylogger/port/%.c utils/easylogger/port/subdir.mk
18
+	@echo 'Building file: $<'
19
+	@echo 'Invoking: Cross GCC Compiler'
20
+	arm-linux-gnueabihf-gcc -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
21
+	@echo 'Finished building: $<'
22
+	@echo ' '
23
+
24
+
25
+clean: clean-utils-2f-easylogger-2f-port
26
+
27
+clean-utils-2f-easylogger-2f-port:
28
+	-$(RM) ./utils/easylogger/port/elog_port.d ./utils/easylogger/port/elog_port.o
29
+
30
+.PHONY: clean-utils-2f-easylogger-2f-port
31
+

+ 7
- 0
Release/utils/easylogger/src/elog.d Voir le fichier

@@ -0,0 +1,7 @@
1
+utils/easylogger/src/elog.o: ../utils/easylogger/src/elog.c \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h
4
+
5
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
6
+
7
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:

BIN
Release/utils/easylogger/src/elog.o Voir le fichier


+ 7
- 0
Release/utils/easylogger/src/elog_async.d Voir le fichier

@@ -0,0 +1,7 @@
1
+utils/easylogger/src/elog_async.o: ../utils/easylogger/src/elog_async.c \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h
4
+
5
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
6
+
7
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:

BIN
Release/utils/easylogger/src/elog_async.o Voir le fichier


+ 7
- 0
Release/utils/easylogger/src/elog_buf.d Voir le fichier

@@ -0,0 +1,7 @@
1
+utils/easylogger/src/elog_buf.o: ../utils/easylogger/src/elog_buf.c \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h
4
+
5
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
6
+
7
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:

BIN
Release/utils/easylogger/src/elog_buf.o Voir le fichier


+ 7
- 0
Release/utils/easylogger/src/elog_utils.d Voir le fichier

@@ -0,0 +1,7 @@
1
+utils/easylogger/src/elog_utils.o: ../utils/easylogger/src/elog_utils.c \
2
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h \
3
+ E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h
4
+
5
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog.h:
6
+
7
+E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc/elog_cfg.h:

BIN
Release/utils/easylogger/src/elog_utils.o Voir le fichier


+ 40
- 0
Release/utils/easylogger/src/subdir.mk Voir le fichier

@@ -0,0 +1,40 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+C_SRCS += \
7
+../utils/easylogger/src/elog.c \
8
+../utils/easylogger/src/elog_async.c \
9
+../utils/easylogger/src/elog_buf.c \
10
+../utils/easylogger/src/elog_utils.c 
11
+
12
+C_DEPS += \
13
+./utils/easylogger/src/elog.d \
14
+./utils/easylogger/src/elog_async.d \
15
+./utils/easylogger/src/elog_buf.d \
16
+./utils/easylogger/src/elog_utils.d 
17
+
18
+OBJS += \
19
+./utils/easylogger/src/elog.o \
20
+./utils/easylogger/src/elog_async.o \
21
+./utils/easylogger/src/elog_buf.o \
22
+./utils/easylogger/src/elog_utils.o 
23
+
24
+
25
+# Each subdirectory must supply rules for building sources it contributes
26
+utils/easylogger/src/%.o: ../utils/easylogger/src/%.c utils/easylogger/src/subdir.mk
27
+	@echo 'Building file: $<'
28
+	@echo 'Invoking: Cross GCC Compiler'
29
+	arm-linux-gnueabihf-gcc -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
30
+	@echo 'Finished building: $<'
31
+	@echo ' '
32
+
33
+
34
+clean: clean-utils-2f-easylogger-2f-src
35
+
36
+clean-utils-2f-easylogger-2f-src:
37
+	-$(RM) ./utils/easylogger/src/elog.d ./utils/easylogger/src/elog.o ./utils/easylogger/src/elog_async.d ./utils/easylogger/src/elog_async.o ./utils/easylogger/src/elog_buf.d ./utils/easylogger/src/elog_buf.o ./utils/easylogger/src/elog_utils.d ./utils/easylogger/src/elog_utils.o
38
+
39
+.PHONY: clean-utils-2f-easylogger-2f-src
40
+

+ 34
- 0
Release/utils/subdir.mk Voir le fichier

@@ -0,0 +1,34 @@
1
+################################################################################
2
+# Automatically-generated file. Do not edit!
3
+################################################################################
4
+
5
+# Add inputs and outputs from these tool invocations to the build variables 
6
+CPP_SRCS += \
7
+../utils/DataBase.cpp \
8
+../utils/Util.cpp 
9
+
10
+CPP_DEPS += \
11
+./utils/DataBase.d \
12
+./utils/Util.d 
13
+
14
+OBJS += \
15
+./utils/DataBase.o \
16
+./utils/Util.o 
17
+
18
+
19
+# Each subdirectory must supply rules for building sources it contributes
20
+utils/%.o: ../utils/%.cpp utils/subdir.mk
21
+	@echo 'Building file: $<'
22
+	@echo 'Invoking: Cross G++ Compiler'
23
+	arm-linux-gnueabihf-g++ -std=c++0x -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\inc" -I"E:\30-gongShangYe\src\ems_app_power_plan\utils\easylogger\plugins\file" -O3 -Wall -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
24
+	@echo 'Finished building: $<'
25
+	@echo ' '
26
+
27
+
28
+clean: clean-utils
29
+
30
+clean-utils:
31
+	-$(RM) ./utils/DataBase.d ./utils/DataBase.o ./utils/Util.d ./utils/Util.o
32
+
33
+.PHONY: clean-utils
34
+

+ 22
- 0
common/GUID.cpp Voir le fichier

@@ -0,0 +1,22 @@
1
+/**
2
+ * @content:GUID�����ļ�
3
+ * @time:2016-8-23
4
+ * @author:Mr_zhu
5
+ * @version: V1.0
6
+ * @describe:
7
+ * 1#2016-8-23#V1.0#�״�����
8
+ */
9
+
10
+#include "Type.h"
11
+
12
+#ifdef __cplusplus
13
+extern "C" {
14
+#endif
15
+const IID IID_IUnknown = { 0x80dd3240, 0x3797, 0x40a2, { 0x82, 0xdd, 0xad, 0xf5,
16
+		0x19, 0x66, 0xf7, 0xa7 } };
17
+const IID IID_IEmsApp = { 0x6b15bc39, 0x615a, 0x4fbd, { 0xbe, 0x14, 0xd8, 0x4a,
18
+		0xa0, 0x16, 0xb6, 0x75 } };
19
+
20
+#ifdef __cplusplus
21
+}
22
+#endif

+ 25
- 0
common/IFace.h Voir le fichier

@@ -0,0 +1,25 @@
1
+/**
2
+ * @content:组件标识符定义头文件
3
+ * @time:2016-10-6
4
+ * @author:Mr_zhu
5
+ * @version: V1.0
6
+ * @describe:
7
+ * 1#2016-10-6#V1.0#首次生成
8
+ */
9
+
10
+#ifndef INCLUDE_IFACE_H_
11
+#define INCLUDE_IFACE_H_
12
+
13
+#include "Type.h"
14
+
15
+#ifdef __cplusplus
16
+extern "C"
17
+{
18
+#endif
19
+extern const IID IID_IUnknown;
20
+extern const IID IID_IEmsApp;
21
+#ifdef __cplusplus
22
+}
23
+#endif
24
+
25
+#endif /* INCLUDE_IFACE_H_ */

+ 24
- 0
common/IUnknown.h Voir le fichier

@@ -0,0 +1,24 @@
1
+/**
2
+ * @content:IUnknown接口定义头文件
3
+ * @time:2016-8-23
4
+ * @author:Mr_zhu
5
+ * @version: V1.0
6
+ * @describe:
7
+ * 1#2016-8-23#V1.0#首次生成
8
+ */
9
+
10
+#ifndef INCLUDE_IUNKNOWN_H_
11
+#define INCLUDE_IUNKNOWN_H_
12
+
13
+#include "Type.h"
14
+
15
+interface IUnknown{
16
+	virtual HRESULT queryInterface(const IID& iid, void** ppv) = 0;	//----查询接口
17
+	virtual ULONG addRef() = 0;	//----增加引用计数
18
+	virtual ULONG release() = 0;	//----释放接口
19
+	virtual ULONG getVersion() = 0;	//----获取组件版本
20
+
21
+	virtual ~IUnknown(){};
22
+};
23
+
24
+#endif /* INCLUDE_IUNKNOWN_H_ */

+ 429
- 0
common/Type.h Voir le fichier

@@ -0,0 +1,429 @@
1
+/**
2
+ * @content:鍩烘湰绫诲瀷瀹氫箟
3
+ * @time:2016-8-23
4
+ * @author:Mr_zhu
5
+ * @version: V1.0
6
+ * @describe:
7
+ * 1#2016-8-23#V1.0#棣栨鐢熸垚
8
+ */
9
+
10
+#ifndef TYPE_H
11
+#define TYPE_H
12
+
13
+#define LOG_TAG    "deecs_ems_app_init"
14
+
15
+#include <elog.h>
16
+
17
+#include <errno.h>
18
+#include <math.h>
19
+#include <sys/select.h>
20
+#include <sys/time.h>
21
+#include <cstdio>
22
+#include <ctime>
23
+#include <iostream>
24
+#include <iterator>
25
+#include <string>
26
+#include <vector>
27
+
28
+#include <iostream>
29
+#include <string>
30
+#include <errno.h>
31
+#include <fcntl.h>
32
+#include <sys/types.h>
33
+#include <sys/socket.h>
34
+#include <netinet/in.h>
35
+#include <netdb.h>
36
+#include <unistd.h>
37
+#include <string>
38
+#include <arpa/inet.h>
39
+
40
+typedef long HRESULT;
41
+typedef unsigned long ULONG;
42
+
43
+typedef char BYTE;
44
+typedef char* PBYTE;
45
+
46
+class IUnknown;
47
+
48
+#ifndef NULL
49
+#define NULL 0
50
+#endif
51
+
52
+typedef struct _GUID
53
+{
54
+	unsigned int Data1;
55
+	unsigned short Data2;
56
+	unsigned short Data3;
57
+	unsigned char Data4[8];
58
+
59
+	std::string toString()
60
+	{
61
+		char t[256];
62
+		snprintf(t, 256, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", Data1, Data2, Data3, Data4[0], Data4[1], Data4[2], Data4[3], Data4[4], Data4[5],
63
+				Data4[6], Data4[7]);
64
+		return t;
65
+	}
66
+
67
+} GUID;
68
+
69
+typedef GUID IID;
70
+
71
+typedef std::string ProgID;
72
+
73
+#define interface struct
74
+#define CLSID IID	//----缁勪欢鏍囪瘑绗�
75
+#define OBJID IID	//----瀵硅薄鏍囪瘑绗�
76
+
77
+#define E_NOINTERFACE 0x80004002L
78
+#define S_OK 0
79
+#define S_FALSE 1
80
+#define S_TIMEOUT 2
81
+
82
+#define SUCCEEDED(x) ((x)==S_OK)
83
+#define TIMEOUT(x) ((x)==S_TIMEOUT)
84
+
85
+#define READ_O 0x00000001
86
+#define READ_WAIT 0x00000002
87
+#define READ_TIMEOUT 0x00000004
88
+#define WRITE_O 0x00000008
89
+#define WRITE_WAIT 0x00000010
90
+#define WRITE_TIMEOUT 0x00000020
91
+#define WRITE_FAIL 0x00000040
92
+
93
+#define HEX 16
94
+
95
+typedef IUnknown* (*CreateFuncPTR)();
96
+
97
+inline BYTE HByte(unsigned int x)
98
+{
99
+	return (((x) >> 8) & 0x00ff);
100
+}
101
+inline BYTE LByte(unsigned int x)
102
+{
103
+	return (((x)) & 0x00ff);
104
+}
105
+
106
+inline BYTE HHByte(unsigned int x)
107
+{
108
+	return (((x) >> 24) & 0x000000ff);
109
+}
110
+inline BYTE HLByte(unsigned int x)
111
+{
112
+	return (((x) >> 16) & 0x000000ff);
113
+}
114
+inline BYTE LHByte(unsigned int x)
115
+{
116
+	return (((x) >> 8) & 0x000000ff);
117
+}
118
+inline BYTE LLByte(unsigned int x)
119
+{
120
+	return (((x)) & 0x000000ff);
121
+}
122
+
123
+/**
124
+ * @content:灏哠tring杞负Hex
125
+ * @time:2016-10-1
126
+ * @author:Mr_zhu
127
+ * @param: std::string(寰呰浆瀛楃涓�)
128
+ * @return: unsigned int(杩斿洖鍊�)
129
+ * @decribe
130
+ * 1#2016-10-1#V1.0#棣栨鐢熸垚
131
+ */
132
+inline unsigned int hexstringtoInt(std::string str)
133
+{
134
+	unsigned int result = 0;
135
+	for (unsigned int i = 0; i < str.length(); i++)
136
+	{
137
+		if ((str.at(i) >= '0') && (str.at(i) <= '9'))
138
+		{
139
+			result += ((str.at(i) - 48) * pow(16, str.length() - 1 - i));
140
+		}
141
+		else if ((str.at(i) >= 'a') && (str.at(i) <= 'f'))
142
+		{
143
+			result += ((str.at(i) - 97 + 10) * pow(16, str.length() - 1 - i));
144
+		}
145
+	}
146
+	return result;
147
+}
148
+
149
+/**
150
+ * @content:灏哠tring杞负Hex
151
+ * @time:2016-10-1
152
+ * @author:Mr_zhu
153
+ * @param: std::string(寰呰浆瀛楃涓�)
154
+ * @return: unsigned short(杩斿洖鍊�)
155
+ * @decribe
156
+ * 1#2016-10-1#V1.0#棣栨鐢熸垚
157
+ */
158
+inline unsigned short hexstringtoShort(std::string str)
159
+{
160
+	unsigned short result = 0;
161
+	for (unsigned int i = 0; i < str.length(); i++)
162
+	{
163
+		if ((str.at(i) >= '0') && (str.at(i) <= '9'))
164
+		{
165
+			result += (str.at(i) - 48) * pow(16, str.length() - 1 - i);
166
+		}
167
+		if ((str.at(i) >= 'a') && (str.at(i) <= 'f'))
168
+		{
169
+			result += (str.at(i) - 97 + 10) * pow(16, str.length() - 1 - i);
170
+		}
171
+	}
172
+	return result;
173
+}
174
+
175
+/**
176
+ * @content:灏哠tring杞负Hex
177
+ * @time:2016-10-1
178
+ * @author:Mr_zhu
179
+ * @param: std::string(寰呰浆瀛楃涓�)
180
+ * @return: unsigned char(杩斿洖鍊�)
181
+ * @decribe
182
+ * 1#2016-10-1#V1.0#棣栨鐢熸垚
183
+ */
184
+inline unsigned char hexstringtoChar(std::string str)
185
+{
186
+	unsigned char result = 0;
187
+	for (unsigned int i = 0; i < str.length(); i++)
188
+	{
189
+		if ((str.at(i) >= '0') && (str.at(i) <= '9'))
190
+		{
191
+			result += (str.at(i) - 48) * pow(16, str.length() - 1 - i);
192
+		}
193
+		if ((str.at(i) >= 'a') && (str.at(i) <= 'f'))
194
+		{
195
+			result += (str.at(i) - 97 + 10) * pow(16, str.length() - 1 - i);
196
+		}
197
+	}
198
+	return result;
199
+}
200
+
201
+/**
202
+ * @content:灏哠tring杞负GUID
203
+ * @time:2016-10-1
204
+ * @author:Mr_zhu
205
+ * @param: std::string(寰呰浆瀛楃涓�)
206
+ * @return: GUID(杩斿洖鐨凣UID)
207
+ * @decribe
208
+ * 1#2016-10-1#V1.0#棣栨鐢熸垚
209
+ */
210
+inline GUID stringtoGUID(std::string str)
211
+{
212
+	GUID t_guid =
213
+	{ 0, 0, 0,
214
+	{ 0, 0, 0, 0, 0, 0, 0, 0 } };
215
+
216
+	if (!str.empty())
217
+	{
218
+		std::string t_str = str;
219
+		std::vector<std::string> t_vstr;
220
+//	int index = t_str.find('{');
221
+//	int index1 = t_str.find('}');
222
+		int index = 0;
223
+		int index1 = 0;
224
+		if ((index != -1) && (index1 != -1))
225
+		{
226
+			t_str = t_str.substr(0);
227
+			int index = t_str.find('-');
228
+
229
+			while (index != -1)
230
+			{
231
+				t_vstr.push_back(t_str.substr(0, index));
232
+				t_str = t_str.substr(index + 1);
233
+				index = t_str.find('-');
234
+				if (index == -1)
235
+				{
236
+					break;
237
+				}
238
+			}
239
+			t_vstr.push_back(t_str);
240
+		}
241
+		if (t_vstr.size() == 5)
242
+		{
243
+			t_guid.Data1 = hexstringtoInt(t_vstr.at(0));
244
+			t_guid.Data2 = hexstringtoShort(t_vstr.at(1));
245
+			t_guid.Data3 = hexstringtoShort(t_vstr.at(2));
246
+			t_guid.Data4[0] = hexstringtoChar(t_vstr.at(3).substr(0, 2));
247
+			t_guid.Data4[1] = hexstringtoChar(t_vstr.at(3).substr(2));
248
+			std::string sstr = t_vstr.at(4);
249
+			t_guid.Data4[2] = hexstringtoChar(sstr.substr(0, 2));
250
+			t_guid.Data4[3] = hexstringtoChar(sstr.substr(2, 2));
251
+			t_guid.Data4[4] = hexstringtoChar(sstr.substr(4, 2));
252
+			t_guid.Data4[5] = hexstringtoChar(sstr.substr(6, 2));
253
+			t_guid.Data4[6] = hexstringtoChar(sstr.substr(8, 2));
254
+			t_guid.Data4[7] = hexstringtoChar(sstr.substr(10, 2));
255
+		}
256
+	}
257
+	return t_guid;
258
+}
259
+
260
+/**
261
+ * @content: 姣旇緝涓や釜鏍囪瘑绗︽槸鍚︾浉绛�
262
+ * @time:2016-8-26
263
+ * @author:Mr_zhu
264
+ * @param: const IID&(寰呮瘮杈冩爣璇嗙1),const IID2&(寰呮瘮杈冩爣璇嗙2)
265
+ * @return: void
266
+ * @decribe
267
+ * 1#2016-8-26#V1.0#棣栨鐢熸垚
268
+ */
269
+inline bool operator==(const IID& guid1, const IID& guid2)
270
+{
271
+	if (guid1.Data1 != guid2.Data1)
272
+		return false;
273
+	if (guid1.Data2 != guid2.Data2)
274
+		return false;
275
+	if (guid1.Data3 != guid2.Data3)
276
+		return false;
277
+	for (int i = 0; i < 8; i++)
278
+	{
279
+		if (guid1.Data4[i] != guid2.Data4[i])
280
+			return false;
281
+	}
282
+	return true;
283
+}
284
+
285
+/**
286
+ * @content: 姣旇緝鏍囪瘑绗�1鏄惁灏忎簬鏍囪瘑绗�2
287
+ * @time:2016-8-26
288
+ * @author:Mr_zhu
289
+ * @param: const IID&(寰呮瘮杈冩爣璇嗙1),const IID2&(寰呮瘮杈冩爣璇嗙2)
290
+ * @return: void
291
+ * @decribe
292
+ * 1#2016-8-26#V1.0#棣栨鐢熸垚
293
+ */
294
+inline bool operator<(const IID& guid1, const IID& guid2)
295
+{
296
+	if (guid1.Data1 >= guid2.Data1)
297
+		return false;
298
+	if (guid1.Data2 >= guid2.Data2)
299
+		return false;
300
+	if (guid1.Data3 >= guid2.Data3)
301
+		return false;
302
+	for (int i = 0; i < 8; i++)
303
+	{
304
+		if (guid1.Data4[i] >= guid2.Data4[i])
305
+			return false;
306
+	}
307
+	return true;
308
+}
309
+
310
+inline bool isGUIDEqual(const IID& guid1, const IID& guid2)
311
+{
312
+	return ((guid1.Data1 == guid2.Data1) && (guid1.Data2 == guid2.Data2) && (guid1.Data3 == guid2.Data3) && (guid1.Data4[0] == guid2.Data4[0])
313
+			&& (guid1.Data4[1] == guid2.Data4[1]) && (guid1.Data4[2] == guid2.Data4[2]) && (guid1.Data4[3] == guid2.Data4[3])
314
+			&& (guid1.Data4[4] == guid2.Data4[4]) && (guid1.Data4[5] == guid2.Data4[5]) && (guid1.Data4[6] == guid2.Data4[6])
315
+			&& (guid1.Data4[7] == guid2.Data4[7]));
316
+}
317
+
318
+/**
319
+ * @content: 浠ョ粰瀹氱殑瀛楃鍒嗛殧杈撳叆瀛楃涓�
320
+ * @time:2016-9-8
321
+ * @author:Mr_zhu
322
+ * @param:
323
+ * @return:
324
+ * @decribe
325
+ * 1#2016-9-8#V1.0#棣栨鐢熸垚
326
+ */
327
+inline void getCharsFromString(std::string str, char ch, std::vector<std::string>& iter)
328
+{
329
+	std::string::size_type index = str.find(ch);
330
+	std::string t_str;
331
+
332
+	if (index != std::string::npos)
333
+	{
334
+		while (1)
335
+		{
336
+			if (index <= str.length() && index >= 0)
337
+			{
338
+				t_str = str.substr(0, index);
339
+				iter.push_back(t_str);
340
+
341
+				str = str.substr(index + 1);
342
+				index = str.find(ch);
343
+				if (index == std::string::npos)
344
+				{
345
+					iter.push_back(str);
346
+					break;
347
+				}
348
+			}
349
+			else
350
+			{
351
+				break;
352
+			}
353
+
354
+		}
355
+	}
356
+	else
357
+	{
358
+		iter.push_back(str);
359
+	}
360
+}
361
+
362
+inline void secondsSleep(unsigned int seconds)
363
+{
364
+	struct timeval tv;
365
+	tv.tv_sec = seconds;
366
+	tv.tv_usec = 0;
367
+	int err;
368
+	do
369
+	{
370
+		err = select(0, NULL, NULL, NULL, &tv);
371
+	} while (err < 0 && errno == EINTR);
372
+}
373
+
374
+inline void milisecondsSleep(unsigned int mSeconds)
375
+{
376
+	struct timeval tv;
377
+	tv.tv_sec = mSeconds / 1000;
378
+	tv.tv_usec = (mSeconds % 1000) * 1000;
379
+	int err;
380
+	do
381
+	{
382
+		err = select(0, NULL, NULL, NULL, &tv);
383
+	} while (err < 0 && errno == EINTR);
384
+}
385
+
386
+inline void microssecondsSleep(unsigned int uSeconds)
387
+{
388
+	struct timeval tv;
389
+	tv.tv_sec = uSeconds / 1000000;
390
+	tv.tv_usec = uSeconds % 1000000;
391
+	int err;
392
+	do
393
+	{
394
+		err = select(0, NULL, NULL, NULL, &tv);
395
+	} while (err < 0 && errno == EINTR);
396
+}
397
+
398
+inline void initLogger()
399
+{
400
+	/**
401
+	 * LOG系统初始化
402
+	 */
403
+	/* close printf buffer */
404
+	setbuf(stdout, NULL);
405
+	/* initialize EasyLogger */
406
+	elog_init();
407
+	/* set EasyLogger log format */
408
+	elog_set_fmt(ELOG_LVL_ASSERT, ELOG_FMT_ALL);
409
+	elog_set_fmt(ELOG_LVL_ERROR, ELOG_FMT_LVL | ELOG_FMT_TAG | ELOG_FMT_TIME);
410
+	elog_set_fmt(ELOG_LVL_WARN, ELOG_FMT_LVL | ELOG_FMT_TAG | ELOG_FMT_TIME);
411
+	elog_set_fmt(ELOG_LVL_INFO, ELOG_FMT_LVL | ELOG_FMT_TAG | ELOG_FMT_TIME);
412
+	elog_set_fmt(ELOG_LVL_DEBUG, ELOG_FMT_ALL & ~ELOG_FMT_FUNC);
413
+	elog_set_fmt(ELOG_LVL_VERBOSE, ELOG_FMT_ALL & ~ELOG_FMT_FUNC);
414
+#ifdef ELOG_COLOR_ENABLE
415
+	elog_set_text_color_enabled(true);
416
+#endif
417
+	/* start EasyLogger */
418
+	elog_start();
419
+}
420
+
421
+/**
422
+ * DEBUG绛夌骇
423
+ */
424
+typedef enum
425
+{
426
+	DEBUG = 0, INFO, WARN, ERROR, FATAL
427
+} LEVEL;
428
+
429
+#endif

+ 33
- 0
externservices/EmsCoreI.h Voir le fichier

@@ -0,0 +1,33 @@
1
+/*
2
+ * EmsCoreI.h
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef ACTION_EMSCOREI_H_
9
+#define ACTION_EMSCOREI_H_
10
+
11
+#include <map>
12
+#include <string>
13
+
14
+#include "../common/Type.h"
15
+
16
+interface EmsCoreI
17
+{
18
+	virtual ~EmsCoreI()
19
+	{
20
+	}
21
+
22
+	virtual HRESULT setItemStrValue(const std::string id, const std::string value, const int priority) = 0;
23
+
24
+	virtual HRESULT setItemIntValue(const std::string id, const int value, const int priority) = 0;
25
+
26
+	virtual HRESULT setItemFloatValue(const std::string id, const float value, const int priority) = 0;
27
+
28
+	virtual HRESULT getDevicesComState(std::map<std::string, std::string>& mdevicesCom) = 0;
29
+};
30
+
31
+
32
+
33
+#endif /* ACTION_EMSCOREI_H_ */

+ 19
- 0
models/devices/Common.cpp Voir le fichier

@@ -0,0 +1,19 @@
1
+/*
2
+ * Define.cpp
3
+ *
4
+ *  Created on: 2020年9月14日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#include "Common.h"
9
+
10
+COMMON::COMMON()
11
+{
12
+
13
+}
14
+
15
+COMMON::~COMMON()
16
+{
17
+
18
+}
19
+

+ 101
- 0
models/devices/Common.h Voir le fichier

@@ -0,0 +1,101 @@
1
+/*
2
+ * Common.h
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef MODELS_DEVICES_COMMON_H_
9
+#define MODELS_DEVICES_COMMON_H_
10
+
11
+class COMMON
12
+{
13
+public:
14
+	COMMON();
15
+	virtual ~COMMON();
16
+
17
+	enum STATEMACHINETATE
18
+	{
19
+		LOWPOWER, FAULT, STOP, STANDBY, RUN, SERIOUS
20
+	};
21
+
22
+	enum RUNSTATE
23
+	{
24
+		RS_STOP, RS_RUN, RS_ALARM, RS_FAULT
25
+	};
26
+
27
+	enum FAULTSTATE
28
+	{
29
+		FS_NORMAL, FS_FAULT = 1
30
+	};
31
+
32
+	enum ALARMSTATE
33
+	{
34
+		AS_NORMAL, AS_ALARM = 2
35
+	};
36
+
37
+	enum RUNCMD
38
+	{
39
+		RC_STOP, RC_START
40
+	};
41
+
42
+	enum CHARESTATE
43
+	{
44
+		IDLE, DISCHARGE, CHARGE
45
+	};
46
+
47
+	enum POWER_DIRECTION_PERMISSION
48
+	{
49
+		BOTH,	//----正反都允许
50
+		POSITIVE_ONLY,	//----正向(对于电源,输出为正向,输入为反向)
51
+		NEGATIVE_ONLY,	//----反向(对于电源,输出为正向,输入为反向)
52
+		BOTHNOT	//----都不允许
53
+	};
54
+
55
+	enum CTRLMODE
56
+	{
57
+		LOCAL_MANUAL, LOCAL_AUTO, REMOTE_MANUAL, REMOTE_AUTO
58
+	};
59
+
60
+	enum WORKMODE
61
+	{
62
+		PV_MPPT_OR_OTHER_UCONST, PV_PLIMIT_OR_OTHER_PCONST, PV_UCONST, INVALID_WORKMODE, TEST
63
+	};
64
+
65
+	enum RESETCMD
66
+	{
67
+		UNRESET, RESET, INVALID_CMD
68
+	};
69
+
70
+	enum BATTERY_TYPE
71
+	{
72
+		LI, OTHER
73
+	};
74
+
75
+	enum SAME_ENERGY_START_MODE
76
+	{
77
+		serial, parallel
78
+	};
79
+
80
+	enum RUNSTATE_SYS
81
+	{
82
+		SYS_RS_STOP, SYS_RS_RUN
83
+	};
84
+
85
+	enum FAULTSTATE_SYS
86
+	{
87
+		SYS_FS_NORMAL, SYS_FS_FAULT
88
+	};
89
+
90
+	enum ALARMSTATE_SYS
91
+	{
92
+		SYS_AS_NORMAL, SYS_AS_ALARM
93
+	};
94
+
95
+	enum PRODUCER_TYPE
96
+	{
97
+		ES, GRID, DG, SOLAR, LOAD
98
+	};
99
+};
100
+
101
+#endif /* MODELS_DEVICES_COMMON_H_ */

+ 115
- 0
models/devices/Device.cpp Voir le fichier

@@ -0,0 +1,115 @@
1
+/*
2
+ * Device.cpp
3
+ *
4
+ *  Created on: 2020年9月14日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#include "Device.h"
9
+
10
+#include <stddef.h>
11
+#include <utility>
12
+
13
+#include "../../utils/Util.h"
14
+
15
+Device::Device()
16
+{
17
+	// TODO Auto-generated constructor stub
18
+	chargeOrDisChargeState = 0;
19
+
20
+	P = 0.0;
21
+
22
+	SOC = 0.0;
23
+
24
+	chargeEnergy = 0.0;
25
+
26
+	disChargeEnergy = 0.0;
27
+
28
+	chargeEnergy_o = 0.0;
29
+
30
+	disChargeEnergy_o = 0.0;
31
+
32
+	chargeEnergyDaily = 0.0;
33
+
34
+	disChargeEnergyDaily = 0.0;
35
+}
36
+
37
+Device::~Device()
38
+{
39
+	// TODO Auto-generated destructor stub
40
+}
41
+
42
+Device* Device::addParam(const std::string key, const std::string value)
43
+{
44
+	if (!key.empty() && !value.empty())
45
+	{
46
+		params.insert(make_pair(key, value));
47
+	}
48
+
49
+	return this;
50
+}
51
+
52
+HRESULT Device::init()
53
+{
54
+	chargeStateUUID = getParam("chargeState");
55
+	disChargeStateUUID = getParam("disChargeState");
56
+
57
+	chargeEnergyUUID = getParam("chargeEnergy");
58
+	disChargeEnergyUUID = getParam("disChargeEnergy");
59
+
60
+	chargeEnergyDailyUUID = getParam("chargeEnergyDaily");
61
+	disChargeEnergyDailyUUID = getParam("disChargeEnergyDaily");
62
+
63
+	return S_OK;
64
+}
65
+
66
+void Device::other()
67
+{
68
+	if (chargeOrDisChargeState == 0)
69
+	{
70
+		Util::setItemIntValue(chargeStateUUID, 0, 101);
71
+		Util::setItemIntValue(disChargeStateUUID, 0, 101);
72
+	}
73
+	else if (chargeOrDisChargeState == 1)
74
+	{
75
+		Util::setItemIntValue(chargeStateUUID, 1, 101);
76
+		Util::setItemIntValue(disChargeStateUUID, 0, 101);
77
+
78
+		chargeEnergy += (fabs(P) * 0.000277777778);
79
+	}
80
+	else if (chargeOrDisChargeState == 2)
81
+	{
82
+		Util::setItemIntValue(chargeStateUUID, 0, 101);
83
+		Util::setItemIntValue(disChargeStateUUID, 1, 101);
84
+
85
+		disChargeEnergy += (fabs(P) * 0.000277777778);
86
+	}
87
+	else
88
+	{
89
+		Util::setItemIntValue(chargeStateUUID, 0, 101);
90
+		Util::setItemIntValue(disChargeStateUUID, 0, 101);
91
+	}
92
+
93
+	chargeEnergyDaily = chargeEnergy - chargeEnergy_o;
94
+	disChargeEnergyDaily = disChargeEnergy - disChargeEnergy_o;
95
+
96
+	Util::setItemFloatValue(chargeEnergyUUID, chargeEnergy, 101);
97
+	Util::setItemFloatValue(disChargeEnergyUUID, disChargeEnergy, 101);
98
+
99
+	Util::setItemFloatValue(chargeEnergyDailyUUID, chargeEnergyDaily, 101);
100
+	Util::setItemFloatValue(disChargeEnergyDailyUUID, disChargeEnergyDaily, 101);
101
+}
102
+
103
+std::string Device::getParam(std::string key)
104
+{
105
+	size_t index = params.count(key);
106
+	if (index == 0)
107
+	{
108
+		return "";
109
+	}
110
+	else
111
+	{
112
+		return params.find(key)->second;
113
+	}
114
+}
115
+

+ 67
- 0
models/devices/Device.h Voir le fichier

@@ -0,0 +1,67 @@
1
+/*
2
+ * Device.h
3
+ *
4
+ *  Created on: 2020年9月14日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef MODELS_DEVICES_DEVICE_H_
9
+#define MODELS_DEVICES_DEVICE_H_
10
+
11
+#include <map>
12
+#include <string>
13
+
14
+#include "../../common/Type.h"
15
+#include "Common.h"
16
+#include "OperateDevice.h"
17
+
18
+struct cJSON;
19
+
20
+class Device: public OperateDevice
21
+{
22
+public:
23
+	Device();
24
+	virtual ~Device();
25
+
26
+public:
27
+	virtual HRESULT init();
28
+
29
+	virtual Device* addParam(const std::string key, const std::string value);
30
+
31
+	virtual void other();
32
+
33
+public:
34
+	unsigned int chargeOrDisChargeState;
35
+
36
+	double P;
37
+
38
+	double SOC;
39
+
40
+	double chargeEnergy;
41
+
42
+	double disChargeEnergy;
43
+
44
+	double chargeEnergy_o;
45
+
46
+	double disChargeEnergy_o;
47
+
48
+	double chargeEnergyDaily;
49
+
50
+	double disChargeEnergyDaily;
51
+
52
+protected:
53
+	std::string getParam(std::string key);
54
+	std::string chargeStateUUID;
55
+	std::string disChargeStateUUID;
56
+
57
+	std::string chargeEnergyUUID;
58
+	std::string disChargeEnergyUUID;
59
+
60
+	std::string chargeEnergyDailyUUID;
61
+	std::string disChargeEnergyDailyUUID;
62
+
63
+private:
64
+	std::map<std::string, std::string> params;
65
+};
66
+
67
+#endif /* MODELS_DEVICES_DEVICE_H_ */

+ 20
- 0
models/devices/ES.cpp Voir le fichier

@@ -0,0 +1,20 @@
1
+/*
2
+ * ES.cpp
3
+ *
4
+ *  Created on: 2020年9月14日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#include "ES.h"
9
+
10
+#include "../../utils/Util.h"
11
+
12
+ES::ES()
13
+{
14
+	// TODO Auto-generated constructor stub
15
+}
16
+
17
+ES::~ES()
18
+{
19
+	// TODO Auto-generated destructor stub
20
+}

+ 20
- 0
models/devices/ES.h Voir le fichier

@@ -0,0 +1,20 @@
1
+/*
2
+ * ES.h
3
+ *
4
+ *  Created on: 2020年9月14日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef MODELS_DEVICES_ES_H_
9
+#define MODELS_DEVICES_ES_H_
10
+
11
+#include "Device.h"
12
+
13
+class ES: public Device
14
+{
15
+public:
16
+	ES();
17
+	virtual ~ES();
18
+};
19
+
20
+#endif /* MODELS_DEVICES_ES_H_ */

+ 26
- 0
models/devices/OperateDevice.h Voir le fichier

@@ -0,0 +1,26 @@
1
+/*
2
+ * Device.h
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef MODELS_DEVICES_OPERATEDEVICE_H_
9
+#define MODELS_DEVICES_OPERATEDEVICE_H_
10
+
11
+#include "../../common/Type.h"
12
+#include "Common.h"
13
+
14
+interface OperateDevice
15
+{
16
+	virtual ~OperateDevice()
17
+	{
18
+
19
+	}
20
+
21
+	virtual HRESULT init() = 0;
22
+
23
+	virtual void other() = 0;
24
+};
25
+
26
+#endif /* MODELS_DEVICES_OPERATEDEVICE_H_ */

+ 314
- 0
models/sys/System.cpp Voir le fichier

@@ -0,0 +1,314 @@
1
+/*
2
+ * System.cpp
3
+ *
4
+ *  Created on: 2020年9月14日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#include "System.h"
9
+
10
+#include <fcntl.h>
11
+#include <string.h>
12
+#include <sys/time.h>
13
+#include <unistd.h>
14
+#include <cmath>
15
+#include <cstdio>
16
+#include <cstdlib>
17
+#include <ctime>
18
+#include <utility>
19
+
20
+#include "../../utils/easylogger/inc/elog.h"
21
+#include "../../utils/Util.h"
22
+#include "../devices/Common.h"
23
+#include "ctime"
24
+#include <algorithm>
25
+System::System()
26
+{
27
+	// TODO Auto-generated constructor stub
28
+	RLCPower = 0.0;
29
+
30
+
31
+}
32
+
33
+System::~System()
34
+{
35
+	// TODO Auto-generated destructor stub
36
+}
37
+
38
+/**
39
+ * 公有函数区
40
+ */
41
+int System::getCurrentTime()
42
+{
43
+	 std::time_t now = std::time(nullptr);
44
+	 std::tm* local_time = std::localtime(&now);
45
+	 int hour = local_time->tm_hour;
46
+	 return hour;
47
+}
48
+
49
+int System::getChgSet()
50
+{
51
+	 std::time_t now = std::time(nullptr);
52
+	 std::tm* local_time = std::localtime(&now);
53
+	 double hour = local_time->tm_hour;
54
+	 double min = local_time->tm_min;
55
+
56
+	 if(hour >= chargeStart_Hour_01 && min >= chargeStart_Min_01)
57
+	 {
58
+		 if(hour <= chargeEnd_Hour_01 && min <= chargeEnd_Min_01)
59
+		 {
60
+			 return chargeSet; // 返回充电
61
+		 }
62
+	 }
63
+	 if(hour >= chargeStart_Hour_02 && min >= chargeStart_Min_02)
64
+	 {
65
+		 if(hour <= chargeEnd_Hour_02 && min <= chargeEnd_Min_02)
66
+		 {
67
+			 return chargeSet; // 返回充电
68
+		 }
69
+	 }
70
+
71
+	 if(hour >= dischargeStart_Hour_01 && min >= dischargeStart_Min_01)
72
+	 {
73
+		 if(hour <= dischargeEnd_Hour_01 && min <= dischargeEnd_Min_01)
74
+		 {
75
+			 return dischargeSet; // 返回放电
76
+		 }
77
+	 }
78
+	 if(hour >= dischargeStart_Hour_02 && min >= dischargeStart_Min_02)
79
+	 {
80
+		 if(hour <= dischargeEnd_Hour_02 && min <= dischargeEnd_Min_02)
81
+		 {
82
+			 return dischargeSet; // 返回放电
83
+		 }
84
+	 }
85
+
86
+	 return 0 ;
87
+
88
+}
89
+
90
+double System::getCurrentPower()
91
+{
92
+	 std::time_t now = std::time(nullptr);
93
+	 std::tm* tm = std::localtime(&now);
94
+	 return powerSchedule[tm->tm_hour][tm->tm_min / 15];
95
+
96
+
97
+}
98
+
99
+void System::powerPlanSetValue(double value)
100
+{
101
+	if(powerSetTemp != value)
102
+	{
103
+		Util::setItemFloatValue("盛弘PCS/有功功率设置",  value, 101);
104
+		powerSetTemp = value;
105
+
106
+	}
107
+	else
108
+	{
109
+
110
+	}
111
+
112
+
113
+
114
+}
115
+
116
+HRESULT System::init()
117
+{
118
+   addDataBase(DataBase(&powerSet_00_00, 'F', "virtual/计划曲线功率设置00_00", 0,65535));
119
+   addDataBase(DataBase(&powerSet_00_15, 'F', "virtual/功率计划功率设置00_15", 0,65535));
120
+   addDataBase(DataBase(&powerSet_00_30, 'F', "virtual/功率计划功率设置00_30", 0,65535));
121
+   addDataBase(DataBase(&powerSet_00_45, 'F', "virtual/功率计划功率设置00_45", 0,65535));
122
+   addDataBase(DataBase(&powerSet_01_00, 'F', "virtual/功率计划功率设置01_00", 0,65535));
123
+   addDataBase(DataBase(&powerSet_01_15, 'F', "virtual/功率计划功率设置01_15", 0,65535));
124
+   addDataBase(DataBase(&powerSet_01_30, 'F', "virtual/功率计划功率设置01_30", 0,65535));
125
+   addDataBase(DataBase(&powerSet_01_45, 'F', "virtual/功率计划功率设置01_45", 0,65535));
126
+   addDataBase(DataBase(&powerSet_02_00, 'F', "virtual/功率计划功率设置02_00", 0,65535));
127
+   addDataBase(DataBase(&powerSet_02_15, 'F', "virtual/功率计划功率设置02_15", 0,65535));
128
+   addDataBase(DataBase(&powerSet_02_30, 'F', "virtual/功率计划功率设置02_30", 0,65535));
129
+   addDataBase(DataBase(&powerSet_02_45, 'F', "virtual/功率计划功率设置02_45", 0,65535));
130
+   addDataBase(DataBase(&powerSet_03_00, 'F', "virtual/功率计划功率设置03_00", 0,65535));
131
+   addDataBase(DataBase(&powerSet_03_15, 'F', "virtual/功率计划功率设置03_15", 0,65535));
132
+   addDataBase(DataBase(&powerSet_03_30, 'F', "virtual/功率计划功率设置03_30", 0,65535));
133
+   addDataBase(DataBase(&powerSet_03_45, 'F', "virtual/功率计划功率设置03_45", 0,65535));
134
+   addDataBase(DataBase(&powerSet_04_00, 'F', "virtual/功率计划功率设置04_00", 0,65535));
135
+   addDataBase(DataBase(&powerSet_04_15, 'F', "virtual/功率计划功率设置04_15", 0,65535));
136
+   addDataBase(DataBase(&powerSet_04_30, 'F', "virtual/功率计划功率设置04_30", 0,65535));
137
+   addDataBase(DataBase(&powerSet_04_45, 'F', "virtual/功率计划功率设置04_45", 0,65535));
138
+   addDataBase(DataBase(&powerSet_05_00, 'F', "virtual/功率计划功率设置05_00", 0,65535));
139
+   addDataBase(DataBase(&powerSet_05_15, 'F', "virtual/功率计划功率设置05_15", 0,65535));
140
+   addDataBase(DataBase(&powerSet_05_30, 'F', "virtual/功率计划功率设置05_30", 0,65535));
141
+   addDataBase(DataBase(&powerSet_05_45, 'F', "virtual/功率计划功率设置05_45", 0,65535));
142
+   addDataBase(DataBase(&powerSet_06_00, 'F', "virtual/功率计划功率设置06_00", 0,65535));
143
+   addDataBase(DataBase(&powerSet_06_15, 'F', "virtual/功率计划功率设置06_15", 0,65535));
144
+   addDataBase(DataBase(&powerSet_06_30, 'F', "virtual/功率计划功率设置06_30", 0,65535));
145
+   addDataBase(DataBase(&powerSet_06_45, 'F', "virtual/功率计划功率设置06_45", 0,65535));
146
+   addDataBase(DataBase(&powerSet_07_00, 'F', "virtual/功率计划功率设置07_00", 0,65535));
147
+   addDataBase(DataBase(&powerSet_07_15, 'F', "virtual/功率计划功率设置07_15", 0,65535));
148
+   addDataBase(DataBase(&powerSet_07_30, 'F', "virtual/功率计划功率设置07_30", 0,65535));
149
+   addDataBase(DataBase(&powerSet_07_45, 'F', "virtual/功率计划功率设置07_45", 0,65535));
150
+   addDataBase(DataBase(&powerSet_08_00, 'F', "virtual/功率计划功率设置08_00", 0,65535));
151
+   addDataBase(DataBase(&powerSet_08_15, 'F', "virtual/功率计划功率设置08_15", 0,65535));
152
+   addDataBase(DataBase(&powerSet_08_30, 'F', "virtual/功率计划功率设置08_30", 0,65535));
153
+   addDataBase(DataBase(&powerSet_08_45, 'F', "virtual/功率计划功率设置08_45", 0,65535));
154
+   addDataBase(DataBase(&powerSet_09_00, 'F', "virtual/功率计划功率设置09_00", 0,65535));
155
+   addDataBase(DataBase(&powerSet_09_15, 'F', "virtual/功率计划功率设置09_15", 0,65535));
156
+   addDataBase(DataBase(&powerSet_09_30, 'F', "virtual/功率计划功率设置09_30", 0,65535));
157
+   addDataBase(DataBase(&powerSet_09_45, 'F', "virtual/功率计划功率设置09_45", 0,65535));
158
+   addDataBase(DataBase(&powerSet_10_00, 'F', "virtual/功率计划功率设置10_00", 0,65535));
159
+   addDataBase(DataBase(&powerSet_10_15, 'F', "virtual/功率计划功率设置10_15", 0,65535));
160
+   addDataBase(DataBase(&powerSet_10_30, 'F', "virtual/功率计划功率设置10_30", 0,65535));
161
+   addDataBase(DataBase(&powerSet_10_45, 'F', "virtual/功率计划功率设置10_45", 0,65535));
162
+   addDataBase(DataBase(&powerSet_11_00, 'F', "virtual/功率计划功率设置11_00", 0,65535));
163
+   addDataBase(DataBase(&powerSet_11_15, 'F', "virtual/功率计划功率设置11_15", 0,65535));
164
+   addDataBase(DataBase(&powerSet_11_30, 'F', "virtual/功率计划功率设置11_30", 0,65535));
165
+   addDataBase(DataBase(&powerSet_11_45, 'F', "virtual/功率计划功率设置11_45", 0,65535));
166
+   addDataBase(DataBase(&powerSet_12_00, 'F', "virtual/功率计划功率设置12_00", 0,65535));
167
+   addDataBase(DataBase(&powerSet_12_15, 'F', "virtual/功率计划功率设置12_15", 0,65535));
168
+   addDataBase(DataBase(&powerSet_12_30, 'F', "virtual/功率计划功率设置12_30", 0,65535));
169
+   addDataBase(DataBase(&powerSet_12_45, 'F', "virtual/功率计划功率设置12_45", 0,65535));
170
+   addDataBase(DataBase(&powerSet_13_00, 'F', "virtual/功率计划功率设置13_00", 0,65535));
171
+   addDataBase(DataBase(&powerSet_13_15, 'F', "virtual/功率计划功率设置13_15", 0,65535));
172
+   addDataBase(DataBase(&powerSet_13_30, 'F', "virtual/功率计划功率设置13_30", 0,65535));
173
+   addDataBase(DataBase(&powerSet_13_45, 'F', "virtual/功率计划功率设置13_45", 0,65535));
174
+   addDataBase(DataBase(&powerSet_14_00, 'F', "virtual/功率计划功率设置14_00", 0,65535));
175
+   addDataBase(DataBase(&powerSet_14_15, 'F', "virtual/功率计划功率设置14_15", 0,65535));
176
+   addDataBase(DataBase(&powerSet_14_30, 'F', "virtual/功率计划功率设置14_30", 0,65535));
177
+   addDataBase(DataBase(&powerSet_14_45, 'F', "virtual/功率计划功率设置14_45", 0,65535));
178
+   addDataBase(DataBase(&powerSet_15_00, 'F', "virtual/功率计划功率设置15_00", 0,65535));
179
+   addDataBase(DataBase(&powerSet_15_15, 'F', "virtual/功率计划功率设置15_15", 0,65535));
180
+   addDataBase(DataBase(&powerSet_15_30, 'F', "virtual/功率计划功率设置15_30", 0,65535));
181
+   addDataBase(DataBase(&powerSet_15_45, 'F', "virtual/功率计划功率设置15_45", 0,65535));
182
+   addDataBase(DataBase(&powerSet_16_00, 'F', "virtual/功率计划功率设置16_00", 0,65535));
183
+   addDataBase(DataBase(&powerSet_16_15, 'F', "virtual/功率计划功率设置16_15", 0,65535));
184
+   addDataBase(DataBase(&powerSet_16_30, 'F', "virtual/功率计划功率设置16_30", 0,65535));
185
+   addDataBase(DataBase(&powerSet_16_45, 'F', "virtual/功率计划功率设置16_45", 0,65535));
186
+   addDataBase(DataBase(&powerSet_17_00, 'F', "virtual/功率计划功率设置17_00", 0,65535));
187
+   addDataBase(DataBase(&powerSet_17_15, 'F', "virtual/功率计划功率设置17_15", 0,65535));
188
+   addDataBase(DataBase(&powerSet_17_30, 'F', "virtual/功率计划功率设置17_30", 0,65535));
189
+   addDataBase(DataBase(&powerSet_17_45, 'F', "virtual/功率计划功率设置17_45", 0,65535));
190
+   addDataBase(DataBase(&powerSet_18_00, 'F', "virtual/功率计划功率设置18_00", 0,65535));
191
+   addDataBase(DataBase(&powerSet_18_15, 'F', "virtual/功率计划功率设置18_15", 0,65535));
192
+   addDataBase(DataBase(&powerSet_18_30, 'F', "virtual/功率计划功率设置18_30", 0,65535));
193
+   addDataBase(DataBase(&powerSet_18_45, 'F', "virtual/功率计划功率设置18_45", 0,65535));
194
+   addDataBase(DataBase(&powerSet_19_00, 'F', "virtual/功率计划功率设置19_00", 0,65535));
195
+   addDataBase(DataBase(&powerSet_19_15, 'F', "virtual/功率计划功率设置19_15", 0,65535));
196
+   addDataBase(DataBase(&powerSet_19_30, 'F', "virtual/功率计划功率设置19_30", 0,65535));
197
+   addDataBase(DataBase(&powerSet_19_45, 'F', "virtual/功率计划功率设置19_45", 0,65535));
198
+   addDataBase(DataBase(&powerSet_20_00, 'F', "virtual/功率计划功率设置20_00", 0,65535));
199
+   addDataBase(DataBase(&powerSet_20_15, 'F', "virtual/功率计划功率设置20_15", 0,65535));
200
+   addDataBase(DataBase(&powerSet_20_30, 'F', "virtual/功率计划功率设置20_30", 0,65535));
201
+   addDataBase(DataBase(&powerSet_20_45, 'F', "virtual/功率计划功率设置20_45", 0,65535));
202
+   addDataBase(DataBase(&powerSet_21_00, 'F', "virtual/功率计划功率设置21_00", 0,65535));
203
+   addDataBase(DataBase(&powerSet_21_15, 'F', "virtual/功率计划功率设置21_15", 0,65535));
204
+   addDataBase(DataBase(&powerSet_21_30, 'F', "virtual/功率计划功率设置21_30", 0,65535));
205
+   addDataBase(DataBase(&powerSet_21_45, 'F', "virtual/功率计划功率设置21_45", 0,65535));
206
+   addDataBase(DataBase(&powerSet_22_00, 'F', "virtual/功率计划功率设置22_00", 0,65535));
207
+   addDataBase(DataBase(&powerSet_22_15, 'F', "virtual/功率计划功率设置22_15", 0,65535));
208
+   addDataBase(DataBase(&powerSet_22_30, 'F', "virtual/功率计划功率设置22_30", 0,65535));
209
+   addDataBase(DataBase(&powerSet_22_45, 'F', "virtual/功率计划功率设置22_45", 0,65535));
210
+   addDataBase(DataBase(&powerSet_23_00, 'F', "virtual/功率计划功率设置23_00", 0,65535));
211
+   addDataBase(DataBase(&powerSet_23_15, 'F', "virtual/功率计划功率设置23_15", 0,65535));
212
+   addDataBase(DataBase(&powerSet_23_30, 'F', "virtual/功率计划功率设置23_30", 0,65535));
213
+   addDataBase(DataBase(&powerSet_23_45, 'F', "virtual/功率计划功率设置23_45", 0,65535));
214
+
215
+   addDataBase(DataBase(&chargeStart_Hour_01, 'I', "virtual/充电时间段1_开始时间_时", 0,65535));
216
+   addDataBase(DataBase(&chargeStart_Min_01, 'I', "virtual/充电时间段1_开始时间_分", 0,65535));
217
+   addDataBase(DataBase(&chargeStart_Hour_02, 'I', "virtual/充电时间段2_开始时间_时", 0,65535));
218
+   addDataBase(DataBase(&chargeStart_Min_02, 'I', "virtual/充电时间段2_开始时间_分", 0,65535));
219
+   addDataBase(DataBase(&chargeEnd_Hour_01, 'I', "virtual/充电时间段1_结束时间_时", 0,65535));
220
+   addDataBase(DataBase(&chargeEnd_Min_01, 'I', "virtual/充电时间段1_结束时间_分", 0,65535));
221
+   addDataBase(DataBase(&chargeEnd_Hour_02, 'I', "virtual/充电时间段2_结束时间_时", 0,65535));
222
+   addDataBase(DataBase(&chargeEnd_Min_02, 'I', "virtual/充电时间段2_结束时间_分", 0,65535));
223
+   addDataBase(DataBase(&dischargeStart_Hour_01, 'I', "virtual/放电时间段1_开始时间_时", 0,65535));
224
+   addDataBase(DataBase(&dischargeStart_Min_01, 'I', "virtual/放电时间段1_开始时间_分", 0,65535));
225
+   addDataBase(DataBase(&dischargeStart_Hour_02, 'I', "virtual/放电时间段2_开始时间_时", 0,65535));
226
+   addDataBase(DataBase(&dischargeStart_Min_02, 'I', "virtual/放电时间段2_开始时间_分", 0,65535));
227
+   addDataBase(DataBase(&dischargeEnd_Hour_01, 'I', "virtual/放电时间段1_结束时间_时", 0,65535));
228
+   addDataBase(DataBase(&dischargeEnd_Min_01, 'I', "virtual/放电时间段1_结束时间_分", 0,65535));
229
+   addDataBase(DataBase(&dischargeEnd_Hour_02, 'I', "virtual/放电时间段2_结束时间_时", 0,65535));
230
+   addDataBase(DataBase(&dischargeEnd_Min_02, 'I', "virtual/放电时间段2_结束时间_分", 0,65535));
231
+
232
+   addDataBase(DataBase(&activePowerSet, 'F', "盛弘PCS/有功功率设置", 0,65535));
233
+
234
+
235
+
236
+   return S_OK;
237
+}
238
+
239
+std::vector<DataBase>::iterator System::getDataBase()
240
+{
241
+	return dataBases.begin();
242
+}
243
+
244
+size_t System::getDataBaseSize()
245
+{
246
+	return dataBases.size();
247
+}
248
+
249
+void System::powerplanLogic()
250
+{
251
+
252
+	double power = getCurrentPower();
253
+	int chgrState = getChgSet();
254
+	if(chgrState == 1)  // 充电设置
255
+	{
256
+		powerPlanSetValue(power);
257
+
258
+	}
259
+	else
260
+	{
261
+		if(chgrState == 2) // 放电设置
262
+		{
263
+			powerPlanSetValue(-1*power);
264
+		}
265
+	}
266
+
267
+
268
+
269
+}
270
+void System::other()
271
+{
272
+	if(powerPlanEnable == 1)
273
+	{
274
+		powerplanLogic();
275
+
276
+	}
277
+
278
+
279
+}
280
+
281
+/**
282
+ * 私有函数区
283
+ */
284
+
285
+System* System::addParam(const std::string key, const std::string value)
286
+{
287
+	if (!key.empty() && !value.empty())
288
+	{
289
+		params.insert(make_pair(key, value));
290
+	}
291
+
292
+	return this;
293
+}
294
+
295
+System* System::addDataBase(DataBase dataBase)
296
+{
297
+	dataBases.push_back(dataBase);
298
+
299
+	return this;
300
+}
301
+
302
+std::string System::getParam(std::string key)
303
+{
304
+	size_t index = params.count(key);
305
+	if (index == 0)
306
+	{
307
+		return "";
308
+	}
309
+	else
310
+	{
311
+		return params.find(key)->second;
312
+	}
313
+}
314
+

+ 247
- 0
models/sys/System.h Voir le fichier

@@ -0,0 +1,247 @@
1
+/*
2
+ * System.h
3
+ *
4
+ *  Created on: 2023年5月19日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef MODELS_SYS_SYSTEM_H_
9
+#define MODELS_SYS_SYSTEM_H_
10
+
11
+#include <stddef.h>
12
+#include <map>
13
+#include <string>
14
+#include <vector>
15
+
16
+#include "../../common/Type.h"
17
+#include "../../utils/DataBase.h"
18
+
19
+
20
+class System
21
+{
22
+public:
23
+	System();
24
+	virtual ~System();
25
+
26
+public:
27
+	HRESULT init();
28
+
29
+	std::vector<DataBase>::iterator getDataBase();
30
+
31
+	size_t getDataBaseSize();
32
+
33
+	void other();
34
+
35
+private:
36
+	System* addParam(const std::string key, const std::string value);
37
+
38
+	System* addDataBase(DataBase dataBase);
39
+
40
+	std::string getParam(std::string key);
41
+
42
+private:
43
+	std::map<std::string, std::string> params;
44
+	std::vector<DataBase> dataBases;
45
+
46
+private:
47
+	double RLCPower;
48
+
49
+	//double loadPower;
50
+
51
+	unsigned int cncRunState[3];
52
+
53
+public:
54
+
55
+	uint chargeStart_Hour_01;
56
+	uint chargeEnd_Hour_01;
57
+	uint chargeStart_Min_01;
58
+	uint chargeEnd_Min_01;
59
+	uint chargeStart_Hour_02;
60
+	uint chargeEnd_Hour_02;
61
+	uint chargeStart_Min_02;
62
+	uint chargeEnd_Min_02;
63
+
64
+
65
+	uint dischargeStart_Hour_01;
66
+	uint dischargeStart_Min_01;
67
+	uint dischargeStart_Hour_02;
68
+	uint dischargeStart_Min_02;
69
+	uint dischargeEnd_Hour_01;
70
+	uint dischargeEnd_Min_01;
71
+	uint dischargeEnd_Hour_02;
72
+	uint dischargeEnd_Min_02;
73
+
74
+
75
+
76
+	double powerSet_00_00 = 0.0;
77
+	double powerSet_00_15 = 0.0;
78
+	double powerSet_00_30 = 0.0;
79
+	double powerSet_00_45 = 0.0;
80
+	double powerSet_01_00 = 0.0;
81
+	double powerSet_01_15 = 0.0;
82
+	double powerSet_01_30 = 0.0;
83
+	double powerSet_01_45 = 0.0;
84
+	double powerSet_02_00 = 0.0;
85
+	double powerSet_02_15 = 0.0;
86
+	double powerSet_02_30 = 0.0;
87
+	double powerSet_02_45 = 0.0;
88
+	double powerSet_03_00 = 0.0;
89
+	double powerSet_03_15 = 0.0;
90
+	double powerSet_03_30 = 0.0;
91
+	double powerSet_03_45 = 0.0;
92
+	double powerSet_04_00 = 0.0;
93
+	double powerSet_04_15 = 0.0;
94
+	double powerSet_04_30 = 0.0;
95
+	double powerSet_04_45 = 0.0;
96
+	double powerSet_05_00 = 0.0;
97
+	double powerSet_05_15 = 0.0;
98
+	double powerSet_05_30 = 0.0;
99
+	double powerSet_05_45 = 0.0;
100
+	double powerSet_06_00 = 0.0;
101
+	double powerSet_06_15 = 0.0;
102
+	double powerSet_06_30 = 0.0;
103
+	double powerSet_06_45 = 0.0;
104
+	double powerSet_07_00 = 0.0;
105
+	double powerSet_07_15 = 0.0;
106
+	double powerSet_07_30 = 0.0;
107
+	double powerSet_07_45 = 0.0;
108
+	double powerSet_08_00 = 0.0;
109
+	double powerSet_08_15 = 0.0;
110
+	double powerSet_08_30 = 0.0;
111
+	double powerSet_08_45 = 0.0;
112
+	double powerSet_09_00 = 0.0;
113
+	double powerSet_09_15 = 0.0;
114
+	double powerSet_09_30 = 0.0;
115
+	double powerSet_09_45 = 0.0;
116
+	double powerSet_10_00 = 0.0;
117
+	double powerSet_10_15 = 0.0;
118
+	double powerSet_10_30 = 0.0;
119
+	double powerSet_10_45 = 0.0;
120
+	double powerSet_11_00 = 0.0;
121
+	double powerSet_11_15 = 0.0;
122
+	double powerSet_11_30 = 0.0;
123
+	double powerSet_11_45 = 0.0;
124
+	double powerSet_12_00 = 0.0;
125
+	double powerSet_12_15 = 0.0;
126
+	double powerSet_12_30 = 0.0;
127
+	double powerSet_12_45 = 0.0;
128
+	double powerSet_13_00 = 0.0;
129
+	double powerSet_13_15 = 0.0;
130
+	double powerSet_13_30 = 0.0;
131
+	double powerSet_13_45 = 0.0;
132
+	double powerSet_14_00 = 0.0;
133
+	double powerSet_14_15 = 0.0;
134
+	double powerSet_14_30 = 0.0;
135
+	double powerSet_14_45 = 0.0;
136
+	double powerSet_15_00 = 0.0;
137
+	double powerSet_15_15 = 0.0;
138
+	double powerSet_15_30 = 0.0;
139
+	double powerSet_15_45 = 0.0;
140
+	double powerSet_16_00 = 0.0;
141
+	double powerSet_16_15 = 0.0;
142
+	double powerSet_16_30 = 0.0;
143
+	double powerSet_16_45 = 0.0;
144
+	double powerSet_17_00 = 0.0;
145
+	double powerSet_17_15 = 0.0;
146
+	double powerSet_17_30 = 0.0;
147
+	double powerSet_17_45 = 0.0;
148
+	double powerSet_18_00 = 0.0;
149
+	double powerSet_18_15 = 0.0;
150
+	double powerSet_18_30 = 0.0;
151
+	double powerSet_18_45 = 0.0;
152
+	double powerSet_19_00 = 0.0;
153
+	double powerSet_19_15 = 0.0;
154
+	double powerSet_19_30 = 0.0;
155
+	double powerSet_19_45 = 0.0;
156
+	double powerSet_20_00 = 0.0;
157
+	double powerSet_20_15 = 0.0;
158
+	double powerSet_20_30 = 0.0;
159
+	double powerSet_20_45 = 0.0;
160
+	double powerSet_21_00 = 0.0;
161
+	double powerSet_21_15 = 0.0;
162
+	double powerSet_21_30 = 0.0;
163
+	double powerSet_21_45 = 0.0;
164
+	double powerSet_22_00 = 0.0;
165
+	double powerSet_22_15 = 0.0;
166
+	double powerSet_22_30 = 0.0;
167
+	double powerSet_22_45 = 0.0;
168
+	double powerSet_23_00 = 0.0;
169
+	double powerSet_23_15 = 0.0;
170
+	double powerSet_23_30 = 0.0;
171
+	double powerSet_23_45 = 0.0;
172
+
173
+
174
+	int dischargeSet = 2; //放电设置
175
+	int  chargeSet = 1; //充电设置
176
+	double activePowerSet;//有功功率给定
177
+	double powerSetTemp = 0.0;
178
+	uint powerPlanEnable;
179
+
180
+
181
+
182
+	double powerSchedule[24][4] = {
183
+	    // 00:00 - 00:45
184
+	    {powerSet_00_00, powerSet_00_15, powerSet_00_30, powerSet_00_45},
185
+	    // 01:00 - 01:45
186
+	    {powerSet_01_00, powerSet_01_15, powerSet_01_30, powerSet_01_45},
187
+	    // 02:00 - 02:45
188
+	    {powerSet_02_00, powerSet_02_15, powerSet_02_30, powerSet_02_45},
189
+	    // 03:00 - 03:45
190
+	    {powerSet_03_00, powerSet_03_15, powerSet_03_30, powerSet_03_45},
191
+	    // 04:00 - 04:45
192
+	    {powerSet_04_00, powerSet_04_15, powerSet_04_30, powerSet_04_45},
193
+	    // 05:00 - 05:45
194
+	    {powerSet_05_00, powerSet_05_15, powerSet_05_30, powerSet_05_45},
195
+	    // 06:00 - 06:45
196
+	    {powerSet_06_00, powerSet_06_15, powerSet_06_30, powerSet_06_45},
197
+	    // 07:00 - 07:45
198
+	    {powerSet_07_00, powerSet_07_15, powerSet_07_30, powerSet_07_45},
199
+	    // 08:00 - 08:45
200
+	    {powerSet_08_00, powerSet_08_15, powerSet_08_30, powerSet_08_45},
201
+	    // 09:00 - 09:45
202
+	    {powerSet_09_00, powerSet_09_15, powerSet_09_30, powerSet_09_45},
203
+	    // 10:00 - 10:45
204
+	    {powerSet_10_00, powerSet_10_15, powerSet_10_30, powerSet_10_45},
205
+	    // 11:00 - 11:45
206
+	    {powerSet_11_00, powerSet_11_15, powerSet_11_30, powerSet_11_45},
207
+	    // 12:00 - 12:45
208
+	    {powerSet_12_00, powerSet_12_15, powerSet_12_30, powerSet_12_45},
209
+	    // 13:00 - 13:45
210
+	    {powerSet_13_00, powerSet_13_15, powerSet_13_30, powerSet_13_45},
211
+	    // 14:00 - 14:45
212
+	    {powerSet_14_00, powerSet_14_15, powerSet_14_30, powerSet_14_45},
213
+	    // 15:00 - 15:45
214
+	    {powerSet_15_00, powerSet_15_15, powerSet_15_30, powerSet_15_45},
215
+	    // 16:00 - 16:45
216
+	    {powerSet_16_00, powerSet_16_15, powerSet_16_30, powerSet_16_45},
217
+	    // 17:00 - 17:45
218
+	    {powerSet_17_00, powerSet_17_15, powerSet_17_30, powerSet_17_45},
219
+	    // 18:00 - 18:45
220
+	    {powerSet_18_00, powerSet_18_15, powerSet_18_30, powerSet_18_45},
221
+	    // 19:00 - 19:45
222
+	    {powerSet_19_00, powerSet_19_15, powerSet_19_30, powerSet_19_45},
223
+	    // 20:00 - 20:45
224
+	    {powerSet_20_00, powerSet_20_15, powerSet_20_30, powerSet_20_45},
225
+	    // 21:00 - 21:45
226
+	    {powerSet_21_00, powerSet_21_15, powerSet_21_30, powerSet_21_45},
227
+	    // 22:00 - 22:45
228
+	    {powerSet_22_00, powerSet_22_15, powerSet_22_30, powerSet_22_45},
229
+	    // 23:00 - 23:45
230
+	    {powerSet_23_00, powerSet_23_15, powerSet_23_30, powerSet_23_45}
231
+	};
232
+
233
+
234
+
235
+
236
+
237
+public:
238
+	int getCurrentTime();
239
+	int getChgSet();  //获取充放电设置
240
+
241
+    double getCurrentPower();
242
+    void powerPlanSetValue(double value); //功率曲线值设置
243
+    void powerplanLogic();
244
+
245
+};
246
+
247
+#endif /* MODELS_SYS_SYSTEM_H_ */

+ 32
- 0
services/EmsAppI.h Voir le fichier

@@ -0,0 +1,32 @@
1
+/*
2
+ * EmsAppI.h
3
+ *
4
+ *  Created on: 2020年9月10日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef EXTERNSERVICE_EMSAPPI_H_
9
+#define EXTERNSERVICE_EMSAPPI_H_
10
+
11
+#include "../common/IUnknown.h"
12
+#include "../common/Type.h"
13
+#include "../externservices/EmsCoreI.h"
14
+
15
+class DataBase;
16
+
17
+interface EmsAppI: IUnknown
18
+{
19
+	virtual ~EmsAppI()
20
+	{
21
+	}
22
+
23
+	virtual HRESULT init() = 0;
24
+
25
+	virtual HRESULT applyDataBase(DataBase*& pstart, unsigned int& size) = 0;
26
+
27
+	virtual HRESULT registerCoreHandle(EmsCoreI* handle, int run_priority, int protect_priority) = 0;
28
+
29
+	virtual HRESULT run() = 0;
30
+};
31
+
32
+#endif /* EXTERNSERVICE_EMSAPPI_H_ */

+ 116
- 0
services/impl/EmsAppImpl.cpp Voir le fichier

@@ -0,0 +1,116 @@
1
+/*
2
+ * EmsAppImpl.cpp
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#include "EmsAppImpl.h"
9
+
10
+#include <stddef.h>
11
+#include <iterator>
12
+
13
+#include "../../common/GUID.cpp"
14
+#include "../../models/sys/System.h"
15
+
16
+EmsCoreI* EmsAppImpl::pCore = NULL;
17
+
18
+System EmsAppImpl::sys;
19
+
20
+int EmsAppImpl::run_priority = 100;
21
+int EmsAppImpl::protect_priority = 100;
22
+
23
+EmsAppImpl::EmsAppImpl()
24
+{
25
+	// TODO Auto-generated constructor stub
26
+	initLogger();
27
+}
28
+
29
+EmsAppImpl::~EmsAppImpl()
30
+{
31
+	// TODO Auto-generated destructor stub
32
+}
33
+
34
+HRESULT EmsAppImpl::queryInterface(const IID& iid, void** ppv)
35
+{
36
+	if (iid == IID_IEmsApp)
37
+	{
38
+		*ppv = static_cast<EmsAppI*>(this);
39
+	}
40
+	else if (iid == IID_IUnknown)
41
+	{
42
+		*ppv = static_cast<IUnknown*>(this);
43
+	}
44
+	else
45
+	{
46
+		*ppv = NULL;
47
+		return E_NOINTERFACE;
48
+	}
49
+	reinterpret_cast<IUnknown*>(*ppv)->addRef();
50
+	return S_OK;
51
+}
52
+
53
+ULONG EmsAppImpl::addRef()
54
+{
55
+	return ++m_cRef;;
56
+}
57
+
58
+ULONG EmsAppImpl::release()
59
+{
60
+	if (--m_cRef == 0)
61
+	{
62
+		delete this;
63
+		return 0;
64
+	}
65
+	return m_cRef;
66
+}
67
+
68
+ULONG EmsAppImpl::getVersion()
69
+{
70
+	return VERSION;
71
+}
72
+
73
+HRESULT EmsAppImpl::init()
74
+{
75
+	return sys.init();
76
+}
77
+
78
+HRESULT EmsAppImpl::applyDataBase(DataBase*& pstart, unsigned int& size)
79
+{
80
+	size = sys.getDataBaseSize();
81
+	if (size == 0)
82
+	{
83
+		pstart = NULL;
84
+	}
85
+	else
86
+	{
87
+		pstart = &(*sys.getDataBase());
88
+	}
89
+
90
+	return S_OK;
91
+}
92
+
93
+HRESULT EmsAppImpl::registerCoreHandle(EmsCoreI* handle, int t_run_priority, int t_protect_priority)
94
+{
95
+	pCore = handle;
96
+	run_priority = t_run_priority;
97
+	protect_priority = t_protect_priority;
98
+	return S_OK;
99
+}
100
+
101
+HRESULT EmsAppImpl::run()
102
+{
103
+	sys.other();
104
+
105
+	return S_OK;
106
+}
107
+
108
+#ifdef __cplusplus
109
+extern "C" IUnknown* CreateInstance()
110
+{
111
+	IUnknown *pI = static_cast<EmsAppI*>(new EmsAppImpl());
112
+	pI->addRef();
113
+	return pI;
114
+}
115
+#endif
116
+

+ 55
- 0
services/impl/EmsAppImpl.h Voir le fichier

@@ -0,0 +1,55 @@
1
+/*
2
+ * EmsAppImpl.h
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef SERVICES_IMPL_EMSAPPIMPL_H_
9
+#define SERVICES_IMPL_EMSAPPIMPL_H_
10
+
11
+#include <map>
12
+
13
+#include "../../common/Type.h"
14
+#include "../../models/devices/Common.h"
15
+#include "../EmsAppI.h"
16
+
17
+class System;
18
+
19
+class EmsAppImpl: public EmsAppI
20
+{
21
+public:
22
+	EmsAppImpl();
23
+	virtual ~EmsAppImpl();
24
+
25
+public:
26
+	virtual HRESULT queryInterface(const IID& iid, void** ppv);
27
+
28
+	virtual ULONG addRef();
29
+
30
+	virtual ULONG release();
31
+
32
+	virtual ULONG getVersion();
33
+
34
+public:
35
+	virtual HRESULT init();
36
+
37
+	virtual HRESULT applyDataBase(DataBase*& pstart, unsigned int& size);
38
+
39
+	virtual HRESULT registerCoreHandle(EmsCoreI* handle, int run_priority, int protect_priority);
40
+
41
+	virtual HRESULT run();
42
+
43
+public:
44
+	static EmsCoreI* pCore;
45
+	static System sys;
46
+
47
+	static int run_priority;
48
+	static int protect_priority;
49
+
50
+private:
51
+	volatile long m_cRef;
52
+	const ULONG VERSION = 100;
53
+};
54
+
55
+#endif /* SERVICES_IMPL_EMSAPPIMPL_H_ */

+ 31
- 0
utils/DataBase.cpp Voir le fichier

@@ -0,0 +1,31 @@
1
+/*
2
+ * DataBase.cpp
3
+ *
4
+ *  Created on: 2018骞�7鏈�3鏃�
5
+ *      Author: vsbes
6
+ *     Content:
7
+ */
8
+
9
+#include "DataBase.h"
10
+#include "../common/type.h"
11
+
12
+DataBase::DataBase()
13
+{
14
+	// TODO Auto-generated constructor stub
15
+	pData = NULL;
16
+	datatype = 0;
17
+	min = 0;
18
+	max = 0;
19
+}
20
+
21
+DataBase::DataBase(void* pData, char datatype, std::string UUID, double min, double max):pData(pData),datatype(datatype),UUID(UUID),min(min),max(max)
22
+{
23
+	// TODO Auto-generated constructor stub
24
+
25
+}
26
+
27
+DataBase::~DataBase()
28
+{
29
+	// TODO Auto-generated destructor stub
30
+}
31
+

+ 49
- 0
utils/DataBase.h Voir le fichier

@@ -0,0 +1,49 @@
1
+/*
2
+ * DataBase.h
3
+ *
4
+ *  Created on: 2018骞�7鏈�3鏃�
5
+ *      Author: vsbes
6
+ *     Content:
7
+ */
8
+
9
+#ifndef UTIL_DATABASE_H_
10
+#define UTIL_DATABASE_H_
11
+
12
+#include "../common/Type.h"
13
+
14
+class DataBase
15
+{
16
+public:
17
+	DataBase();
18
+	DataBase(void* pData, char datatype, std::string UUID, double min, double max);
19
+	virtual ~DataBase();
20
+
21
+	void* pData;
22
+	char datatype;
23
+	std::string UUID;
24
+	double min;
25
+	double max;
26
+
27
+	void setData(std::string value)
28
+	{
29
+		switch (this->datatype)
30
+		{
31
+		case 'I':
32
+			*((long *)pData) = strtol(value.c_str(), NULL, 10);
33
+			break;
34
+
35
+		case 'F':
36
+			*((double *)pData) = strtod(value.c_str(), NULL);
37
+			break;
38
+
39
+		case 'S':
40
+			*((std::string *)pData) = value;
41
+			break;
42
+
43
+		default:
44
+			break;
45
+		}
46
+	}
47
+};
48
+
49
+#endif /* UTIL_DATABASE_H_ */

+ 49
- 0
utils/Util.cpp Voir le fichier

@@ -0,0 +1,49 @@
1
+/*
2
+ * Util.cpp
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#include "Util.h"
9
+#include "../services/impl/EmsAppImpl.h"
10
+
11
+Util::Util()
12
+{
13
+	// TODO Auto-generated constructor stub
14
+
15
+}
16
+
17
+Util::~Util()
18
+{
19
+	// TODO Auto-generated destructor stub
20
+}
21
+
22
+HRESULT Util::setItemStrValue(std::string id, std::string value, int priority)
23
+{
24
+	if (EmsAppImpl::pCore)
25
+	{
26
+		return EmsAppImpl::pCore->setItemStrValue(id, value, EmsAppImpl::run_priority + priority);
27
+	}
28
+
29
+	return S_FALSE;
30
+}
31
+
32
+HRESULT Util::setItemIntValue(std::string id, int value, int priority)
33
+{
34
+	if (EmsAppImpl::pCore)
35
+	{
36
+		return EmsAppImpl::pCore->setItemIntValue(id, value, EmsAppImpl::run_priority + priority);
37
+	}
38
+	return S_FALSE;
39
+}
40
+
41
+HRESULT Util::setItemFloatValue(std::string id, float value, int priority)
42
+{
43
+	if (EmsAppImpl::pCore)
44
+	{
45
+		return EmsAppImpl::pCore->setItemFloatValue(id, value, EmsAppImpl::run_priority + priority);
46
+	}
47
+	return S_FALSE;
48
+}
49
+

+ 28
- 0
utils/Util.h Voir le fichier

@@ -0,0 +1,28 @@
1
+/*
2
+ * Util.h
3
+ *
4
+ *  Created on: 2020年9月11日
5
+ *      Author: vsbes
6
+ */
7
+
8
+#ifndef UTILS_UTIL_H_
9
+#define UTILS_UTIL_H_
10
+
11
+#include <string>
12
+
13
+#include "../common/Type.h"
14
+
15
+class Util
16
+{
17
+public:
18
+	Util();
19
+	virtual ~Util();
20
+
21
+	static HRESULT setItemStrValue(std::string id, std::string value, int priority);
22
+
23
+	static HRESULT setItemIntValue(std::string id, int value, int priority);
24
+
25
+	static HRESULT setItemFloatValue(std::string id, float value, int priority);
26
+};
27
+
28
+#endif /* UTILS_UTIL_H_ */

+ 273
- 0
utils/easylogger/inc/elog.h Voir le fichier

@@ -0,0 +1,273 @@
1
+/*
2
+ * This file is part of the EasyLogger Library.
3
+ *
4
+ * Copyright (c) 2015-2019, Armink, <armink.ztl@gmail.com>
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining
7
+ * a copy of this software and associated documentation files (the
8
+ * 'Software'), to deal in the Software without restriction, including
9
+ * without limitation the rights to use, copy, modify, merge, publish,
10
+ * distribute, sublicense, and/or sell copies of the Software, and to
11
+ * permit persons to whom the Software is furnished to do so, subject to
12
+ * the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be
15
+ * included in all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ *
25
+ * Function: It is an head file for this library. You can see all be called functions.
26
+ * Created on: 2015-04-28
27
+ */
28
+
29
+#ifndef __ELOG_H__
30
+#define __ELOG_H__
31
+
32
+#include <elog_cfg.h>
33
+#include <stdint.h>
34
+#include <stddef.h>
35
+#include <stdbool.h>
36
+
37
+#ifdef __cplusplus
38
+extern "C" {
39
+#endif
40
+
41
+/* output log's level */
42
+#define ELOG_LVL_ASSERT                      0
43
+#define ELOG_LVL_ERROR                       1
44
+#define ELOG_LVL_WARN                        2
45
+#define ELOG_LVL_INFO                        3
46
+#define ELOG_LVL_DEBUG                       4
47
+#define ELOG_LVL_VERBOSE                     5
48
+
49
+/* the output silent level and all level for filter setting */
50
+#define ELOG_FILTER_LVL_SILENT               ELOG_LVL_ASSERT
51
+#define ELOG_FILTER_LVL_ALL                  ELOG_LVL_VERBOSE
52
+
53
+/* output log's level total number */
54
+#define ELOG_LVL_TOTAL_NUM                   6
55
+
56
+/* EasyLogger software version number */
57
+#define ELOG_SW_VERSION                      "2.2.99"
58
+
59
+/* EasyLogger assert for developer. */
60
+#ifdef ELOG_ASSERT_ENABLE
61
+    #define ELOG_ASSERT(EXPR)                                                 \
62
+    if (!(EXPR))                                                              \
63
+    {                                                                         \
64
+        if (elog_assert_hook == NULL) {                                       \
65
+            elog_a("elog", "(%s) has assert failed at %s:%ld.", #EXPR, __FUNCTION__, __LINE__); \
66
+            while (1);                                                        \
67
+        } else {                                                              \
68
+            elog_assert_hook(#EXPR, __FUNCTION__, __LINE__);                  \
69
+        }                                                                     \
70
+    }
71
+#else
72
+    #define ELOG_ASSERT(EXPR)                    ((void)0);
73
+#endif
74
+
75
+#ifndef ELOG_OUTPUT_ENABLE
76
+    #define elog_assert(tag, ...)
77
+    #define elog_error(tag, ...)
78
+    #define elog_warn(tag, ...)
79
+    #define elog_info(tag, ...)
80
+    #define elog_debug(tag, ...)
81
+    #define elog_verbose(tag, ...)
82
+#else /* ELOG_OUTPUT_ENABLE */
83
+    #if ELOG_OUTPUT_LVL >= ELOG_LVL_ASSERT
84
+        #define elog_assert(tag, ...) \
85
+                elog_output(ELOG_LVL_ASSERT, tag, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
86
+    #else
87
+        #define elog_assert(tag, ...)
88
+    #endif /* ELOG_OUTPUT_LVL >= ELOG_LVL_ASSERT */
89
+
90
+    #if ELOG_OUTPUT_LVL >= ELOG_LVL_ERROR
91
+        #define elog_error(tag, ...) \
92
+                elog_output(ELOG_LVL_ERROR, tag, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
93
+    #else
94
+        #define elog_error(tag, ...)
95
+    #endif /* ELOG_OUTPUT_LVL >= ELOG_LVL_ERROR */
96
+
97
+    #if ELOG_OUTPUT_LVL >= ELOG_LVL_WARN
98
+        #define elog_warn(tag, ...) \
99
+                elog_output(ELOG_LVL_WARN, tag, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
100
+    #else
101
+        #define elog_warn(tag, ...)
102
+    #endif /* ELOG_OUTPUT_LVL >= ELOG_LVL_WARN */
103
+
104
+    #if ELOG_OUTPUT_LVL >= ELOG_LVL_INFO
105
+        #define elog_info(tag, ...) \
106
+                elog_output(ELOG_LVL_INFO, tag, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
107
+    #else
108
+        #define elog_info(tag, ...)
109
+    #endif /* ELOG_OUTPUT_LVL >= ELOG_LVL_INFO */
110
+
111
+    #if ELOG_OUTPUT_LVL >= ELOG_LVL_DEBUG
112
+        #define elog_debug(tag, ...) \
113
+                elog_output(ELOG_LVL_DEBUG, tag, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
114
+    #else
115
+        #define elog_debug(tag, ...)
116
+    #endif /* ELOG_OUTPUT_LVL >= ELOG_LVL_DEBUG */
117
+
118
+    #if ELOG_OUTPUT_LVL == ELOG_LVL_VERBOSE
119
+        #define elog_verbose(tag, ...) \
120
+                elog_output(ELOG_LVL_VERBOSE, tag, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
121
+    #else
122
+        #define elog_verbose(tag, ...)
123
+    #endif /* ELOG_OUTPUT_LVL == ELOG_LVL_VERBOSE */
124
+#endif /* ELOG_OUTPUT_ENABLE */
125
+
126
+/* all formats index */
127
+typedef enum {
128
+    ELOG_FMT_LVL    = 1 << 0, /**< level */
129
+    ELOG_FMT_TAG    = 1 << 1, /**< tag */
130
+    ELOG_FMT_TIME   = 1 << 2, /**< current time */
131
+    ELOG_FMT_P_INFO = 1 << 3, /**< process info */
132
+    ELOG_FMT_T_INFO = 1 << 4, /**< thread info */
133
+    ELOG_FMT_DIR    = 1 << 5, /**< file directory and name */
134
+    ELOG_FMT_FUNC   = 1 << 6, /**< function name */
135
+    ELOG_FMT_LINE   = 1 << 7, /**< line number */
136
+} ElogFmtIndex;
137
+
138
+/* macro definition for all formats */
139
+#define ELOG_FMT_ALL    (ELOG_FMT_LVL|ELOG_FMT_TAG|ELOG_FMT_TIME|ELOG_FMT_P_INFO|ELOG_FMT_T_INFO| \
140
+    ELOG_FMT_DIR|ELOG_FMT_FUNC|ELOG_FMT_LINE)
141
+
142
+/* output log's tag filter */
143
+typedef struct {
144
+    uint8_t level;
145
+    char tag[ELOG_FILTER_TAG_MAX_LEN + 1];
146
+    bool tag_use_flag; /**< false : tag is no used   true: tag is used */
147
+} ElogTagLvlFilter, *ElogTagLvlFilter_t;
148
+
149
+/* output log's filter */
150
+typedef struct {
151
+    uint8_t level;
152
+    char tag[ELOG_FILTER_TAG_MAX_LEN + 1];
153
+    char keyword[ELOG_FILTER_KW_MAX_LEN + 1];
154
+    ElogTagLvlFilter tag_lvl[ELOG_FILTER_TAG_LVL_MAX_NUM];
155
+} ElogFilter, *ElogFilter_t;
156
+
157
+/* easy logger */
158
+typedef struct {
159
+    ElogFilter filter;
160
+    size_t enabled_fmt_set[ELOG_LVL_TOTAL_NUM];
161
+    bool init_ok;
162
+    bool output_enabled;
163
+    bool output_lock_enabled;
164
+    bool output_is_locked_before_enable;
165
+    bool output_is_locked_before_disable;
166
+
167
+#ifdef ELOG_COLOR_ENABLE
168
+    bool text_color_enabled;
169
+#endif
170
+
171
+}EasyLogger, *EasyLogger_t;
172
+
173
+/* EasyLogger error code */
174
+typedef enum {
175
+    ELOG_NO_ERR,
176
+} ElogErrCode;
177
+
178
+/* elog.c */
179
+ElogErrCode elog_init(void);
180
+void elog_start(void);
181
+void elog_set_output_enabled(bool enabled);
182
+bool elog_get_output_enabled(void);
183
+void elog_set_text_color_enabled(bool enabled);
184
+bool elog_get_text_color_enabled(void);
185
+void elog_set_fmt(uint8_t level, size_t set);
186
+void elog_set_filter(uint8_t level, const char *tag, const char *keyword);
187
+void elog_set_filter_lvl(uint8_t level);
188
+void elog_set_filter_tag(const char *tag);
189
+void elog_set_filter_kw(const char *keyword);
190
+void elog_set_filter_tag_lvl(const char *tag, uint8_t level);
191
+uint8_t elog_get_filter_tag_lvl(const char *tag);
192
+void elog_raw(const char *format, ...);
193
+void elog_output(uint8_t level, const char *tag, const char *file, const char *func,
194
+        const long line, const char *format, ...);
195
+void elog_output_lock_enabled(bool enabled);
196
+extern void (*elog_assert_hook)(const char* expr, const char* func, size_t line);
197
+void elog_assert_set_hook(void (*hook)(const char* expr, const char* func, size_t line));
198
+int8_t elog_find_lvl(const char *log);
199
+const char *elog_find_tag(const char *log, uint8_t lvl, size_t *tag_len);
200
+void elog_hexdump(const char *name, uint8_t width, uint8_t *buf, uint16_t size);
201
+
202
+#define elog_a(tag, ...)     elog_assert(tag, __VA_ARGS__)
203
+#define elog_e(tag, ...)     elog_error(tag, __VA_ARGS__)
204
+#define elog_w(tag, ...)     elog_warn(tag, __VA_ARGS__)
205
+#define elog_i(tag, ...)     elog_info(tag, __VA_ARGS__)
206
+#define elog_d(tag, ...)     elog_debug(tag, __VA_ARGS__)
207
+#define elog_v(tag, ...)     elog_verbose(tag, __VA_ARGS__)
208
+
209
+/**
210
+ * log API short definition
211
+ * NOTE: The `LOG_TAG` and `LOG_LVL` must defined before including the <elog.h> when you want to use log_x API.
212
+ */
213
+#if !defined(LOG_TAG)
214
+    #define LOG_TAG          "NO_TAG"
215
+#endif
216
+#if !defined(LOG_LVL)
217
+    #define LOG_LVL          ELOG_LVL_VERBOSE
218
+#endif
219
+#if LOG_LVL >= ELOG_LVL_ASSERT
220
+    #define log_a(...)       elog_a(LOG_TAG, __VA_ARGS__)
221
+#else
222
+    #define log_a(...)       ((void)0);
223
+#endif
224
+#if LOG_LVL >= ELOG_LVL_ERROR
225
+    #define log_e(...)       elog_e(LOG_TAG, __VA_ARGS__)
226
+#else
227
+    #define log_e(...)       ((void)0);
228
+#endif
229
+#if LOG_LVL >= ELOG_LVL_WARN
230
+    #define log_w(...)       elog_w(LOG_TAG, __VA_ARGS__)
231
+#else
232
+    #define log_w(...)       ((void)0);
233
+#endif
234
+#if LOG_LVL >= ELOG_LVL_INFO
235
+    #define log_i(...)       elog_i(LOG_TAG, __VA_ARGS__)
236
+#else
237
+    #define log_i(...)       ((void)0);
238
+#endif
239
+#if LOG_LVL >= ELOG_LVL_DEBUG
240
+    #define log_d(...)       elog_d(LOG_TAG, __VA_ARGS__)
241
+#else
242
+    #define log_d(...)       ((void)0);
243
+#endif
244
+#if LOG_LVL >= ELOG_LVL_VERBOSE
245
+    #define log_v(...)       elog_v(LOG_TAG, __VA_ARGS__)
246
+#else
247
+    #define log_v(...)       ((void)0);
248
+#endif
249
+
250
+/* assert API short definition */
251
+#if !defined(assert)
252
+    #define assert           ELOG_ASSERT
253
+#endif
254
+
255
+/* elog_buf.c */
256
+void elog_buf_enabled(bool enabled);
257
+void elog_flush(void);
258
+
259
+/* elog_async.c */
260
+void elog_async_enabled(bool enabled);
261
+size_t elog_async_get_log(char *log, size_t size);
262
+size_t elog_async_get_line_log(char *log, size_t size);
263
+
264
+/* elog_utils.c */
265
+size_t elog_strcpy(size_t cur_len, char *dst, const char *src);
266
+size_t elog_cpyln(char *line, const char *log, size_t len);
267
+void *elog_memcpy(void *dst, const void *src, size_t count);
268
+
269
+#ifdef __cplusplus
270
+}
271
+#endif
272
+
273
+#endif /* __ELOG_H__ */

+ 67
- 0
utils/easylogger/inc/elog_cfg.h Voir le fichier

@@ -0,0 +1,67 @@
1
+/*
2
+ * This file is part of the EasyLogger Library.
3
+ *
4
+ * Copyright (c) 2015, Armink, <armink.ztl@gmail.com>
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining
7
+ * a copy of this software and associated documentation files (the
8
+ * 'Software'), to deal in the Software without restriction, including
9
+ * without limitation the rights to use, copy, modify, merge, publish,
10
+ * distribute, sublicense, and/or sell copies of the Software, and to
11
+ * permit persons to whom the Software is furnished to do so, subject to
12
+ * the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be
15
+ * included in all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ *
25
+ * Function: It is the configure head file for this library.
26
+ * Created on: 2015-07-30
27
+ */
28
+
29
+#ifndef _ELOG_CFG_H_
30
+#define _ELOG_CFG_H_
31
+
32
+/* enable log output. default open this macro */
33
+#define ELOG_OUTPUT_ENABLE
34
+/* enable log write file. default open this macro */
35
+#define ELOG_FILE_ENABLE
36
+/* enable flush file cache. default open this macro */
37
+#define ELOG_FILE_FLUSH_CAHCE_ENABLE
38
+/* setting static output log level */
39
+#define ELOG_OUTPUT_LVL                      ELOG_LVL_INFO
40
+/* enable assert check */
41
+#define ELOG_ASSERT_ENABLE
42
+/* buffer size for every line's log */
43
+#define ELOG_LINE_BUF_SIZE                   512
44
+/* output line number max length */
45
+#define ELOG_LINE_NUM_MAX_LEN                5
46
+/* output filter's tag max length */
47
+#define ELOG_FILTER_TAG_MAX_LEN              16
48
+/* output filter's keyword max length */
49
+#define ELOG_FILTER_KW_MAX_LEN               16
50
+/* output filter's tag level max num */
51
+#define ELOG_FILTER_TAG_LVL_MAX_NUM          5
52
+/* output newline sign */
53
+#define ELOG_NEWLINE_SIGN                    "\n"
54
+/* enable log color */
55
+// #define ELOG_COLOR_ENABLE
56
+/* enable asynchronous output mode */
57
+#define ELOG_ASYNC_OUTPUT_ENABLE
58
+/* the highest output level for async mode, other level will sync output */
59
+#define ELOG_ASYNC_OUTPUT_LVL                ELOG_LVL_INFO
60
+/* buffer size for asynchronous output mode */
61
+#define ELOG_ASYNC_OUTPUT_BUF_SIZE           (ELOG_LINE_BUF_SIZE * 100)
62
+/* each asynchronous output's log which must end with newline sign */
63
+//#define ELOG_ASYNC_LINE_OUTPUT
64
+/* asynchronous output mode using POSIX pthread implementation */
65
+#define ELOG_ASYNC_OUTPUT_USING_PTHREAD
66
+
67
+#endif /* _ELOG_CFG_H_ */

+ 0
- 0
utils/easylogger/plugins/file/elog_file.c Voir le fichier


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff

Chargement…
Annuler
Enregistrer