C and C++ SoftBench User's Guide

Using SoftBench Class Graph/Editor
Editing C++ Structures with SoftBench Class Graph/Editor
Chapter 5134
Editing C++ Structures with SoftBench Class
Graph/Editor
The class hierarchies and other data structures in C++ can be
understood much more easily when they are presented in a graphical
format. Static Graphs provide an excellent tool for viewing these
structures.
The SoftBench Class Graph/Editor in SoftBench Static Analyzer also
allows you to edit C++ structures in the graphical display. While viewing
the graphical representation of C++ structures, you can add, modify, or
delete classes, class components, and component definitions.
SoftBench Class Graph/Editor helps you to become much more
productive in your C++ programming. You can understand, create, and
modify C++ programs much more quickly using the high-level conceptual
displays. You can concentrate on the semantics of your program, instead
of worrying about the syntax and details of C++ class definition.
SoftBench Class Graph/Editor handles the details for you.
SoftBench Class Graph/Editor requires the Static Analysis database
used by SoftBench Static Analyzer. If you try to use SoftBench Class
Graph/Editor with a directory or project that does not contain a Static
Analysis database, SoftBench Static Analyzer may create one for you
using your new and existing C++ code. Building your code with the
Static option produces a more reliable database.
Understanding the SoftBench Class Graph/Editor Use
Model
When you edit using SoftBench Class Graph/Editor, several different
files and programs are involved including your source files, the static
analysis database, the SoftBench Class Graph/Editor program, and your
compiler. See Figure 5-1. In this diagram, the rectangles represent items
on your system. The arcs represent actions by you or by various
programs that modify those files.
In order to use SoftBench Class Graph/Editor, the graph and the Static
Analysis database must accurately reflect the source files. However,
SoftBench Class Graph/Editor and other editors may change the source
files, and any changes to the sources must be reflected in the database.