Fix for UBSan build
[platform/upstream/doxygen.git] / src / diagram.h
1 /******************************************************************************
2  *
3  * $Id: diagram.h,v 1.11 2001/03/19 19:27:40 root Exp $
4  *
5  *
6  * Copyright (C) 1997-2012 by Dimitri van Heesch.
7  *
8  * Permission to use, copy, modify, and distribute this software and its
9  * documentation under the terms of the GNU General Public License is hereby 
10  * granted. No representations are made about the suitability of this software 
11  * for any purpose. It is provided "as is" without express or implied warranty.
12  * See the GNU General Public License for more details.
13  *
14  * Documents produced by Doxygen are derivative works derived from the
15  * input used in their production; they are not affected by this license.
16  *
17  */
18
19 #ifndef DIAGRAM_H
20 #define DIAGRAM_H
21
22 #include "qtbc.h"
23 #include "types.h"
24
25 class ClassDef;
26 class TreeDiagram;
27 class FTextStream;
28
29 /** Class representing a built-in class diagram. */
30 class ClassDiagram
31 {
32   public:
33     ClassDiagram(ClassDef *root);
34    ~ClassDiagram();
35     void writeFigure(FTextStream &t,const char *path,
36                      const char *file) const;
37     void writeImage(FTextStream &t,const char *path,const char *relPath,
38                      const char *file,bool generateMap=TRUE) const;
39   private:
40     TreeDiagram *base;
41     TreeDiagram *super;
42 };
43
44 #endif
45