1 /******************************************************************************
3 * $Id: section.h,v 1.7 2001/03/19 19:27:41 root Exp $
6 * Copyright (C) 1997-2012 by Dimitri van Heesch.
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.
14 * Documents produced by Doxygen are derivative works derived from the
15 * input used in their production; they are not affected by this license.
29 /** Class representing a section in a page */
32 enum SectionType { Page = 0,
39 SectionInfo(const char *f,const char *l,const char *t,
40 SectionType st,int lev,const char *r=0) :
41 label(l), title(t), type(st), ref(r), definition(0),
42 fileName(f), generated(FALSE), level(lev)
45 SectionInfo(const SectionInfo &s)
47 label=s.label.copy(); title=s.title.copy(); ref=s.ref.copy();
48 type =s.type; definition=s.definition;
49 fileName=s.fileName.copy(); generated=s.generated;
56 Definition *definition;
62 /** Unsorted dictionary of SectionInfo objects. */
63 class SectionDict : public SDict<SectionInfo>
66 SectionDict(int size) : SDict<SectionInfo>(size) {}