Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
0612f683
Commit
0612f683
authored
Oct 24, 2019
by
pwrd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Time constants NotATime and NotADeltaTime added to wbl_load
parent
72aa5ddc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
wb/lib/wb/src/wb_print_wbl.cpp
wb/lib/wb/src/wb_print_wbl.cpp
+4
-0
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+4
-0
No files found.
wb/lib/wb/src/wb_print_wbl.cpp
View file @
0612f683
...
...
@@ -517,6 +517,8 @@ bool wb_print_wbl::printValue(wb_volume& v, pwr_eType type, unsigned int flags,
strcpy
(
sval
,
"ATTIME_MIN"
);
else
if
(
memcmp
(
val
,
&
pwr_cAtMax
,
sizeof
(
pwr_tTime
))
==
0
)
strcpy
(
sval
,
"ATTIME_MAX"
);
else
if
(
memcmp
(
val
,
&
pwr_cNotATime
,
sizeof
(
pwr_tTime
))
==
0
)
strcpy
(
sval
,
"NotATime"
);
else
{
sts
=
time_AtoAscii
(
(
pwr_tTime
*
)
val
,
time_eFormat_DateAndTime
,
timbuf
,
sizeof
(
timbuf
));
...
...
@@ -535,6 +537,8 @@ bool wb_print_wbl::printValue(wb_volume& v, pwr_eType type, unsigned int flags,
strcpy
(
sval
,
"DTTIME_MIN"
);
else
if
(
memcmp
(
val
,
&
pwr_cDtMax
,
sizeof
(
pwr_tDeltaTime
))
==
0
)
strcpy
(
sval
,
"DTTIME_MAX"
);
else
if
(
memcmp
(
val
,
&
pwr_cNotADeltaTime
,
sizeof
(
pwr_tDeltaTime
))
==
0
)
strcpy
(
sval
,
"NotADeltaTime"
);
else
{
sts
=
time_DtoAscii
((
pwr_tDeltaTime
*
)
val
,
1
,
timbuf
,
sizeof
(
timbuf
));
if
(
ODD
(
sts
))
{
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
0612f683
...
...
@@ -2206,6 +2206,8 @@ int wb_wblnode::attrStringToValue(int type_id, char* value_str,
memcpy
(
buffer_ptr
,
&
pwr_cAtMin
,
sizeof
(
pwr_tTime
));
else
if
(
streq
(
value_str
,
"ATTIME_MAX"
))
memcpy
(
buffer_ptr
,
&
pwr_cAtMax
,
sizeof
(
pwr_tTime
));
else
if
(
streq
(
value_str
,
"NotATime"
))
memcpy
(
buffer_ptr
,
&
pwr_cNotATime
,
sizeof
(
pwr_tTime
));
else
{
sts
=
time_AsciiToA
(
value_str
,
&
time
);
if
(
EVEN
(
sts
))
...
...
@@ -2221,6 +2223,8 @@ int wb_wblnode::attrStringToValue(int type_id, char* value_str,
memcpy
(
buffer_ptr
,
&
pwr_cDtMin
,
sizeof
(
pwr_tDeltaTime
));
else
if
(
streq
(
value_str
,
"DTTIME_MAX"
))
memcpy
(
buffer_ptr
,
&
pwr_cDtMax
,
sizeof
(
pwr_tDeltaTime
));
else
if
(
streq
(
value_str
,
"NotADeltaTime"
))
memcpy
(
buffer_ptr
,
&
pwr_cNotADeltaTime
,
sizeof
(
pwr_tDeltaTime
));
else
{
sts
=
time_AsciiToD
(
value_str
,
&
deltatime
);
if
(
EVEN
(
sts
))
...
...
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