This file is indexed.

/usr/include/CLAM/DomDocumentHandler.hxx is in libclam-dev 1.4.0-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
/*
 * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
 *                         UNIVERSITAT POMPEU FABRA
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
#ifndef _DomDocumentHandler_hxx_
#define _DomDocumentHandler_hxx_

/**
 * @class CLAM::DomDocumentHandler
 * @ingroup XmlBackends
 * @brief This class subclasses from the proper DomDocumentHandler depending
 * on the build time configuration 'xmlbackend' option.
 *
 * An XML implementation is choosen depending on the USE_XXXXXX
 * directives concerning XML libraries.
 * The current USE_XXXXXX variables that affect this class in priority order are:
 * - USE_XERCES: Chooses XercesDomDocumentHandler (Apache's Xerces-C++)
 * - USE_XMLPP:  Chooses LibXmlDomDocumentHandler (Gnome's libxml++)
 *
 * If you choose 'none' as backend, then a Null implementation will 
 * be used that fails an assertion whenever you try to use the XML
 * serialization.
 *
 * @see XercesDomDocumentHandler
 * @see LibXmlDomDocumentHandler
 * @see NullDomDocumentHandler
 * @author David Garcia.
 */

#if defined USE_XERCES
#include "XercesDomDocumentHandler.hxx"
namespace CLAM 
{
	class DomDocumentHandler : public XercesDomDocumentHandler {};
}
#elif defined USE_XMLPP
#include "LibXmlDomDocumentHandler.hxx"
namespace CLAM 
{
	class DomDocumentHandler : public LibXmlDomDocumentHandler {};
}

#elif !defined CLAM_USE_XML
#include "NullDomDocumentHandler.hxx"
namespace CLAM 
{
	class DomDocumentHandler : public NullDomDocumentHandler {};
}
#else
#error CLAM_USE_XML active but no backend available (libxml++, xerces...)
#endif//USE_XMLPP

/**
 * @defgroup XmlBackends XML Implementation Backends
 * @ingroup Xml
 * @brief This documentation module explains the XML implementation backends.
 *
 * CLAM supports different XML libraries as backend for the XML support.
 * This can be done by implementing the DomDocumentHandler class and
 * its nested classes, DomDocumentWritingContext and DomDocumentReadingContext.
 *
 * A DocumentHandler provides the abstraction that CLAM::XmlStorage
 * uses to perform its tasks:
 * DOM construction and exploration, and file reading and writing.
 *
 * Two inner classes (or typedefs) named DomDocumentReadingContext and
 * DomDocumentWritingContext, must be defined.
 * Those inner classes keeps the context while mapping for reading and writting
 * CLAM::Objects to a given XML tree element.
 * 
 * Usually a XXXReader and a XXXWriter are implemented in order to build 
 * a DOM tree from an XML file and to write it given the DOM Document.
 * The Document Handler also keeps the selected node in order to do partial operations
 * like adding object on a given tree position or dumping a document fragment.
 * 
 * Currently, the following implementations are available:
 * - CLAM::NullDomDocumentHandler: 
 *   A dummy one, that just assert false when it is instanciated,
 *   just in case XML is used and it is disabled.
 * - CLAM::XercesDomDocumentHandler:
 *   Based on the Xerces-C++ library
 * - CLAM::LibXmlDomDocumentHandler:
 *   Based on the libxml++ library (Experimental)
 * @author David Garcia.
 */


#endif//_XercesDomDocumentHandler_hxx_