This file is indexed.

/usr/include/magics/PolyShadingTechniqueAttributes.cc is in libmagics++-dev 2.18.15-5.

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
/*******************************  LICENSE  *******************************



 *******************************  LICENSE  *******************************/

/*! \file PolyShadingTechniqueAttributes.cc
    \brief Implementation of PolyShadingTechnique Attributes class.
    \author Meteorological Visualisation Section, ECMWF

    This file is automatically generated.
    Do Not Edit!
   
    Generated: Wed Dec 18 17:22:55 2013
*/    

#include "PolyShadingTechniqueAttributes.h"
#include "MagicsParameter.h"
#include "Factory.h"
#include "MagTranslator.h"
#include "XmlNode.h"
#include "ParameterSettings.h"


using namespace magics;


PolyShadingTechniqueAttributes::PolyShadingTechniqueAttributes():
	method_(MagTranslator<string, PolyShadingMethod>().magics("contour_shade_method"))
{
} 



PolyShadingTechniqueAttributes::~PolyShadingTechniqueAttributes()
{
}

    
void PolyShadingTechniqueAttributes::set(const std::map<string, string>& params)
{
	vector<string> prefix(5);
	prefix[0] = "contour_shade";
	prefix[1] = "contour_shade";
	prefix[2] = "contour_shade";
	prefix[3] = "contour";
	prefix[4] = "contour";

	setMember(prefix, "contour_shade_method", method_, params);
}

void PolyShadingTechniqueAttributes::copy(const PolyShadingTechniqueAttributes& other)
{
	method_ = auto_ptr<PolyShadingMethod>(other.method_->clone());
} 


bool PolyShadingTechniqueAttributes::accept(const string& node)
{	
	if ( magCompare(node, "polygon")  )
		return true;

	if ( acceptNode(node, method_) )
		return true;
	return false;
}

void PolyShadingTechniqueAttributes::set(const XmlNode& node)
{
	if ( this->accept(node.name()) == false ) 
		return;

	if ( magCompare(node.name(), "polygon") )
		set(node.attributes());
	else {
		setMember(node.name(), method_, node);
	}
	for (XmlNode::ElementIterator elt = node.firstElement(); elt != node.lastElement(); ++elt) {
		setMember((*elt)->name(), method_, *(*elt)); 
	}
}

void PolyShadingTechniqueAttributes::print(ostream& out)  const
{
	out << "PolyShadingTechniqueAttributes[";
	out << "method = " << *method_;
	out << "]" << "\n";
}


void PolyShadingTechniqueAttributes::toxml(ostream& out)  const
{
     out <<  "\"polygon\"";
	 out << ", \"contour_shade_method\":";
	 method_->toxml(out);
}
static MagicsParameter<string> contour_shade_method("contour_shade_method", "dot", "");
#include "PolyShadingMethod.h"
#include "HatchPolyShadingMethod.h"
#include "DotPolyShadingMethod.h"
static SimpleObjectMaker<PolyShadingMethod, PolyShadingMethod> area_fill_PolyShadingMethod("area_fill");
static SimpleObjectMaker<DotPolyShadingMethod, PolyShadingMethod> dot_DotPolyShadingMethod("dot");
static SimpleObjectMaker<HatchPolyShadingMethod, PolyShadingMethod> hatch_HatchPolyShadingMethod("hatch");