#include "src/compiler/objective_c_generator.h"
#include <map>
#include <set>
#include <sstream>
#include <google/protobuf/compiler/objectivec/objectivec_helpers.h>
#include "src/compiler/config.h"
#include "src/compiler/objective_c_generator_helpers.h"
ClassName;
FileDescriptor;
MethodDescriptor;
ServiceDescriptor;
Printer;
map;
set;
namespace grpc_objective_c_generator {
namespace {
void PrintProtoRpcDeclarationAsPragma(Printer* printer,
const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
template <typename DescriptorType>
static void PrintAllComments(const DescriptorType* desc, Printer* printer,
bool deprecated = false) { … }
void PrintMethodSignature(Printer* printer, const MethodDescriptor* method,
const map< ::std::string, ::std::string>& vars) { … }
void PrintSimpleSignature(Printer* printer, const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
void PrintAdvancedSignature(Printer* printer, const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
void PrintV2Signature(Printer* printer, const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
inline map< ::std::string, ::std::string> GetMethodVars(
const MethodDescriptor* method) { … }
void PrintMethodDeclarations(Printer* printer, const MethodDescriptor* method) { … }
void PrintV2MethodDeclarations(Printer* printer,
const MethodDescriptor* method) { … }
void PrintSimpleImplementation(Printer* printer, const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
void PrintAdvancedImplementation(Printer* printer,
const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
void PrintV2Implementation(Printer* printer, const MethodDescriptor* method,
map< ::std::string, ::std::string> vars) { … }
void PrintMethodImplementations(Printer* printer,
const MethodDescriptor* method,
const Parameters& generator_params) { … }
}
::std::string GetAllMessageClasses(const FileDescriptor* file) { … }
::std::string GetProtocol(const ServiceDescriptor* service,
const Parameters& generator_params) { … }
::std::string GetV2Protocol(const ServiceDescriptor* service) { … }
::std::string GetInterface(const ServiceDescriptor* service,
const Parameters& generator_params) { … }
::std::string GetSource(const ServiceDescriptor* service,
const Parameters& generator_params) { … }
}