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
15973b78
Commit
15973b78
authored
May 22, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a throw added in updateObject
parent
3fa82e1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
wb/lib/wb/src/wb_vrepdb.cpp
wb/lib/wb/src/wb_vrepdb.cpp
+16
-15
No files found.
wb/lib/wb/src/wb_vrepdb.cpp
View file @
15973b78
/*
* Proview $Id: wb_vrepdb.cpp,v 1.4
2 2006-05-21 22:30:50 lw
Exp $
* Proview $Id: wb_vrepdb.cpp,v 1.4
3 2006-05-22 09:38:08 claes
Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1606,27 +1606,26 @@ void wb_vrepdb::updateMeta()
printf
(
"vrepdb: %s
\n
"
,
e
.
what
());
return
;
}
catch
(
wb_error
&
e
)
{
printf
(
"vrepdb: %s
\n
"
,
e
.
what
());
printf
(
"vrepdb: %s
\n
"
,
e
.
what
()
.
c_str
()
);
return
;
}
if
(
m_classCount
==
0
)
return
;
if
(
m_classCount
!=
0
)
{
char
buff
[
256
];
sprintf
(
buff
,
"A total of %d object instances of %d classes were updated"
,
m_totalInstanceCount
,
m_classCount
);
char
buff
[
256
];
sprintf
(
buff
,
"A total of %d object instances of %d classes were updated"
,
m_totalInstanceCount
,
m_classCount
);
MsgWindow
::
message
(
'I'
,
buff
);
MsgWindow
::
message
(
'I'
,
buff
);
pwr_tStatus
sts
=
0
;
commit
(
&
sts
);
pwr_tStatus
sts
=
0
;
commit
(
&
sts
);
if
(
sts
)
{
MsgWindow
::
message
(
co_error
(
sts
),
"Could not save class updates to database"
);
return
;
if
(
sts
)
{
MsgWindow
::
message
(
co_error
(
sts
),
"Could not save class updates to database"
);
return
;
}
}
m_merep
->
copyFiles
(
m_fileName
,
m_erep
->
merep
());
delete
m_merep
;
m_merep
=
new
wb_merep
(
m_fileName
,
m_erep
,
this
);
...
...
@@ -1721,7 +1720,7 @@ void wb_vrepdb::updateObject(pwr_tOid oid, pwr_tCid cid)
time_AtoAscii
(
&
o_time
,
time_eFormat_DateAndTime
,
o_timbuf
,
sizeof
(
o_timbuf
));
sprintf
(
buff
,
"Class
\"
%s
\"
[%s], %d instance%s, does not exist in global scope"
,
o_crep
->
name
(),
o_timbuf
,
m_instanceCount
,
(
m_instanceCount
==
1
?
""
:
"s"
));
}
else
{
}
else
if
(
o_crep
!=
0
)
{
o_time
=
o_crep
->
ohTime
();
n_time
=
n_crep
->
ohTime
();
time_AtoAscii
(
&
o_time
,
time_eFormat_DateAndTime
,
o_timbuf
,
sizeof
(
o_timbuf
));
...
...
@@ -1734,6 +1733,8 @@ void wb_vrepdb::updateObject(pwr_tOid oid, pwr_tCid cid)
}
o_crep
=
m_merep
->
cdrep
(
&
sts
,
cid
);
if
(
o_crep
==
0
)
throw
wb_error
(
sts
);
n_crep
=
m_merepCheck
->
cdrep
(
&
sts
,
cid
);
if
(
n_crep
==
0
)
{
...
...
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