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
2deefb94
Commit
2deefb94
authored
Feb 21, 2003
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prints a volume, hierarchy or object on wbl format
parent
9aa329a7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
687 additions
and
0 deletions
+687
-0
wb/lib/wb/src/wb_print_wbl.cpp
wb/lib/wb/src/wb_print_wbl.cpp
+607
-0
wb/lib/wb/src/wb_print_wbl.h
wb/lib/wb/src/wb_print_wbl.h
+80
-0
No files found.
wb/lib/wb/src/wb_print_wbl.cpp
0 → 100644
View file @
2deefb94
This diff is collapsed.
Click to expand it.
wb/lib/wb/src/wb_print_wbl.h
0 → 100644
View file @
2deefb94
/**
* @file wb_print_wbl.h
*
* Prints a volume on wbl format
*
*/
#ifndef wb_print_wbl_h
#define wb_print_wbl_h
#include <iostream>
#include "pwr_class.h"
class
wb_adef
;
class
wb_attribute
;
class
wb_cdef
;
class
wb_object
;
class
wb_volume
;
class
wb_print_wbl
{
protected:
int
m_errCnt
;
bool
m_idxFlag
;
int
m_level
;
int
m_levelIndentation
;
ostream
&
m_os
;
ostream
&
indent
(
int
levelIncr
=
0
);
void
printAttribute
(
wb_volume
&
v
,
wb_attribute
&
attr
,
wb_attribute
&
tattr
,
///< template attribute
wb_adef
&
adef
);
void
printBody
(
wb_volume
&
v
,
wb_object
&
o
,
wb_object
&
templ
,
wb_cdef
&
cdef
,
pwr_eBix
bix
);
void
printClass
(
wb_volume
&
v
,
wb_attribute
&
attr
,
wb_attribute
&
tattr
,
///< template attribute
wb_adef
&
adef
);
void
printParameter
(
wb_volume
&
v
,
wb_attribute
&
attr
,
wb_attribute
&
tattr
,
///< template attribute
wb_adef
&
adef
);
void
printText
(
wb_volume
&
v
,
wb_adef
&
adef
,
const
char
*
text
,
int
varSize
);
bool
printValue
(
wb_volume
&
v
,
wb_adef
&
adef
,
void
*
val
,
int
varSize
,
char
**
svalp
);
public:
wb_print_wbl
(
ostream
&
os
,
int
levelIndentation
=
3
);
~
wb_print_wbl
();
int
getErrCnt
()
const
{
return
m_errCnt
;}
void
resetErrCnt
()
{
m_errCnt
=
0
;
}
void
printHierarchy
(
wb_volume
&
v
,
wb_object
&
o
);
//< Prints a hierarchy
void
printObject
(
wb_volume
&
v
,
wb_object
&
o
,
bool
recursive
=
true
);
//< Prints an object
void
printVolume
(
wb_volume
&
v
,
bool
recursive
=
true
);
//< Prints the volume
};
#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