Orb/Doxygen/src/define.cpp
changeset 0 42188c7ea2d9
child 4 468f4c8d3d5b
equal deleted inserted replaced
-1:000000000000 0:42188c7ea2d9
       
     1 /******************************************************************************
       
     2  *
       
     3  * 
       
     4  *
       
     5  * Copyright (C) 1997-2008 by Dimitri van Heesch.
       
     6  *
       
     7  * Permission to use, copy, modify, and distribute this software and its
       
     8  * documentation under the terms of the GNU General Public License is hereby 
       
     9  * granted. No representations are made about the suitability of this software 
       
    10  * for any purpose. It is provided "as is" without express or implied warranty.
       
    11  * See the GNU General Public License for more details.
       
    12  *
       
    13  * Documents produced by Doxygen are derivative works derived from the
       
    14  * input used in their production; they are not affected by this license.
       
    15  *
       
    16  */
       
    17 
       
    18 #include "define.h"
       
    19 #include "config.h"
       
    20 
       
    21 Define::Define()
       
    22 { 
       
    23   undef=FALSE; 
       
    24   fileDef=0; 
       
    25   isPredefined=FALSE;
       
    26   nonRecursive=FALSE;
       
    27 }
       
    28 
       
    29 Define::Define(const Define &d)
       
    30       : name(d.name),definition(d.definition),fileName(d.fileName)
       
    31 { 
       
    32   //name=d.name; definition=d.definition; fileName=d.fileName; 
       
    33   lineNr=d.lineNr; 
       
    34   nargs=d.nargs; 
       
    35   undef=d.undef; 
       
    36   fileDef=0;
       
    37 }
       
    38 
       
    39 Define::~Define()
       
    40 {
       
    41 }
       
    42 
       
    43 bool Define::hasDocumentation()
       
    44 {
       
    45   return definition && (doc || Config_getBool("EXTRACT_ALL"));
       
    46 }