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
41c53412
Commit
41c53412
authored
Jun 09, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show VolRef section
parent
c20aa06b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
+33
-7
wb/exe/wb_ldlist/src/wb_ldlist.cpp
wb/exe/wb_ldlist/src/wb_ldlist.cpp
+33
-7
No files found.
wb/exe/wb_ldlist/src/wb_ldlist.cpp
View file @
41c53412
/*
/*
* Proview $Id: wb_ldlist.cpp,v 1.
1 2006-05-11 07:11:22
claes Exp $
* Proview $Id: wb_ldlist.cpp,v 1.
2 2006-06-09 13:26:01
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "pwr.h"
#include "pwr.h"
#include "co_time.h"
#include "co_time.h"
#include "co_dcli.h"
#include "wb_erep.h"
#include "wb_erep.h"
#include "wb_vrepdbs.h"
#include "wb_vrepdbs.h"
...
@@ -35,6 +36,26 @@ static void usage( char *txt)
...
@@ -35,6 +36,26 @@ static void usage( char *txt)
cout
<<
txt
<<
endl
;
cout
<<
txt
<<
endl
;
}
}
void
ldlist_print
(
const
char
*
text
,
pwr_tVid
vid
,
const
char
*
name
,
pwr_tTime
*
time
)
{
char
timestr
[
40
];
time_AtoAscii
(
time
,
time_eFormat_DateAndTime
,
timestr
,
sizeof
(
timestr
));
cout
<<
text
;
for
(
int
i
=
0
;
i
<
(
int
)(
10
-
strlen
(
text
));
i
++
)
cout
<<
" "
;
cout
<<
" "
;
cout
<<
name
;
for
(
int
i
=
0
;
i
<
(
int
)(
15
-
strlen
(
name
));
i
++
)
cout
<<
" "
;
cout
<<
" "
;
cout
<<
timestr
<<
" ("
<<
time
->
tv_sec
<<
","
<<
time
->
tv_nsec
<<
") "
;
cout
<<
vid
<<
endl
;
}
int
main
(
int
main
(
int
argc
,
int
argc
,
char
*
argv
[]
char
*
argv
[]
...
@@ -44,7 +65,7 @@ int main (
...
@@ -44,7 +65,7 @@ int main (
int
oflag
=
0
;
int
oflag
=
0
;
char
c
;
char
c
;
pwr_tTime
time
;
pwr_tTime
time
;
char
timestr
[
40
]
;
pwr_tFileName
fname
;
while
(
--
argc
>
0
&&
(
*++
argv
)[
0
]
==
'-'
)
{
while
(
--
argc
>
0
&&
(
*++
argv
)[
0
]
==
'-'
)
{
while
((
c
=
*++
argv
[
0
]))
{
while
((
c
=
*++
argv
[
0
]))
{
...
@@ -65,14 +86,19 @@ int main (
...
@@ -65,14 +86,19 @@ int main (
if
(
argc
<
1
)
usage
(
"No load file given!
\n
"
);
if
(
argc
<
1
)
usage
(
"No load file given!
\n
"
);
wb_erep
*
erep
=
new
wb_erep
();
wb_erep
*
erep
=
new
wb_erep
();
wb_vrepdbs
*
vrep
=
new
wb_vrepdbs
(
erep
,
*
argv
);
dcli_translate_filename
(
fname
,
*
argv
);
wb_vrepdbs
*
vrep
=
new
wb_vrepdbs
(
erep
,
fname
);
vrep
->
load
();
vrep
->
load
();
vrep
->
time
(
&
time
);
vrep
->
time
(
&
time
);
time_AtoAscii
(
&
time
,
time_eFormat_DateAndTime
,
timestr
,
sizeof
(
timestr
));
cout
<<
"Name : "
<<
vrep
->
name
()
<<
endl
<<
ldlist_print
(
"Volume"
,
vrep
->
vid
(),
vrep
->
name
(),
&
time
);
"Time : "
<<
timestr
<<
" ("
<<
time
.
tv_sec
<<
","
<<
time
.
tv_nsec
<<
")"
<<
endl
;
// lf = fopen(*argv, "rb");
for
(
int
i
=
0
;
i
<
(
int
)
vrep
->
m_dbsmep
->
nVolRef
+
1
;
i
++
)
{
time
=
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
time
;
ldlist_print
(
"VolRef"
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
vid
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
name
,
&
time
);
}
}
}
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