This file is indexed.

/usr/include/jsonrpccpp/common/specificationparser.h is in libjsonrpccpp-dev 0.7.0-1build2.

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
/*************************************************************************
 * libjson-rpc-cpp
 *************************************************************************
 * @file    specificationparser.h
 * @date    12.03.2013
 * @author  Peter Spiess-Knafl <peter.knafl@gmail.com>
 * @license See attached LICENSE.txt
 ************************************************************************/

#ifndef JSONRPC_CPP_SPECIFICATIONPARSER_H
#define JSONRPC_CPP_SPECIFICATIONPARSER_H

#include "procedure.h"
#include "exception.h"

namespace jsonrpc {

    class SpecificationParser
    {
        public:
            static std::vector<Procedure> GetProceduresFromFile(const std::string& filename)    throw (JsonRpcException);
            static std::vector<Procedure> GetProceduresFromString(const std::string& spec)      throw (JsonRpcException);

            static void         GetFileContent  (const std::string& filename, std::string& target);

        private:
            static void         GetProcedure    (Json::Value& val, Procedure &target);
            static void         GetMethod       (Json::Value& val, Procedure &target);
            static void         GetNotification (Json::Value& val, Procedure &target);
            static jsontype_t   toJsonType      (Json::Value& val);

            static void         GetPositionalParameters (Json::Value &val, Procedure &target);
            static void         GetNamedParameters      (Json::Value &val, Procedure &target);
            static std::string  GetProcedureName        (Json::Value &signature);

    };
}
#endif // JSONRPC_CPP_SPECIFICATIONPARSER_H