This file is indexed.

/usr/include/opencollada/COLLADAFramework/COLLADAFWFormulaNewParam.h is in opencollada-dev 0.1.0~20140703.ddf8f47+dfsg1-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
/*
    Copyright (c) 2008-2009 NetAllied Systems GmbH

    This file is part of COLLADAFramework.

    Licensed under the MIT Open Source License, 
    for details please see LICENSE file or the website
    http://www.opensource.org/licenses/mit-license.php
*/

#ifndef __COLLADAFW_FORMULANEWPARAM_H__
#define __COLLADAFW_FORMULANEWPARAM_H__

#include "COLLADAFWPrerequisites.h"

#include "COLLADAFWPointerArray.h"
#include "COLLADAFWUniqueId.h"


namespace COLLADAFW
{

    /** New param as it appears in formula and kinematics */
	class FormulaNewParam 	
	{
	public:
		enum ValueType { VALUETYPE_UNKNOWN, VALUETYPE_FLOAT, VALUETYPE_INT, VALUETYPE_BOOL, VALUETYPE_SIDREF};
	private:
	
		/** Value type of the new param.*/
		ValueType mValueType;

		union Value
		{
			double _double;
			int _int;
			bool _bool;
		} mValue;
		
		/** The name of the new param (sid in COLLADA).*/
		String mName;
	public:

        /** Constructor. */
		FormulaNewParam(ValueType valueType) : mValueType(valueType){}

        /** Destructor. */
		virtual ~FormulaNewParam(){}

		/** Returns the value type of the new param.*/
		ValueType getValueType() const { return mValueType; }

		/** Sets the value type of the new param.*/
		void setValueType(ValueType valueType) { mValueType = valueType; }

		/** Returns the double value of the new param. Type must be VALUETYPE_FLOAT.*/
		double getDoubleValue() const { return mValue._double; }

		/** Sets the double value of the new param. Type will be set to VALUETYPE_FLOAT.*/
		void setDoubleValue(double doubleValue) { mValue._double = doubleValue; mValueType = VALUETYPE_FLOAT; }

		/** Returns the int value of the new param. Type must be VALUETYPE_INT.*/
		int getIntValue() const { return mValue._int; }

		/** Sets the int value of the new param. Type will be set to VALUETYPE_INT.*/
		void setIntValue(int intValue) { mValue._int = intValue; mValueType = VALUETYPE_INT; }

		/** Returns the bool value of the new param. Type must be VALUETYPE_BOOL.*/
		bool getBoolValue() const { return mValue._bool; }

		/** Sets the bool value of the new param. Type will be set to VALUETYPE_BOOL.*/
		void setBoolValue(bool boolValue) { mValue._bool = boolValue; mValueType = VALUETYPE_BOOL; }

		/** Returns the name of the new param (sid in COLLADA).*/
		const String& getName() const { return mName; }

		/** Returns the name of the new param (sid in COLLADA).*/
		void setName(const String& name) { mName = name; }

		FormulaNewParam* clone() const { return FW_NEW FormulaNewParam(*this); }

	};

	typedef PointerArray<FormulaNewParam> FormulaNewParamPointerArray;

} // namespace COLLADAFW

#endif // __COLLADAFW_FORMULANEWPARAM_H__