This file is indexed.

/usr/include/curlpp/Info.hpp is in libcurlpp-dev 0.7.3-6.

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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
 *    Copyright (c) <2002-2009> <Jean-Philippe Barrette-LaPierre>
 *    
 *    Permission is hereby granted, free of charge, to any person obtaining
 *    a copy of this software and associated documentation files 
 *    (curlpp), to deal in the Software without restriction, 
 *    including without limitation the rights to use, copy, modify, merge,
 *    publish, distribute, sublicense, and/or sell copies of the Software,
 *    and to permit persons to whom the Software is furnished to do so, 
 *    subject to the following conditions:
 *    
 *    The above copyright notice and this permission notice shall be included
 *    in all copies or substantial portions of the Software.
 *    
 *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
 *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
 *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


#ifndef CURLPP_INFO_HPP
#define CURLPP_INFO_HPP


#include "internal/buildconfig.h"

#include "Easy.hpp"


namespace curlpp
{


	/**
	* This class is responsible of retreiving the Info from
	* a handle. This is the class you use when you want to do
	* so.
	*/

	template<CURLINFO info, typename T>
	struct CURLPPAPI Info 
	{
		static void get(curlpp::Easy & handle, T & value);
		static T get(curlpp::Easy & handle);
	};


	/**
	* This class is used when an info is not available for the
	* current libcURL version.
	*/

	template<CURLINFO info, typename T>
	struct CURLPPAPI NotAvailableInfo : Info<info, T>
	{
		static void get(curlpp::Easy & handle, T & value);
		static T get(curlpp::Easy & handle);
	};


	/**
	* This is the class you need to specialize if you use
	* a special type that libcURL is not aware of. This class
	* need to call curlpp::InfoGetter::get function. See 
	* curlpp::InfoGetter for more information.
	*/

	template<typename T>
	struct CURLPPAPI InfoTypeConverter
	{
		static void get(curlpp::Easy & handle, CURLINFO info, T & value);
	}; 


	template<>
	void InfoTypeConverter<std::string>
		::get(curlpp::Easy & handle, CURLINFO info, std::string & value);


	template<>
	void InfoTypeConverter<std::list<std::string> >
		::get(curlpp::Easy & handle, CURLINFO info, std::list<std::string> & value);


	template<>
	void InfoTypeConverter<long>
		::get(curlpp::Easy & handle, CURLINFO info, long & value);


	template<>
	void InfoTypeConverter<double>
		::get(curlpp::Easy & handle, CURLINFO info, double & value);


	/**
	* This is the only class that is authorized to retreive 
	* info from a curlpp::Easy class. So, this is the class
	* you need to use when you specialize the class
	* curlpp::InfoTypeConverter. This class is in fact used
	* as a proxy, just to be sure that nobody access curlpp::Easy's 
	* private data.
	*/

	struct CURLPPAPI InfoGetter
	{
		template<typename T>
		static void get(curlpp::Easy & handle, CURLINFO info, T & value);
	};


} // namespace curlpp

namespace cURLpp = curlpp;


#ifdef CURLPP_INCLUDE_TEMPLATE_DEFINITIONS
	#include "Info.inl"
#endif


#endif // #ifndef CURLPP_INFO_HPP