TDocInfo.cxx

Go to the documentation of this file.
00001 // @(#)root/html:$Id: TDocInfo.cxx 23937 2008-05-20 16:44:59Z axel $
00002 // Author: Axel Naumann 2007-01-09
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #include "TDocInfo.h"
00013 
00014 #include "TClass.h"
00015 #include "TSystem.h"
00016 
00017 //______________________________________________________________________________
00018 //
00019 // Caches class documentation information, like which module it belongs to,
00020 // and whether THtml should generate documentation for the class.
00021 //______________________________________________________________________________
00022 
00023 
00024 ClassImp(TClassDocInfo);
00025 
00026 const char* TClassDocInfo::GetName() const
00027 {
00028    // Get the class name, or (UNKNOWN) is no TClass object was found.
00029    return fClass ? fClass->GetName() : "(UNKNOWN)";
00030 }
00031 
00032 ULong_t TClassDocInfo::Hash() const
00033 {
00034    // Forward to TClass::Hash(), return -1 if no TClass object was found.
00035    return fClass ? fClass->Hash() : (ULong_t)-1;
00036 }
00037 
00038 Int_t TClassDocInfo::Compare(const TObject* obj) const
00039 {
00040    // Compare two TClassDocInfo objects; used for sorting.
00041    return fClass ? fClass->Compare(obj) : obj < this;
00042 }
00043 
00044 //______________________________________________________________________________
00045 //
00046 // BEGIN_HTML
00047 // <p>Represents modules of the documented product. Modules are sub-groups of
00048 // sources of a product, which get separate index pages and user-provided
00049 // documentation. For ROOT, a module is a sub-directory; it often corresponds 
00050 // to a library. TModuleDocInfo, for example, is part of the HTML module,
00051 // which is documented <a href="./HTML_index.html">here</a>. The list of
00052 // all modules is shown e.g. in the <a href="ClassIndex.html">class index</a>.</p>
00053 // <p>A module's documentation is searched by combining its source directory
00054 // (see <a href="#TModuleDocInfo:SetInputDir">SetInputDir()</a>) and the
00055 // module documentation search path defined by 
00056 // <a href="./THtml.html#THtml:SetModuleDocPath">THtml::SetModuleDocPath()</a>;
00057 // it defaults to "../doc", i.e. for a module's sources in "module/src" its
00058 // documentation is searched in "module/doc".
00059 // END_HTML
00060 //______________________________________________________________________________
00061 
00062 
00063 ClassImp(TModuleDocInfo);

Generated on Tue Jul 5 14:24:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1