This file is indexed.

/usr/include/citygml/appearancetargetdefinition.h is in libcitygml-dev 2.0-1build1.

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
#pragma once

#include <memory>
#include <string>

#include <citygml/object.h>

namespace citygml {

    /*
     * TODO:
     *  - store the target id here
     *  - store the appearance object here as a shared pointer
     *  - create a subclass for material appearance type and texture appearance type (TextureTargetDefinition, MaterialTargetDefinition)
     *  - modify AppearanceTarget so that is contains distinct lists for TextureTargetDefinition and MaterialTargetDefinition definitions... store the AppearanceTargetDefinitions as shared_ptr
     *  - remove all knowledge of thier targets from the appearance objects (Texture, Material)
     *  - let the appearance manager store the AppearanceTargetDefinition objects and the Appearance objects until they are assigned... then remove them from the appearance manager
     *  - when finishing the AppearanceTarget objcts pass down the AppearanceTargetDefinition
     *  - when finishing the polygon object remove all AppearanceTargetDefinition that are unused
     */

    /**
     * @brief defines the association between an Appearance object and an AppearanceTarget object
     */
    template<class T>
    class AppearanceTargetDefinition : public Object {
    public:
        AppearanceTargetDefinition(const std::string& targetID, std::shared_ptr<T> appearance, const std::string& id) : Object(id), m_targetID(targetID), m_appearance(appearance) {}

        /**
         * @brief the id of the target surface
         * @note The targetID must not be the id of the object on which the texture is applied at the end (may be passed down to the children of the target object)
         */
        std::string getTargetID() const { return m_targetID; }

        std::shared_ptr<const T> getAppearance() const { return m_appearance; }
        std::shared_ptr<T> getAppearance() { return m_appearance; }

        virtual ~AppearanceTargetDefinition() {}

    protected:
        std::string m_targetID;
        std::shared_ptr<T> m_appearance;
    };

}