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
c19311ab
Commit
c19311ab
authored
Nov 22, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Functions for cashe
parent
f227d32b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
wb/lib/wb/src/wb_vrepext.cpp
wb/lib/wb/src/wb_vrepext.cpp
+17
-4
wb/lib/wb/src/wb_vrepext.h
wb/lib/wb/src/wb_vrepext.h
+3
-1
No files found.
wb/lib/wb/src/wb_vrepext.cpp
View file @
c19311ab
/*
* Proview $Id: wb_vrepext.cpp,v 1.
5 2005-09-20 13:14:2
8 claes Exp $
* Proview $Id: wb_vrepext.cpp,v 1.
6 2005-11-22 12:28:1
8 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -129,7 +129,7 @@ wb_orep *wb_vrepext::object(pwr_tStatus *sts, pwr_tOid oid)
wb_cdef
cdef
=
wb_cdef
(
cdrep
);
ext_object
exto
(
&
amsg
.
Object
,
m_vid
,
cdef
);
m_cashe
=
exto
;
cashe_insert
(
exto
)
;
wb_orepext
*
orep
=
new
wb_orepext
(
this
,
exto
);
return
orep
;
}
...
...
@@ -411,7 +411,7 @@ wb_orep *wb_vrepext::createObject(pwr_tStatus *sts, wb_cdef cdef, wb_destination
if
(
ODD
(
amsg
.
Object
.
Status
))
{
*
sts
=
LDH__SUCCESS
;
ext_object
exto
(
&
amsg
.
Object
,
m_vid
,
cdef
);
m_cashe
=
exto
;
cashe_insert
(
exto
)
;
wb_orepext
*
orep
=
new
wb_orepext
(
this
,
exto
);
return
orep
;
}
...
...
@@ -485,7 +485,7 @@ wb_orep *wb_vrepext::copyObject(pwr_tStatus *sts, const wb_orep *orep, wb_destin
wb_cdef
cdef
=
wb_cdef
(
cdrep
);
ext_object
exto
(
&
amsg
.
Object
,
m_vid
,
cdef
);
m_cashe
=
exto
;
cashe_insert
(
exto
)
;
wb_orepext
*
orep
=
new
wb_orepext
(
this
,
exto
);
return
orep
;
}
...
...
@@ -612,9 +612,22 @@ bool wb_vrepext::renameObject(pwr_tStatus *sts, wb_orep *orep, wb_name &name)
*
sts
=
amsg
.
Any
.
Status
;
return
false
;
}
// Remove from cashe
cashe_remove
(
orep
->
oid
().
oix
);
return
true
;
}
void
wb_vrepext
::
cashe_insert
(
ext_object
&
eo
)
{
m_cashe
=
eo
;
}
void
wb_vrepext
::
cashe_remove
(
pwr_tOix
oix
)
{
if
(
m_cashe
.
m_oid
.
oix
==
oix
)
m_cashe
.
m_oid
=
pwr_cNObjid
;
}
bool
wb_vrepext
::
commit
(
pwr_tStatus
*
sts
)
{
vext_sQMsg
qmsg
;
...
...
wb/lib/wb/src/wb_vrepext.h
View file @
c19311ab
/*
* Proview $Id: wb_vrepext.h,v 1.
6 2005-10-25 12:04:25
claes Exp $
* Proview $Id: wb_vrepext.h,v 1.
7 2005-11-22 12:28:18
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -299,6 +299,8 @@ public:
private:
void
put
(
vext_sQMsg
*
msg
,
int
size
,
pwr_tStatus
*
sts
);
void
receive
(
vext_sAMsg
*
msg
,
int
size
,
pwr_tStatus
*
sts
);
void
cashe_insert
(
ext_object
&
eo
);
void
cashe_remove
(
pwr_tOix
oix
);
};
#endif
...
...
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