/usr/include/jsonrpccpp/stubgen/codegenerator.h is in libjsonrpccpp-dev 0.6.0-2build1.
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 | /*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file codegenerator.h
* @date 3/21/2014
* @author Peter Spiess-Knafl <peter.knafl@gmail.com>
* @license See attached LICENSE.txt
************************************************************************/
#ifndef JSONRPC_CPP_CODEGENERATOR_H
#define JSONRPC_CPP_CODEGENERATOR_H
#include <string>
#include <ostream>
#include <fstream>
#include <sstream>
namespace jsonrpc
{
class CodeGenerator
{
public:
CodeGenerator(const std::string &filename);
CodeGenerator(std::ostream &outputstream);
virtual ~CodeGenerator();
void write (const std::string &line);
void writeLine(const std::string &line);
void writeNewLine();
void increaseIndentation();
void decreaseIndentation();
void setIndentSymbol(const std::string &symbol);
private:
std::ostream *output;
std::ofstream file;
std::string indentSymbol;
int indentation;
bool atBeginning;
};
}
#endif // JSONRPC_CPP_CODEGENERATOR_H
|