/usr/include/libxml++-2.6/libxml++/schema.h is in libxml++2.6-dev 2.40.1-2.
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 105 106 107 108 109 110 111 | /* schema.h
* libxml++ and this file are copyright (C) 2000 by Ari Johnson, and
* are covered by the GNU Lesser General Public License, which should be
* included with libxml++ as the file COPYING.
*/
#ifndef __LIBXMLPP_SCHEMA_H
#define __LIBXMLPP_SCHEMA_H
#include <libxml++/attribute.h>
#include <libxml++/document.h>
#include <list>
#include <map>
#ifndef LIBXMLXX_DISABLE_DEPRECATED
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C" {
struct _xmlSchema;
}
#endif //DOXYGEN_SHOULD_SKIP_THIS
namespace xmlpp
{
/** Represents an XML Schema.
*
* @newin{2,24}
*
* @deprecated Use XsdSchema instead.
*/
class Schema : NonCopyable
{
public:
/** Create a schema from the underlying libxml schema element.
* @deprecated Use XsdSchema instead.
*/
explicit Schema(_xmlSchema* schema);
/** Create a schema from an XML document.
* @param document XMLSchema document, <tt>nullptr</tt> to create an empty schema document.
* @param embed If true, the document will be deleted when
* the schema is deleted or another document is set.
* @throws xmlpp::parse_error
* @throws xmlpp::internal_error If an empty schema document can't be created.
* @deprecated Use XsdSchema instead.
*/
explicit Schema(Document* document = nullptr, bool embed = false);
~Schema();
//TODO: Remove virtual when we can break ABI?
/** Set a new document to the schema.
* If the old schema document is owned by the schema (embed == true), the old
* schema document and all its nodes are deleted.
* @param document XMLSchema document, <tt>nullptr</tt> to create an empty schema document.
* @param embed If true, the document will be deleted when the schema is deleted or another document is set.
* @throws xmlpp::parse_error
* @throws xmlpp::internal_error If an empty schema document can't be created.
* @deprecated Use XsdSchema::parse_document() instead.
*/
virtual void set_document(Document* document = nullptr, bool embed = false);
/** @deprecated There is no replacement.
*/
Glib::ustring get_name() const;
/** @deprecated There is no replacement.
*/
Glib::ustring get_target_namespace() const;
/** @deprecated There is no replacement.
*/
Glib::ustring get_version() const;
/** Get the schema document.
* @returns A pointer to the schema document, or <tt>nullptr</tt> if none exists.
* @deprecated There is no replacement.
*/
Document* get_document();
/** Get the schema document.
* @returns A pointer to the schema document, or <tt>nullptr</tt> if none exists.
* @deprecated There is no replacement.
*/
const Document* get_document() const;
/** Access the underlying libxml implementation.
* @deprecated Use XsdSchema::cobj() instead.
*/
_xmlSchema* cobj();
/** Access the underlying libxml implementation.
* @deprecated Use XsdSchema::cobj() instead.
*/
const _xmlSchema* cobj() const;
protected:
virtual void release_underlying();
private:
_xmlSchema* impl_;
/** If the base document is created with the schema. */
bool embedded_doc_;
};
} // namespace xmlpp
#endif // LIBXMLXX_DISABLE_DEPRECATED
#endif //__LIBXMLPP_SCHEMA_H
|