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
05487901
Commit
05487901
authored
Jun 08, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check of classvolume versions in volume buildmethods
parent
5dd1fe5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
8 deletions
+41
-8
wb/lib/wb/src/wb_build.cpp
wb/lib/wb/src/wb_build.cpp
+41
-8
No files found.
wb/lib/wb/src/wb_build.cpp
View file @
05487901
/*
* Proview $Id: wb_build.cpp,v 1.
2 2006-05-17 06:04:29
claes Exp $
* Proview $Id: wb_build.cpp,v 1.
3 2006-06-08 13:40:18
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -29,6 +29,7 @@
#include "wb_build.h"
#include "wb_name.h"
#include "wb_lfu.h"
#include "wb_merep.h"
#include <Xm/Xm.h>
#include <Xm/XmP.h>
...
...
@@ -221,8 +222,21 @@ void wb_build::rootvolume( pwr_tVid vid)
dcli_translate_filename
(
fname
,
fname
);
m_sts
=
dcli_file_time
(
fname
,
&
dbs_time
);
// Get time for classvolumes
wb_merep
*
merep
=
((
wb_vrep
*
)
m_session
)
->
merep
();
pwr_tTime
mtime
=
pwr_cNTime
;
pwr_tTime
t
;
pwr_tStatus
sts
;
for
(
wb_mvrep
*
mvrep
=
merep
->
volume
(
&
sts
);
ODD
(
sts
);
mvrep
=
merep
->
nextVolume
(
&
sts
,
mvrep
->
vid
()))
{
mvrep
->
time
(
&
t
);
if
(
time_Acomp
(
&
t
,
&
mtime
)
==
1
)
mtime
=
t
;
}
if
(
opt
.
force
||
opt
.
manual
||
evenSts
()
||
time_Acomp
(
&
modtime
,
&
dbs_time
)
==
1
||
plcsts
!=
PWRB__NOBUILT
)
{
time_Acomp
(
&
mtime
,
&
dbs_time
)
==
1
||
plcsts
!=
PWRB__NOBUILT
)
{
m_sts
=
lfu_create_loadfile
(
(
ldh_tSession
*
)
&
m_session
);
if
(
evenSts
())
return
;
m_sts
=
ldh_CreateLoadFile
(
(
ldh_tSession
*
)
&
m_session
);
...
...
@@ -290,8 +304,31 @@ void wb_build::classvolume( pwr_tVid vid)
dcli_translate_filename
(
fname
,
fname
);
fsts
=
dcli_file_time
(
fname
,
&
dbs_time
);
// Get time for classvolumes
wb_merep
*
merep
=
((
wb_erep
*
)
m_session
.
env
())
->
merep
();
pwr_tTime
mtime
=
pwr_cNTime
;
pwr_tTime
t
;
pwr_tStatus
sts
;
for
(
wb_mvrep
*
mvrep
=
merep
->
volume
(
&
sts
);
ODD
(
sts
);
mvrep
=
merep
->
nextVolume
(
&
sts
,
mvrep
->
vid
()))
{
if
(
m_session
.
vid
()
==
mvrep
->
vid
())
continue
;
// Check only system class and manufact class volumes
if
(
mvrep
->
vid
()
>
cdh_cSystemClassVolMax
&&
(
mvrep
->
vid
()
<
cdh_cManufactClassVolMin
||
mvrep
->
vid
()
>
cdh_cManufactClassVolMax
))
continue
;
mvrep
->
time
(
&
t
);
if
(
time_Acomp
(
&
t
,
&
mtime
)
==
1
)
mtime
=
t
;
}
// Create new loadfile
if
(
EVEN
(
fsts
)
||
wbl_time
.
tv_sec
>
dbs_time
.
tv_sec
)
{
if
(
opt
.
force
||
EVEN
(
fsts
)
||
wbl_time
.
tv_sec
>
dbs_time
.
tv_sec
||
mtime
.
tv_sec
>
dbs_time
.
tv_sec
)
{
sprintf
(
cmd
,
"create snapshot/file=
\"
$pwrp_db/%s.wb_load
\"
"
,
name
);
m_sts
=
m_wnav
->
command
(
cmd
);
}
...
...
@@ -304,7 +341,7 @@ void wb_build::classvolume( pwr_tVid vid)
fsts
=
dcli_file_time
(
fname
,
&
h_time
);
// Create new struct file
if
(
EVEN
(
fsts
)
||
wbl_time
.
tv_sec
>
h_time
.
tv_sec
)
{
if
(
opt
.
force
||
EVEN
(
fsts
)
||
wbl_time
.
tv_sec
>
h_time
.
tv_sec
)
{
sprintf
(
cmd
,
"create struct/file=
\"
$pwrp_db/%s.wb_load
\"
"
,
name
);
m_sts
=
m_wnav
->
command
(
cmd
);
}
...
...
@@ -515,7 +552,6 @@ void wb_build::xttgraph( pwr_tOid oid)
void
wb_build
::
webhandler
(
pwr_tOid
oid
)
{
pwr_tTime
modtime
;
char
timestr
[
40
];
pwr_tString80
file_name
,
name
;
pwr_tFileName
fname
;
pwr_tTime
ftime
;
...
...
@@ -531,9 +567,6 @@ void wb_build::webhandler( pwr_tOid oid)
modtime
=
o
.
modTime
();
time_AtoAscii
(
&
modtime
,
time_eFormat_DateAndTime
,
timestr
,
sizeof
(
timestr
));
printf
(
"WebHandler time: %s
\n
"
,
timestr
);
wb_attribute
a
=
m_session
.
attribute
(
oid
,
"RtBody"
,
"FileName"
);
if
(
!
a
)
{
m_sts
=
a
.
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