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
fe2f4239
Commit
fe2f4239
authored
Feb 17, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Argument added in function attributesAll
parent
46f87c73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
wb/lib/wb/src/wb_name.h
wb/lib/wb/src/wb_name.h
+1
-0
wb/lib/wb/src/wb_nrep.cpp
wb/lib/wb/src/wb_nrep.cpp
+27
-5
wb/lib/wb/src/wb_nrep.h
wb/lib/wb/src/wb_nrep.h
+1
-1
No files found.
wb/lib/wb/src/wb_name.h
View file @
fe2f4239
...
...
@@ -145,6 +145,7 @@ public:
bool
attributeIsEqual
(
const
char
*
n
,
int
idx
=
0
)
const
throw
(
wb_error
)
{
check
();
return
m_nrep
->
attributeIsEqual
(
n
,
idx
);}
char
*
segmentsAll
(
int
idx
=
0
)
const
throw
(
wb_error
)
{
check
();
return
m_nrep
->
segmentsAll
(
idx
);}
char
*
attributesAll
(
int
idx
=
0
)
const
throw
(
wb_error
)
{
check
();
return
m_nrep
->
attributesAll
(
idx
);}
char
*
attributesAllTrue
(
int
idx
=
0
)
const
throw
(
wb_error
)
{
check
();
return
m_nrep
->
attributesAll
(
idx
,
0
,
true
);}
// Id representation
char
*
vid
(
char
*
res
=
0
)
const
throw
(
wb_error
)
{
check
();
return
m_nrep
->
volume
(
res
);}
...
...
wb/lib/wb/src/wb_nrep.cpp
View file @
fe2f4239
...
...
@@ -891,7 +891,7 @@ char *wb_nrep::segmentsAll(int idx, char *res)
}
}
char
*
wb_nrep
::
attributesAll
(
int
idx
,
char
*
res
)
char
*
wb_nrep
::
attributesAll
(
int
idx
,
char
*
res
,
bool
true_db
)
{
static
char
result
[
256
];
...
...
@@ -906,12 +906,34 @@ char *wb_nrep::attributesAll(int idx, char *res)
}
}
else
{
if
(
res
)
{
strcpy
(
res
,
oname
+
attr
[
idx
].
offs
);
return
res
;
if
(
!
m_hasSuper
||
m_shadowed
||
true_db
)
{
if
(
res
)
{
strcpy
(
res
,
oname
+
attr
[
idx
].
offs
);
return
res
;
}
else
{
strcpy
(
result
,
oname
+
attr
[
idx
].
offs
);
return
result
;
}
}
else
{
strcpy
(
result
,
oname
+
attr
[
idx
].
offs
);
strcpy
(
result
,
""
);
for
(
int
i
=
idx
;
i
<
num_attr
;
i
++
)
{
if
(
!
attr
[
i
].
isSuper
)
{
if
(
result
[
0
]
!=
0
)
strcat
(
result
,
"."
);
int
l
=
strlen
(
result
);
strncat
(
result
,
oname
+
attr
[
i
].
offs
,
attr
[
i
].
len
);
if
(
attr
[
i
].
index
!=
-
1
)
sprintf
(
&
result
[
l
+
attr
[
i
].
len
],
"[%d]"
,
attr
[
i
].
index
);
else
result
[
l
+
attr
[
i
].
len
]
=
0
;
}
}
if
(
res
)
{
strcpy
(
res
,
result
);
return
res
;
}
return
result
;
}
}
...
...
wb/lib/wb/src/wb_nrep.h
View file @
fe2f4239
...
...
@@ -113,7 +113,7 @@ public:
bool
attributeIsEqual
(
const
char
*
n
,
int
idx
=
0
);
int
bodyOffset
()
const
{
return
b_offset
;}
int
bodySize
()
const
{
return
b_size
;}
char
*
attributesAll
(
int
idx
=
0
,
char
*
res
=
0
);
char
*
attributesAll
(
int
idx
=
0
,
char
*
res
=
0
,
bool
true_db
=
false
);
char
*
segmentsAll
(
int
idx
=
0
,
char
*
res
=
0
);
bool
hasSuper
()
{
return
m_hasSuper
;}
void
setShadowed
(
bool
shadowed
)
{
m_shadowed
=
shadowed
;}
...
...
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