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
9aa329a7
Commit
9aa329a7
authored
Feb 21, 2003
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
7bd0340c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
20 deletions
+27
-20
wb/lib/wb/src/wb_adrep.cpp
wb/lib/wb/src/wb_adrep.cpp
+2
-2
wb/lib/wb/src/wb_adrep.h
wb/lib/wb/src/wb_adrep.h
+2
-2
wb/lib/wb/src/wb_attribute.cpp
wb/lib/wb/src/wb_attribute.cpp
+20
-13
wb/lib/wb/src/wb_attribute.h
wb/lib/wb/src/wb_attribute.h
+1
-1
wb/lib/wb/src/wb_ldh.cpp
wb/lib/wb/src/wb_ldh.cpp
+1
-1
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+1
-1
No files found.
wb/lib/wb/src/wb_adrep.cpp
View file @
9aa329a7
...
@@ -16,7 +16,7 @@ wb_adrep *wb_adrep::ref()
...
@@ -16,7 +16,7 @@ wb_adrep *wb_adrep::ref()
}
}
wb_adrep
::
wb_adrep
(
wb_orepdbs
&
o
)
:
m_nRef
(
0
),
m_orep
(
&
o
),
m_sts
(
LDH__SUCCESS
),
wb_adrep
::
wb_adrep
(
wb_orepdbs
&
o
)
:
m_nRef
(
0
),
m_orep
(
&
o
),
m_sts
(
LDH__SUCCESS
),
m_
buffer
Class
(
pwr_eClass__
)
m_
sub
Class
(
pwr_eClass__
)
{
{
m_orep
->
ref
();
m_orep
->
ref
();
...
@@ -112,7 +112,7 @@ wb_adrep::wb_adrep( wb_orepdbs& o): m_nRef(0), m_orep(&o), m_sts(LDH__SUCCESS),
...
@@ -112,7 +112,7 @@ wb_adrep::wb_adrep( wb_orepdbs& o): m_nRef(0), m_orep(&o), m_sts(LDH__SUCCESS),
m_flags
=
attr
.
Info
.
Flags
;
m_flags
=
attr
.
Info
.
Flags
;
m_flags
|=
PWR_MASK_BUFFER
;
m_flags
|=
PWR_MASK_BUFFER
;
m_tid
=
0
;
m_tid
=
0
;
m_
buffer
Class
=
attr
.
Class
;
m_
sub
Class
=
attr
.
Class
;
break
;
break
;
}
}
...
...
wb/lib/wb/src/wb_adrep.h
View file @
9aa329a7
...
@@ -25,7 +25,7 @@ class wb_adrep
...
@@ -25,7 +25,7 @@ class wb_adrep
int
m_flags
;
int
m_flags
;
pwr_tTid
m_tid
;
pwr_tTid
m_tid
;
pwr_tPgmName
m_pgmname
;
pwr_tPgmName
m_pgmname
;
pwr_
eClass
m_buffer
Class
;
pwr_
tCid
m_sub
Class
;
friend
class
wb_bdrep
;
friend
class
wb_bdrep
;
friend
class
wb_cdrep
;
friend
class
wb_cdrep
;
...
@@ -55,7 +55,7 @@ class wb_adrep
...
@@ -55,7 +55,7 @@ class wb_adrep
pwr_eBix
bix
();
pwr_eBix
bix
();
int
flags
()
{
return
m_flags
;}
int
flags
()
{
return
m_flags
;}
pwr_tOid
boid
();
pwr_tOid
boid
();
pwr_
eClass
bufferClass
()
{
return
m_buffer
Class
;}
pwr_
tCid
subClass
()
{
return
m_sub
Class
;}
const
char
*
name
()
const
;
const
char
*
name
()
const
;
wb_name
longName
();
wb_name
longName
();
...
...
wb/lib/wb/src/wb_attribute.cpp
View file @
9aa329a7
...
@@ -137,7 +137,7 @@ wb_attribute::wb_attribute(wb_attribute& pa, int idx, const char* aname) :
...
@@ -137,7 +137,7 @@ wb_attribute::wb_attribute(wb_attribute& pa, int idx, const char* aname) :
if
(
!
(
pa
.
m_flags
&
PWR_MASK_BUFFER
))
if
(
!
(
pa
.
m_flags
&
PWR_MASK_BUFFER
))
throw
wb_error_str
(
"Only $Buffer is supported as sub class"
);
throw
wb_error_str
(
"Only $Buffer is supported as sub class"
);
cid
=
pa
.
buffer
Class
();
cid
=
pa
.
sub
Class
();
m_orep
=
pa
.
m_orep
;
m_orep
=
pa
.
m_orep
;
wb_cdrep
*
cd
=
m_orep
->
vrep
()
->
merep
()
->
cdrep
(
&
m_sts
,
cid
);
wb_cdrep
*
cd
=
m_orep
->
vrep
()
->
merep
()
->
cdrep
(
&
m_sts
,
cid
);
...
@@ -282,6 +282,7 @@ int wb_attribute::flags()
...
@@ -282,6 +282,7 @@ int wb_attribute::flags()
pwr_tAix
wb_attribute
::
aix
()
pwr_tAix
wb_attribute
::
aix
()
{
{
throw
wb_error_str
(
"wb_attribute::aix() NYI"
);
return
0
;
// Fix
return
0
;
// Fix
}
}
...
@@ -300,30 +301,34 @@ pwr_eBix wb_attribute::bix()
...
@@ -300,30 +301,34 @@ pwr_eBix wb_attribute::bix()
pwr_tOid
wb_attribute
::
boid
()
pwr_tOid
wb_attribute
::
boid
()
{
{
throw
wb_error_str
(
"wb_attribute::boid() NYI"
);
pwr_tOid
oid
;
pwr_tOid
oid
;
return
oid
;
// Fix
return
oid
;
// Fix
}
}
pwr_
eClass
wb_attribute
::
buffer
Class
()
pwr_
tCid
wb_attribute
::
sub
Class
()
{
{
// This is not recursive for subclasses
if
(
m_adrep
)
if
(
m_adrep
)
return
m_adrep
->
buffer
Class
();
return
m_adrep
->
sub
Class
();
return
pwr_eClass__
;
return
0
;
}
}
bool
wb_attribute
::
checkXref
()
bool
wb_attribute
::
checkXref
()
{
{
throw
wb_error_str
(
"wb_attribute::checkXref() NYI"
);
return
true
;
// Fix
return
true
;
// Fix
}
}
pwr_sAttrXRef
*
wb_attribute
::
xref
()
pwr_sAttrXRef
*
wb_attribute
::
xref
()
{
{
throw
wb_error_str
(
"wb_attribute::xref() NYI"
);
return
(
pwr_sAttrXRef
*
)
0
;
// Fix
return
(
pwr_sAttrXRef
*
)
0
;
// Fix
}
}
pwr_sObjXRef
*
wb_attribute
::
oxref
()
pwr_sObjXRef
*
wb_attribute
::
oxref
()
{
{
throw
wb_error_str
(
"wb_attribute::oxref() NYI"
);
return
(
pwr_sObjXRef
*
)
0
;
// Fix
return
(
pwr_sObjXRef
*
)
0
;
// Fix
}
}
...
@@ -353,19 +358,21 @@ void *wb_attribute::value(void *vp, size_t size, pwr_tStatus *sts)
...
@@ -353,19 +358,21 @@ void *wb_attribute::value(void *vp, size_t size, pwr_tStatus *sts)
string
wb_attribute
::
toString
()
string
wb_attribute
::
toString
()
{
{
throw
wb_error_str
(
"wb_attribute::toString() NYI"
);
string
a
;
string
a
;
return
a
;
return
a
;
}
}
pwr_tStatus
wb_attribute
::
fromString
(
string
)
pwr_tStatus
wb_attribute
::
fromString
(
string
)
{
{
throw
wb_error_str
(
"wb_attribute::fromString() NYI"
);
pwr_tStatus
sts
;
pwr_tStatus
sts
;
return
sts
;
return
sts
;
}
}
pwr_tStatus
wb_attribute
::
fromString
(
char
*
)
pwr_tStatus
wb_attribute
::
fromString
(
char
*
)
{
{
throw
wb_error_str
(
"wb_attribute::fromString() NYI"
);
pwr_tStatus
sts
;
pwr_tStatus
sts
;
return
sts
;
return
sts
;
}
}
...
...
wb/lib/wb/src/wb_attribute.h
View file @
9aa329a7
...
@@ -77,7 +77,7 @@ public:
...
@@ -77,7 +77,7 @@ public:
bool
checkXref
();
bool
checkXref
();
pwr_sAttrXRef
*
xref
();
pwr_sAttrXRef
*
xref
();
pwr_sObjXRef
*
oxref
();
pwr_sObjXRef
*
oxref
();
pwr_
eClass
buffer
Class
();
pwr_
tCid
sub
Class
();
void
*
value
(
void
*
p
=
0
);
void
*
value
(
void
*
p
=
0
);
void
*
value
(
void
*
vp
,
size_t
size
,
pwr_tStatus
*
);
void
*
value
(
void
*
vp
,
size_t
size
,
pwr_tStatus
*
);
...
...
wb/lib/wb/src/wb_ldh.cpp
View file @
9aa329a7
...
@@ -595,7 +595,7 @@ ldh_GetObjectBuffer(ldh_tSession session, pwr_tOid oid, char *bname,
...
@@ -595,7 +595,7 @@ ldh_GetObjectBuffer(ldh_tSession session, pwr_tOid oid, char *bname,
*
size
=
a
.
size
();
*
size
=
a
.
size
();
a
.
value
(
*
value
);
a
.
value
(
*
value
);
*
bufferclass
=
a
.
buffer
Class
();
*
bufferclass
=
(
pwr_eClass
)
a
.
sub
Class
();
return
LDH__SUCCESS
;
return
LDH__SUCCESS
;
}
}
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
9aa329a7
...
@@ -864,7 +864,7 @@ void wb_wblnode::buildBuff( ref_wblnode object, int bix, pwr_tCid buffer_cid,
...
@@ -864,7 +864,7 @@ void wb_wblnode::buildBuff( ref_wblnode object, int bix, pwr_tCid buffer_cid,
return
;
return
;
}
}
pwr_tCid
cid
=
adrep
->
buffer
Class
();
pwr_tCid
cid
=
adrep
->
sub
Class
();
size
=
adrep
->
size
();
size
=
adrep
->
size
();
offset
=
adrep
->
offset
();
offset
=
adrep
->
offset
();
elements
=
adrep
->
nElement
();
elements
=
adrep
->
nElement
();
...
...
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