#include <map>
#include <google/protobuf/compiler/php/php_generator.h>
#include "src/compiler/config.h"
#include "src/compiler/generator_helpers.h"
#include "src/compiler/php_generator_helpers.h"
GeneratedClassName;
Descriptor;
FileDescriptor;
MethodDescriptor;
ServiceDescriptor;
Printer;
StringOutputStream;
map;
namespace grpc_php_generator {
namespace {
std::string ConvertToPhpNamespace(const std::string& name) { … }
std::string PackageName(const FileDescriptor* file) { … }
std::string MessageIdentifierName(const std::string& name,
const FileDescriptor* file) { … }
void PrintMethod(const MethodDescriptor* method, Printer* out) { … }
void PrintServerMethod(const MethodDescriptor* method, Printer* out) { … }
void PrintServerMethodDescriptors(const ServiceDescriptor* service,
Printer* out) { … }
void PrintService(const ServiceDescriptor* service,
const std::string& class_suffix, bool is_server,
Printer* out) { … }
}
std::string GenerateFile(const FileDescriptor* file,
const ServiceDescriptor* service,
const std::string& class_suffix, bool is_server) { … }
}