Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IQRF Gateway Daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Open source
IQRF Gateway Daemon
Commits
44177aad
Commit
44177aad
authored
Nov 22, 2020
by
Frantisek Mikulu
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver code in shared_ptr
parent
77ae581b
Pipeline
#4291
failed with stages
in 6 minutes and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
src/IqrfInfo/IqrfInfo.cpp
src/IqrfInfo/IqrfInfo.cpp
+3
-3
src/JsCache/JsCache.cpp
src/JsCache/JsCache.cpp
+4
-3
src/include/IJsCacheService.h
src/include/IJsCacheService.h
+12
-6
No files found.
src/IqrfInfo/IqrfInfo.cpp
View file @
44177aad
...
...
@@ -1222,7 +1222,7 @@ namespace iqrf {
IJsCacheService
::
StdDriver
driver
;
driver
=
m_iJsCacheService
->
getDriver
(
driverId
,
driverVer
);
if
(
driver
.
isValid
())
{
str2load
+=
driver
.
getDriver
();
str2load
+=
*
driver
.
getDriver
();
}
else
{
TRC_WARNING
(
"Inconsistency in driver versions: "
<<
PAR
(
driverId
)
<<
PAR
(
driverVer
)
<<
" no driver found"
);
...
...
@@ -1556,12 +1556,12 @@ namespace iqrf {
", ?"
", ?"
");"
<<
drv
.
getNotes
()
<<
*
drv
.
getNotes
()
<<
name
<<
version
<<
standardId
<<
drv
.
getVersionFlags
()
<<
drv
.
getDriver
()
<<
*
drv
.
getDriver
()
;
}
...
...
src/JsCache/JsCache.cpp
View file @
44177aad
...
...
@@ -958,11 +958,12 @@ namespace iqrf {
int
versionFlag
;
double
version
;
std
::
string
driver
,
notes
;
std
::
shared_ptr
<
std
::
string
>
notes
(
shape_new
std
::
string
());
std
::
shared_ptr
<
std
::
string
>
driver
(
shape_new
std
::
string
());
POINTER_GET_DOUBLE
(
""
,
&
doc
,
"/version"
,
version
,
fname
);
POINTER_GET_INT
(
""
,
&
doc
,
"/versionFlags"
,
versionFlag
,
fname
);
POINTER_GET_STRING
(
""
,
&
doc
,
"/driver"
,
driver
,
fname
);
POINTER_GET_STRING
(
""
,
&
doc
,
"/notes"
,
notes
,
fname
);
POINTER_GET_STRING
(
""
,
&
doc
,
"/driver"
,
*
driver
,
fname
);
POINTER_GET_STRING
(
""
,
&
doc
,
"/notes"
,
*
notes
,
fname
);
stdDriver
.
second
=
StdDriver
(
stdItem
.
first
,
stdItem
.
second
.
m_name
,
version
,
driver
,
notes
,
versionFlag
);
}
// for 3
}
// for 2
...
...
src/include/IJsCacheService.h
View file @
44177aad
...
...
@@ -71,7 +71,13 @@ namespace iqrf {
StdDriver
()
:
m_valid
(
false
)
{}
StdDriver
(
int
id
,
const
std
::
string
&
name
,
double
version
,
const
std
::
string
&
driver
,
const
std
::
string
&
notes
,
int
verFlags
)
StdDriver
(
int
id
,
const
std
::
string
&
name
,
double
version
,
const
std
::
shared_ptr
<
std
::
string
>
&
driver
,
const
std
::
shared_ptr
<
std
::
string
>
&
notes
,
int
verFlags
)
:
m_valid
(
true
)
,
m_id
(
id
)
,
m_version
(
version
)
...
...
@@ -81,9 +87,9 @@ namespace iqrf {
,
m_notes
(
notes
)
{}
bool
isValid
()
const
{
return
m_valid
;
}
const
std
::
string
&
getName
()
const
{
return
m_name
;
}
const
std
::
s
tring
&
getDriver
()
const
{
return
m_driver
;
}
const
std
::
s
tring
&
getNotes
()
const
{
return
m_notes
;
}
const
std
::
string
&
getName
()
const
{
return
m_name
;
}
const
std
::
s
hared_ptr
<
std
::
string
>
&
getDriver
()
const
{
return
m_driver
;
}
const
std
::
s
hared_ptr
<
std
::
string
>
&
getNotes
()
const
{
return
m_notes
;
}
int
getVersionFlags
()
const
{
return
m_versionFlags
;
}
double
getVersion
()
const
{
return
m_version
;
}
int
getId
()
const
{
return
m_id
;
}
...
...
@@ -93,8 +99,8 @@ namespace iqrf {
double
m_version
=
0
;
int
m_versionFlags
=
0
;
std
::
string
m_name
;
std
::
s
tring
m_driver
;
std
::
s
tring
m_notes
;
std
::
s
hared_ptr
<
std
::
string
>
m_driver
;
std
::
s
hared_ptr
<
std
::
string
>
m_notes
;
};
class
Package
...
...
Frantisek Mikulu
@mikuluf
mentioned in issue
#178 (closed)
·
Nov 22, 2020
mentioned in issue
#178 (closed)
mentioned in issue #178
Toggle commit list
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