Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
105434c6
Commit
105434c6
authored
Sep 14, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f6b61796
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
README.md
docs/README.md
+9
-9
gen_event_md.cpp
examples/gen_event_md/gen_event_md.cpp
+7
-1
No files found.
docs/README.md
View file @
105434c6
...
@@ -166,19 +166,19 @@
...
@@ -166,19 +166,19 @@
|型号|示例图片|
|型号|示例图片|
|---|--------|
|---|--------|
|HB-
G250|
<img
alt=
"HB-G250"
src=
"./主机类型/smartresize/HB-G2
50-web.png"
style=
"max-height:80px"
/>
|
|HB-
2050|
<img
alt=
"HB-2050"
src=
"./主机类型/smartresize/HB-20
50-web.png"
style=
"max-height:80px"
/>
|
|HB-
BJQ560|
<img
alt=
"HB-BJQ560"
src=
"./主机类型/smartresize/HB-BJQ560
-web.png"
style=
"max-height:80px"
/>
|
|HB-
2050-4G|
<img
alt=
"HB-2050-4G"
src=
"./主机类型/smartresize/HB-2050-4G
-web.png"
style=
"max-height:80px"
/>
|
|HB-
BJQ560B|
<img
alt=
"HB-BJQ560B"
src=
"./主机类型/smartresize/HB-BJQ560B
-web.png"
style=
"max-height:80px"
/>
|
|HB-
4040G|
<img
alt=
"HB-4040G"
src=
"./主机类型/smartresize/HB-4040G
-web.png"
style=
"max-height:80px"
/>
|
|HB-4040R|
<img
alt=
"HB-4040R"
src=
"./主机类型/smartresize/HB-4040R-web.png"
style=
"max-height:80px"
/>
|
|HB-4040R|
<img
alt=
"HB-4040R"
src=
"./主机类型/smartresize/HB-4040R-web.png"
style=
"max-height:80px"
/>
|
|HB-5050R|
<img
alt=
"HB-5050R"
src=
"./主机类型/smartresize/HB-5050R-web.png"
style=
"max-height:80px"
/>
|
|HB-5050G|
<img
alt=
"HB-5050G"
src=
"./主机类型/smartresize/HB-5050G-web.png"
style=
"max-height:80px"
/>
|
|HB-G1000|
<img
alt=
"HB-G1000"
src=
"./主机类型/smartresize/HB-G1000-web.png"
style=
"max-height:80px"
/>
|
|HB-5050G-4G|
<img
alt=
"HB-5050G-4G"
src=
"./主机类型/smartresize/HB-5050G-4G-web.png"
style=
"max-height:80px"
/>
|
|HB-G1000-4G|
<img
alt=
"HB-G1000-4G"
src=
"./主机类型/smartresize/HB-G1000-4G-web.png"
style=
"max-height:80px"
/>
|
|HB-5050G-4GW|
<img
alt=
"HB-5050G-4GW"
src=
"./主机类型/smartresize/HB-5050G-4GW-web.png"
style=
"max-height:80px"
/>
|
|HB-5050G-4GW|
<img
alt=
"HB-5050G-4GW"
src=
"./主机类型/smartresize/HB-5050G-4GW-web.png"
style=
"max-height:80px"
/>
|
|HB-5050R|
<img
alt=
"HB-5050R"
src=
"./主机类型/smartresize/HB-5050R-web.png"
style=
"max-height:80px"
/>
|
|HB-BJQ560|
<img
alt=
"HB-BJQ560"
src=
"./主机类型/smartresize/HB-BJQ560-web.png"
style=
"max-height:80px"
/>
|
|HB-BJQ560B|
<img
alt=
"HB-BJQ560B"
src=
"./主机类型/smartresize/HB-BJQ560B-web.png"
style=
"max-height:80px"
/>
|
|HB-G1000|
<img
alt=
"HB-G1000"
src=
"./主机类型/smartresize/HB-G1000-web.png"
style=
"max-height:80px"
/>
|
|HB-G1000|
<img
alt=
"HB-G1000"
src=
"./主机类型/smartresize/HB-G1000-web.png"
style=
"max-height:80px"
/>
|
|HB-G1000-4G|
<img
alt=
"HB-G1000-4G"
src=
"./主机类型/smartresize/HB-G1000-4G-web.png"
style=
"max-height:80px"
/>
|
|HB-G1000-4G|
<img
alt=
"HB-G1000-4G"
src=
"./主机类型/smartresize/HB-G1000-4G-web.png"
style=
"max-height:80px"
/>
|
|HB-5050G|
<img
alt=
"HB-5050G"
src=
"./主机类型/smartresize/HB-5050G-web.png"
style=
"max-height:80px"
/>
|
|HB-G250|
<img
alt=
"HB-G250"
src=
"./主机类型/smartresize/HB-G250-web.png"
style=
"max-height:80px"
/>
|
|HB-5050G-4G|
<img
alt=
"HB-5050G-4G"
src=
"./主机类型/smartresize/HB-5050G-4G-web.png"
style=
"max-height:80px"
/>
|
|HB-2050|
<img
alt=
"HB-2050"
src=
"./主机类型/smartresize/HB-2050-web.png"
style=
"max-height:80px"
/>
|
## 四、恒博扩展
## 四、恒博扩展
...
...
examples/gen_event_md/gen_event_md.cpp
View file @
105434c6
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
#include "../../include/hb_helper.h"
#include "../../include/hb_helper.h"
#include <jlib/win32/UnicodeTool.h>
#include <jlib/win32/UnicodeTool.h>
#include <jlib/win32/path_op.h>
#include <jlib/win32/path_op.h>
#include <map>
using
namespace
ademco
;
using
namespace
ademco
;
using
namespace
hb
;
using
namespace
hb
;
...
@@ -257,6 +258,8 @@ void print_imgs()
...
@@ -257,6 +258,8 @@ void print_imgs()
printf
(
"|型号|示例图片|
\n
"
printf
(
"|型号|示例图片|
\n
"
"|---|--------|
\n
"
);
"|---|--------|
\n
"
);
std
::
map
<
std
::
string
,
std
::
string
>
imgs
;
for
(
auto
e
:
AdemcoEvents
)
{
for
(
auto
e
:
AdemcoEvents
)
{
if
(
isMachineTypeEvent
(
e
))
{
if
(
isMachineTypeEvent
(
e
))
{
auto
t
=
hb
::
machineTypeFromAdemcoEvent
(
e
);
auto
t
=
hb
::
machineTypeFromAdemcoEvent
(
e
);
...
@@ -265,12 +268,15 @@ void print_imgs()
...
@@ -265,12 +268,15 @@ void print_imgs()
for
(
auto
brand
:
get_machine_brands
(
t
))
{
for
(
auto
brand
:
get_machine_brands
(
t
))
{
auto
path
=
brand_to_path
(
brand
);
auto
path
=
brand_to_path
(
brand
);
if
(
!
path
.
empty
())
{
if
(
!
path
.
empty
())
{
printf
(
R"(|%s|<img alt="%s" src="%s" style="max-height:80px" />|)"
"
\n
"
,
brand
.
data
(),
brand
.
data
(),
path
.
data
())
;
imgs
[
brand
]
=
path
;
}
}
}
}
}
}
}
}
for
(
auto
i
:
imgs
)
{
printf
(
R"(|%s|<img alt="%s" src="%s" style="max-height:80px" />|)"
"
\n
"
,
i
.
first
.
data
(),
i
.
first
.
data
(),
i
.
second
.
data
());
}
printf
(
"
\n\n
"
);
printf
(
"
\n\n
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment