This file is indexed.

/usr/include/exempi-2.0/exempi/xmp++.hpp is in libexempi-dev 2.4.1-1.

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
/*
 *
 * Copyright (C) 2011 Hubert Figuiere
 *
 *  Distributed under the Boost Software License, Version 1.0. (See
 *  accompanying file LICENSE_1_0.txt or copy at
 *  http://www.boost.org/LICENSE_1_0.txt)
 */

#ifndef __XMP_PLUSPLUS_H__
#define __XMP_PLUSPLUS_H__

#include <exempi/xmp.h>

namespace xmp {

inline void release(XmpIteratorPtr ptr)
{
    xmp_iterator_free(ptr);
}

inline void release(XmpStringPtr ptr)
{
    xmp_string_free(ptr);
}

inline void release(XmpFilePtr ptr)
{
    xmp_files_free(ptr);
}

inline void release(XmpPtr ptr)
{
    xmp_free(ptr);
}

/**
 * @brief a scoped pointer for Xmp opaque types
 */
template <class T>
class ScopedPtr {
public:
    ScopedPtr(T p) : _p(p) {}
    ~ScopedPtr()
    {
        if (_p)
            release(_p);
    }
    operator T() const { return _p; }

private:
    T _p;

    // private copy constructor and assignment
    // to make the class non copiable
    ScopedPtr(const ScopedPtr<T> &);
    ScopedPtr &operator=(const ScopedPtr<T> &);
};
}

#endif