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
391d66ec
Commit
391d66ec
authored
Dec 15, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error messages for not yet created loadfiles suppressed when building dev
parent
8a9ca8ee
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
88 additions
and
48 deletions
+88
-48
src/lib/co/src/co_dbs.c
src/lib/co/src/co_dbs.c
+2
-2
src/lib/co/src/co_msgwindow.cpp
src/lib/co/src/co_msgwindow.cpp
+5
-1
src/lib/co/src/co_msgwindow.h
src/lib/co/src/co_msgwindow.h
+3
-1
src/wbl/bcomp/src/os_linux/hw_x86/makefile
src/wbl/bcomp/src/os_linux/hw_x86/makefile
+3
-3
src/wbl/mcomp/src/os_linux/hw_x86/makefile
src/wbl/mcomp/src/os_linux/hw_x86/makefile
+3
-3
src/wbl/nmps/src/os_linux/hw_x86/makefile
src/wbl/nmps/src/os_linux/hw_x86/makefile
+2
-2
src/wbl/pwrb/src/os_linux/hw_x86/makefile
src/wbl/pwrb/src/os_linux/hw_x86/makefile
+3
-3
src/wbl/pwrs/src/os_linux/hw_x86/makefile
src/wbl/pwrs/src/os_linux/hw_x86/makefile
+2
-2
src/wbl/ssab/src/os_linux/hw_x86/makefile
src/wbl/ssab/src/os_linux/hw_x86/makefile
+2
-2
src/wbl/tlog/src/os_linux/hw_x86/makefile
src/wbl/tlog/src/os_linux/hw_x86/makefile
+2
-2
wb/exe/wb/src/wb.cpp
wb/exe/wb/src/wb.cpp
+2
-2
wb/exe/wb_cmd/src/os_linux/wb_cmd.cpp
wb/exe/wb_cmd/src/os_linux/wb_cmd.cpp
+16
-3
wb/lib/wb/src/wb_dbs.cpp
wb/lib/wb/src/wb_dbs.cpp
+3
-3
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+23
-8
wb/lib/wb/src/wb_erep.h
wb/lib/wb/src/wb_erep.h
+3
-2
wb/lib/wb/src/wb_ldh.cpp
wb/lib/wb/src/wb_ldh.cpp
+3
-3
wb/lib/wb/src/wb_ldh.h
wb/lib/wb/src/wb_ldh.h
+7
-2
wb/lib/wb/src/wb_wtt.cpp
wb/lib/wb/src/wb_wtt.cpp
+2
-2
xtt/lib/ge/src/ge.cpp
xtt/lib/ge/src/ge.cpp
+2
-2
No files found.
src/lib/co/src/co_dbs.c
View file @
391d66ec
/**
/**
* Proview $Id: co_dbs.c,v 1.2
4 2005-09-01 14:57:52
claes Exp $
* Proview $Id: co_dbs.c,v 1.2
5 2005-12-15 07:41:17
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
...
@@ -436,7 +436,7 @@ dbs_Map(pwr_tStatus *sts, const char *filename)
...
@@ -436,7 +436,7 @@ dbs_Map(pwr_tStatus *sts, const char *filename)
if
((
ret
=
stat
(
filename
,
&
sb
))
!=
0
)
{
if
((
ret
=
stat
(
filename
,
&
sb
))
!=
0
)
{
*
sts
=
errno_GetStatus
();
*
sts
=
errno_GetStatus
();
perror
(
"stat"
);
//
perror("stat");
return
NULL
;
return
NULL
;
}
}
...
...
src/lib/co/src/co_msgwindow.cpp
View file @
391d66ec
/**
/**
* Proview $Id: co_msgwindow.cpp,v 1.
7 2005-09-01 14:57:52
claes Exp $
* Proview $Id: co_msgwindow.cpp,v 1.
8 2005-12-15 07:41:17
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
...
@@ -55,6 +55,7 @@ static void msg_activate_help_message( Widget w, MsgWindow *msgw, XmAnyCallbackS
...
@@ -55,6 +55,7 @@ static void msg_activate_help_message( Widget w, MsgWindow *msgw, XmAnyCallbackS
static
void
msg_create_form
(
Widget
w
,
MsgWindow
*
msgw
,
XmAnyCallbackStruct
*
data
);
static
void
msg_create_form
(
Widget
w
,
MsgWindow
*
msgw
,
XmAnyCallbackStruct
*
data
);
MsgWindow
*
MsgWindow
::
default_window
=
0
;
MsgWindow
*
MsgWindow
::
default_window
=
0
;
int
MsgWindow
::
hide_info
=
0
;
static
void
msgw_find_wnav_cb
(
void
*
ctx
,
pwr_tOid
oid
)
static
void
msgw_find_wnav_cb
(
void
*
ctx
,
pwr_tOid
oid
)
{
{
...
@@ -72,10 +73,13 @@ static void msgw_find_plc_cb( void *ctx, pwr_tOid oid)
...
@@ -72,10 +73,13 @@ static void msgw_find_plc_cb( void *ctx, pwr_tOid oid)
void
MsgWindow
::
message
(
int
severity
,
const
char
*
text
,
msgw_ePop
pop
,
pwr_tOid
oid
,
bool
is_plc
)
void
MsgWindow
::
message
(
int
severity
,
const
char
*
text
,
msgw_ePop
pop
,
pwr_tOid
oid
,
bool
is_plc
)
{
{
if
(
default_window
)
{
if
(
default_window
)
{
default_window
->
insert
(
severity
,
text
,
oid
,
is_plc
);
default_window
->
insert
(
severity
,
text
,
oid
,
is_plc
);
}
}
else
{
else
{
if
(
hide_info
&&
severity
==
'I'
)
return
;
if
(
severity
==
'E'
||
severity
==
'W'
||
severity
==
'F'
||
severity
==
'I'
)
if
(
severity
==
'E'
||
severity
==
'W'
||
severity
==
'F'
||
severity
==
'I'
)
printf
(
"%c %s
\n
"
,
severity
,
text
);
printf
(
"%c %s
\n
"
,
severity
,
text
);
else
else
...
...
src/lib/co/src/co_msgwindow.h
View file @
391d66ec
/**
/**
* Proview $Id: co_msgwindow.h,v 1.
4 2005-10-25 15:28:10
claes Exp $
* Proview $Id: co_msgwindow.h,v 1.
5 2005-12-15 07:41:17
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
...
@@ -75,6 +75,7 @@ class MsgWindow {
...
@@ -75,6 +75,7 @@ class MsgWindow {
void
(
*
find_plc_cb
)(
void
*
,
pwr_tObjid
);
void
(
*
find_plc_cb
)(
void
*
,
pwr_tObjid
);
static
MsgWindow
*
default_window
;
static
MsgWindow
*
default_window
;
static
int
hide_info
;
void
map
();
void
map
();
void
unmap
();
void
unmap
();
...
@@ -93,6 +94,7 @@ class MsgWindow {
...
@@ -93,6 +94,7 @@ class MsgWindow {
static
void
dset_nodraw
()
{
if
(
default_window
)
default_window
->
set_nodraw
();}
static
void
dset_nodraw
()
{
if
(
default_window
)
default_window
->
set_nodraw
();}
static
void
dreset_nodraw
()
{
if
(
default_window
)
default_window
->
reset_nodraw
();}
static
void
dreset_nodraw
()
{
if
(
default_window
)
default_window
->
reset_nodraw
();}
static
void
get_parent_widget
(
Widget
*
w
)
{
*
w
=
default_window
->
parent_wid
;}
static
void
get_parent_widget
(
Widget
*
w
)
{
*
w
=
default_window
->
parent_wid
;}
static
void
hide_info_messages
(
int
hide
)
{
hide_info
=
hide
;}
};
};
#endif
#endif
...
...
src/wbl/bcomp/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -93,13 +93,13 @@ clean_ps_en_us := $(patsubst %.wb_load,clean_%_en_us.ps,$(wbl_sources))
...
@@ -93,13 +93,13 @@ clean_ps_en_us := $(patsubst %.wb_load,clean_%_en_us.ps,$(wbl_sources))
.SUFFIXES
:
.SUFFIXES
:
$(load_dir)/%.dbs
:
../../%.wb_load
$(load_dir)/%.dbs
:
../../%.wb_load
@
echo
"Generating
snapshot
for
$(source)
"
@
echo
"Generating
loadfile
for
$(source)
"
@
wb_cmd create snapshot /file
=
\"
$(source)
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(source)
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_%classes.h
:
../../%.wb_load
$(inc_dir)/pwr_%classes.h
:
../../%.wb_load
@
echo
"Generating struct files for
$(source)
classes..."
@
echo
"Generating struct files for
$(source)
classes..."
@
co_convert
-s
v
-d
$(inc_dir)
"
$(source)
"
@
co_convert
-s
-d
$(inc_dir)
"
$(source)
"
$(inc_dir)/pwr_%classes.hpp
:
../../%.wb_load
$(inc_dir)/pwr_%classes.hpp
:
../../%.wb_load
@
echo
"Generating hpp files for
$(source)
classes..."
@
echo
"Generating hpp files for
$(source)
classes..."
...
...
src/wbl/mcomp/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -93,13 +93,13 @@ clean_ps_en_us := $(patsubst %.wb_load,clean_%_en_us.ps,$(wbl_sources))
...
@@ -93,13 +93,13 @@ clean_ps_en_us := $(patsubst %.wb_load,clean_%_en_us.ps,$(wbl_sources))
.SUFFIXES
:
.SUFFIXES
:
$(load_dir)/%.dbs
:
../../%.wb_load
$(load_dir)/%.dbs
:
../../%.wb_load
@
echo
"Generating
snapshot
for
$(source)
"
@
echo
"Generating
loadfile
for
$(source)
"
@
wb_cmd create snapshot /file
=
\"
$(source)
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(source)
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_%classes.h
:
../../%.wb_load
$(inc_dir)/pwr_%classes.h
:
../../%.wb_load
@
echo
"Generating struct files for
$(source)
classes..."
@
echo
"Generating struct files for
$(source)
classes..."
@
co_convert
-s
v
-d
$(inc_dir)
"
$(source)
"
@
co_convert
-s
-d
$(inc_dir)
"
$(source)
"
$(inc_dir)/pwr_%classes.hpp
:
../../%.wb_load
$(inc_dir)/pwr_%classes.hpp
:
../../%.wb_load
@
echo
"Generating hpp files for
$(source)
classes..."
@
echo
"Generating hpp files for
$(source)
classes..."
...
...
src/wbl/nmps/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -44,8 +44,8 @@ clean :
...
@@ -44,8 +44,8 @@ clean :
realclean
:
clean $(clean_wbl)
realclean
:
clean $(clean_wbl)
$(load_dir)/nmps.dbs
:
$(load_dir)/nmps.dbs
:
@
echo
"Generating
snapshot
for nmps"
@
echo
"Generating
loadfile
for nmps"
@
wb_cmd create snapshot /file
=
\"
$(pwre_sroot)
/wbl/nmps/src/
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(pwre_sroot)
/wbl/nmps/src/
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_nmpsclasses.h
:
$(inc_dir)/pwr_nmpsclasses.h
:
...
...
src/wbl/pwrb/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -46,13 +46,13 @@ clean :
...
@@ -46,13 +46,13 @@ clean :
realclean
:
clean clean_pwrb_xtthelp clean_pwrb_html clean_baseclasses
realclean
:
clean clean_pwrb_xtthelp clean_pwrb_html clean_baseclasses
$(load_dir)/pwrb.dbs
:
$(load_dir)/pwrb.dbs
:
@
echo
"Generating
snapshot
for pwrb"
@
echo
"Generating
loadfile
for pwrb"
@
wb_cmd create snapshot /file
=
\"
$(pwre_sroot)
/wbl/pwrb/src/
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(pwre_sroot)
/wbl/pwrb/src/
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_baseclasses.h
:
$(inc_dir)/pwr_baseclasses.h
:
@
echo
"Generating struct files for pwrb classes..."
@
echo
"Generating struct files for pwrb classes..."
@
co_convert
-s
v
-d
$(inc_dir)
"
$(pwre_sroot)
/wbl/pwrb/src/pwrb_*.wb_load"
@
co_convert
-s
-d
$(inc_dir)
"
$(pwre_sroot)
/wbl/pwrb/src/pwrb_*.wb_load"
$(inc_dir)/pwr_baseclasses.hpp
:
$(inc_dir)/pwr_baseclasses.hpp
:
@
echo
"Generating hpp files for pwrb classes..."
@
echo
"Generating hpp files for pwrb classes..."
...
...
src/wbl/pwrs/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -44,8 +44,8 @@ clean : $(clean_wbl)
...
@@ -44,8 +44,8 @@ clean : $(clean_wbl)
realclean
:
clean clean_pwrs_xtthelp clean_pwrs_html clean_systemclasses
realclean
:
clean clean_pwrs_xtthelp clean_pwrs_html clean_systemclasses
$(load_dir)/pwrs.dbs
:
$(load_dir)/pwrs.dbs
:
@
echo
"Generating
snapshot
for pwrs"
@
echo
"Generating
loadfile
for pwrs"
@
wb_cmd create snapshot /file
=
\"
$(pwre_sroot)
/wbl/pwrs/src/
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(pwre_sroot)
/wbl/pwrs/src/
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_systemclasses.h
:
$(inc_dir)/pwr_systemclasses.h
:
...
...
src/wbl/ssab/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -43,8 +43,8 @@ clean :
...
@@ -43,8 +43,8 @@ clean :
realclean
:
clean $(clean_wbl)
realclean
:
clean $(clean_wbl)
$(load_dir)/ssab.dbs
:
$(load_dir)/ssab.dbs
:
@
echo
"Generating
snapshot
for ssab"
@
echo
"Generating
loadfile
for ssab"
@
wb_cmd create snapshot /file
=
\"
$(pwre_sroot)
/wbl/ssab/src/
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(pwre_sroot)
/wbl/ssab/src/
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_ssabclasses.h
:
$(inc_dir)/pwr_ssabclasses.h
:
...
...
src/wbl/tlog/src/os_linux/hw_x86/makefile
View file @
391d66ec
...
@@ -44,8 +44,8 @@ clean :
...
@@ -44,8 +44,8 @@ clean :
realclean
:
clean $(clean_wbl)
realclean
:
clean $(clean_wbl)
$(load_dir)/tlog.dbs
:
$(load_dir)/tlog.dbs
:
@
echo
"Generating
snapshot
for tlog"
@
echo
"Generating
loadfile
for tlog"
@
wb_cmd create snapshot /file
=
\"
$(pwre_sroot)
/wbl/tlog/src/
\"
/out
=
\"
$(target)
\"
@
wb_cmd
-q
-i
create snapshot /file
=
\"
$(pwre_sroot)
/wbl/tlog/src/
\"
/out
=
\"
$(target)
\"
@
chmod
a+w
$(target)
@
chmod
a+w
$(target)
$(inc_dir)/pwr_tlogclasses.h
:
$(inc_dir)/pwr_tlogclasses.h
:
...
...
wb/exe/wb/src/wb.cpp
View file @
391d66ec
/*
/*
* Proview $Id: wb.cpp,v 1.2
0 2005-11-22 12:18:20
claes Exp $
* Proview $Id: wb.cpp,v 1.2
1 2005-12-15 07:41:17
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
...
@@ -661,7 +661,7 @@ int main( int argc, char *argv[])
...
@@ -661,7 +661,7 @@ int main( int argc, char *argv[])
CoXHelp
*
xhelp
=
new
CoXHelp
(
mainwindow
,
0
,
xhelp_eUtility_Wtt
,
&
sts
);
CoXHelp
*
xhelp
=
new
CoXHelp
(
mainwindow
,
0
,
xhelp_eUtility_Wtt
,
&
sts
);
CoXHelp
::
set_default
(
xhelp
);
CoXHelp
::
set_default
(
xhelp
);
sts
=
ldh_OpenWB
(
&
wbctx
,
volumename_p
);
sts
=
ldh_OpenWB
(
&
wbctx
,
volumename_p
,
0
);
psts
(
sts
,
NULL
);
psts
(
sts
,
NULL
);
if
(
EVEN
(
sts
))
exit
(
sts
);
if
(
EVEN
(
sts
))
exit
(
sts
);
...
...
wb/exe/wb_cmd/src/os_linux/wb_cmd.cpp
View file @
391d66ec
/*
/*
* Proview $Id: wb_cmd.cpp,v 1.
7 2005-09-06 14:13:43
claes Exp $
* Proview $Id: wb_cmd.cpp,v 1.
8 2005-12-15 07:41:17
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
...
@@ -63,9 +63,11 @@ extern "C" {
...
@@ -63,9 +63,11 @@ extern "C" {
#include "wb_wnav_msg.h"
#include "wb_wnav_msg.h"
#include "wb_cmdc.h"
#include "wb_cmdc.h"
#include "wb.h"
#include "wb.h"
#include "co_msgwindow.h"
static
char
cmd_volume
[
80
];
static
char
cmd_volume
[
80
];
static
char
*
cmd_volume_p
=
0
;
static
char
*
cmd_volume_p
=
0
;
static
unsigned
int
cmd_options
=
0
;
static
void
usage
()
static
void
usage
()
{
{
...
@@ -100,7 +102,7 @@ static int cmd_get_wbctx( void *ctx, ldh_tWBContext *wbctx)
...
@@ -100,7 +102,7 @@ static int cmd_get_wbctx( void *ctx, ldh_tWBContext *wbctx)
}
}
else
else
{
{
sts
=
ldh_OpenWB
(
&
cmd
->
wbctx
,
cmd_volume_p
);
sts
=
ldh_OpenWB
(
&
cmd
->
wbctx
,
cmd_volume_p
,
cmd_options
);
if
(
ODD
(
sts
))
if
(
ODD
(
sts
))
*
wbctx
=
cmd
->
wbctx
;
*
wbctx
=
cmd
->
wbctx
;
}
}
...
@@ -297,6 +299,7 @@ int main(int argc, char *argv[])
...
@@ -297,6 +299,7 @@ int main(int argc, char *argv[])
int
i
;
int
i
;
char
str
[
256
]
;
char
str
[
256
]
;
Cmd
*
cmd
;
Cmd
*
cmd
;
int
quiet
=
0
;
cmd
=
new
Cmd
;
cmd
=
new
Cmd
;
...
@@ -328,6 +331,15 @@ int main(int argc, char *argv[])
...
@@ -328,6 +331,15 @@ int main(int argc, char *argv[])
else
else
cout
<<
"Syntax error, volume is missing"
<<
endl
;
cout
<<
"Syntax error, volume is missing"
<<
endl
;
break
;
break
;
case
'q'
:
// Quiet
quiet
=
1
;
break
;
case
'i'
:
// Ignore errors for dbs files not yet created
cmd_options
=
ldh_mWbOption_IgnoreDLoadError
;
MsgWindow
::
hide_info_messages
(
1
);
break
;
default:
default:
cout
<<
"Unknown argument: "
<<
argv
[
i
]
<<
endl
;
cout
<<
"Unknown argument: "
<<
argv
[
i
]
<<
endl
;
}
}
...
@@ -339,6 +351,7 @@ int main(int argc, char *argv[])
...
@@ -339,6 +351,7 @@ int main(int argc, char *argv[])
}
}
}
}
if
(
!
quiet
)
cout
<<
"
\n
\
cout
<<
"
\n
\
Proview is free software; covered by the GNU General Public License.
\n
\
Proview is free software; covered by the GNU General Public License.
\n
\
You can redistribute it and/or modify it under the terms of this license.
\n
\
You can redistribute it and/or modify it under the terms of this license.
\n
\
...
...
wb/lib/wb/src/wb_dbs.cpp
View file @
391d66ec
/*
/*
* Proview $Id: wb_dbs.cpp,v 1.2
3 2005-09-06 10:43:31
claes Exp $
* Proview $Id: wb_dbs.cpp,v 1.2
4 2005-12-15 07:41:17
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
...
@@ -317,7 +317,7 @@ bool wb_dbs::importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid,
...
@@ -317,7 +317,7 @@ bool wb_dbs::importHead(pwr_tOid oid, pwr_tCid cid, pwr_tOid poid,
char
buf
[
40
];
char
buf
[
40
];
time_AtoAscii
(
&
oep
->
o
.
time
,
time_eFormat_DateAndTime
,
buf
,
sizeof
(
buf
));
time_AtoAscii
(
&
oep
->
o
.
time
,
time_eFormat_DateAndTime
,
buf
,
sizeof
(
buf
));
printf
(
"Class version: %s %s
\n
"
,
name
,
buf
);
//
printf( "Class version: %s %s\n", name, buf);
}
}
return
true
;
return
true
;
...
@@ -479,7 +479,7 @@ wb_dbs::openFile()
...
@@ -479,7 +479,7 @@ wb_dbs::openFile()
if
((
ret
=
stat
(
m_fileName
,
&
sb
))
!=
0
)
{
if
((
ret
=
stat
(
m_fileName
,
&
sb
))
!=
0
)
{
sts
=
errno_GetStatus
();
sts
=
errno_GetStatus
();
perror
(
"stat"
);
//
perror("stat");
return
sts
;
return
sts
;
}
}
...
...
wb/lib/wb/src/wb_erep.cpp
View file @
391d66ec
/*
/*
* Proview $Id: wb_erep.cpp,v 1.4
1 2005-11-22 12:22:29
claes Exp $
* Proview $Id: wb_erep.cpp,v 1.4
2 2005-12-15 07:41:17
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
...
@@ -47,8 +47,8 @@ extern "C" {
...
@@ -47,8 +47,8 @@ extern "C" {
pwr_dImport
pwr_BindClasses
(
System
);
pwr_dImport
pwr_BindClasses
(
System
);
pwr_dImport
pwr_BindClasses
(
Base
);
pwr_dImport
pwr_BindClasses
(
Base
);
wb_erep
::
wb_erep
()
:
m_nRef
(
0
),
m_dir_cnt
(
0
),
m_volatile_idx
(
0
),
m_buffer_max
(
10
),
wb_erep
::
wb_erep
(
unsigned
int
options
)
:
m_nRef
(
0
),
m_dir_cnt
(
0
),
m_volatile_idx
(
0
),
m_buffer_max
(
10
),
m_ref_merep_occupied
(
false
)
m_ref_merep_occupied
(
false
),
m_options
(
options
)
{
{
m_merep
=
new
wb_merep
(
0
);
m_merep
=
new
wb_merep
(
0
);
...
@@ -492,6 +492,9 @@ void wb_erep::loadCommonMeta( pwr_tStatus *status)
...
@@ -492,6 +492,9 @@ void wb_erep::loadCommonMeta( pwr_tStatus *status)
MsgWindow
::
message
(
'I'
,
"Volume loaded"
,
vname
);
MsgWindow
::
message
(
'I'
,
"Volume loaded"
,
vname
);
}
}
catch
(
wb_error
&
e
)
{
catch
(
wb_error
&
e
)
{
if
(
m_options
&
ldh_mWbOption_IgnoreDLoadError
)
MsgWindow
::
message
(
'I'
,
"Unable to open volume"
,
vname
);
else
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
}
}
}
}
...
@@ -592,6 +595,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
...
@@ -592,6 +595,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
vol_cnt
++
;
vol_cnt
++
;
}
}
catch
(
wb_error
&
e
)
{
catch
(
wb_error
&
e
)
{
if
(
m_options
&
ldh_mWbOption_IgnoreDLoadError
)
MsgWindow
::
message
(
'I'
,
"Unable to open volume"
,
vname
);
else
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
}
}
}
}
...
@@ -613,6 +619,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
...
@@ -613,6 +619,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
MsgWindow
::
message
(
'I'
,
"Volume loaded"
,
vname
);
MsgWindow
::
message
(
'I'
,
"Volume loaded"
,
vname
);
}
}
catch
(
wb_error
&
e
)
{
catch
(
wb_error
&
e
)
{
if
(
m_options
&
ldh_mWbOption_IgnoreDLoadError
)
MsgWindow
::
message
(
'I'
,
"Unable to open volume"
,
vname
);
else
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
}
}
break
;
break
;
...
@@ -646,6 +655,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
...
@@ -646,6 +655,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
MsgWindow
::
message
(
'I'
,
"Volume loaded"
,
vname
);
MsgWindow
::
message
(
'I'
,
"Volume loaded"
,
vname
);
}
}
catch
(
wb_error
&
e
)
{
catch
(
wb_error
&
e
)
{
if
(
m_options
&
ldh_mWbOption_IgnoreDLoadError
)
MsgWindow
::
message
(
'I'
,
"Unable to open volume"
,
vname
);
else
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
}
}
}
}
...
@@ -677,6 +689,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
...
@@ -677,6 +689,9 @@ void wb_erep::loadMeta( pwr_tStatus *status, char *db)
vol_cnt
++
;
vol_cnt
++
;
}
}
catch
(
wb_error
&
e
)
{
catch
(
wb_error
&
e
)
{
if
(
m_options
&
ldh_mWbOption_IgnoreDLoadError
)
MsgWindow
::
message
(
'I'
,
"Unable to open volume"
,
vname
);
else
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
MsgWindow
::
message
(
'E'
,
"Unable to open volume"
,
vname
,
e
.
what
().
c_str
());
}
}
}
}
...
...
wb/lib/wb/src/wb_erep.h
View file @
391d66ec
/*
/*
* Proview $Id: wb_erep.h,v 1.2
1 2005-11-22 12:22:29
claes Exp $
* Proview $Id: wb_erep.h,v 1.2
2 2005-12-15 07:41:17
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
...
@@ -54,9 +54,10 @@ class wb_erep
...
@@ -54,9 +54,10 @@ class wb_erep
int
m_volatile_idx
;
int
m_volatile_idx
;
int
m_buffer_max
;
int
m_buffer_max
;
bool
m_ref_merep_occupied
;
bool
m_ref_merep_occupied
;
unsigned
int
m_options
;
public:
public:
wb_erep
();
wb_erep
(
unsigned
int
options
=
0
);
~
wb_erep
();
~
wb_erep
();
void
unref
();
void
unref
();
wb_erep
*
ref
();
wb_erep
*
ref
();
...
...
wb/lib/wb/src/wb_ldh.cpp
View file @
391d66ec
/*
/*
* Proview $Id: wb_ldh.cpp,v 1.4
8 2005-10-21 16:11:23
claes Exp $
* Proview $Id: wb_ldh.cpp,v 1.4
9 2005-12-15 07:41:17
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
...
@@ -1524,9 +1524,9 @@ ldh_OpenSession(ldh_tSession *session, ldh_tVolume volume,
...
@@ -1524,9 +1524,9 @@ ldh_OpenSession(ldh_tSession *session, ldh_tVolume volume,
it with objects from database on disk. */
it with objects from database on disk. */
pwr_tStatus
pwr_tStatus
ldh_OpenWB
(
ldh_tWorkbench
*
workbench
,
char
*
db
)
ldh_OpenWB
(
ldh_tWorkbench
*
workbench
,
char
*
db
,
unsigned
int
options
)
{
{
wb_erep
*
erep
=
new
wb_erep
();
wb_erep
*
erep
=
new
wb_erep
(
options
);
wb_env
*
env
=
new
wb_env
(
erep
);
wb_env
*
env
=
new
wb_env
(
erep
);
env
->
load
(
db
);
env
->
load
(
db
);
...
...
wb/lib/wb/src/wb_ldh.h
View file @
391d66ec
/*
/*
* Proview $Id: wb_ldh.h,v 1.3
1 2005-11-14 16:30:13
claes Exp $
* Proview $Id: wb_ldh.h,v 1.3
2 2005-12-15 07:41:17
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
...
@@ -124,6 +124,10 @@ typedef enum {
...
@@ -124,6 +124,10 @@ typedef enum {
ldh_eDId_
ldh_eDId_
}
ldh_eDId
;
}
ldh_eDId
;
typedef
enum
{
ldh_mWbOption_IgnoreDLoadError
=
1
<<
0
}
ldh_mWbOption
;
typedef
enum
{
typedef
enum
{
ldh_eEvent__
=
0
,
ldh_eEvent__
=
0
,
ldh_eEvent_ObjectCreated
,
ldh_eEvent_ObjectCreated
,
...
@@ -945,7 +949,8 @@ ldh_OpenSession (
...
@@ -945,7 +949,8 @@ ldh_OpenSession (
pwr_tStatus
pwr_tStatus
ldh_OpenWB
(
ldh_OpenWB
(
ldh_tWorkbench
*
WorkBench
,
ldh_tWorkbench
*
WorkBench
,
char
*
db
char
*
db
,
unsigned
int
options
);
);
pwr_tStatus
ldh_Paste
(
pwr_tStatus
ldh_Paste
(
...
...
wb/lib/wb/src/wb_wtt.cpp
View file @
391d66ec
/*
/*
* Proview $Id: wb_wtt.cpp,v 1.2
8 2005-11-22 12:32
:17 claes Exp $
* Proview $Id: wb_wtt.cpp,v 1.2
9 2005-12-15 07:41
:17 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
...
@@ -1365,7 +1365,7 @@ static int wtt_get_wbctx( void *ctx, ldh_tWBContext *wbctx)
...
@@ -1365,7 +1365,7 @@ static int wtt_get_wbctx( void *ctx, ldh_tWBContext *wbctx)
else
else
{
{
wtt
->
set_clock_cursor
();
wtt
->
set_clock_cursor
();
sts
=
ldh_OpenWB
(
&
wtt
->
wbctx
,
0
);
sts
=
ldh_OpenWB
(
&
wtt
->
wbctx
,
0
,
0
);
if
(
ODD
(
sts
))
if
(
ODD
(
sts
))
*
wbctx
=
wtt
->
wbctx
;
*
wbctx
=
wtt
->
wbctx
;
...
...
xtt/lib/ge/src/ge.cpp
View file @
391d66ec
/*
/*
* Proview $Id: ge.cpp,v 1.1
8 2005-12-14 13:07:16
claes Exp $
* Proview $Id: ge.cpp,v 1.1
9 2005-12-15 07:43:03
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
...
@@ -2607,7 +2607,7 @@ static int ge_get_ldhses_cb( void *ctx, ldh_tSesContext *ldhses, int load)
...
@@ -2607,7 +2607,7 @@ static int ge_get_ldhses_cb( void *ctx, ldh_tSesContext *ldhses, int load)
else
else
{
{
// Open workbench and attatch some volume
// Open workbench and attatch some volume
sts
=
ldh_OpenWB
(
&
wbctx
,
0
);
sts
=
ldh_OpenWB
(
&
wbctx
,
0
,
0
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
EVEN
(
sts
))
return
sts
;
// Attach first rootvolume, or if no rootvolume exist some other volume
// Attach first rootvolume, or if no rootvolume exist some other volume
...
...
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