chromium/third_party/flatbuffers/src/src/idl_gen_grpc.cpp

/*
 * Copyright 2014 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// independent from idl_parser, since this code is not needed for most clients

#include <cstdio>

#include "flatbuffers/code_generators.h"
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
#include "src/compiler/cpp_generator.h"
#include "src/compiler/go_generator.h"
#include "src/compiler/java_generator.h"
#include "src/compiler/python_generator.h"
#include "src/compiler/swift_generator.h"
#include "src/compiler/ts_generator.h"

#if defined(_MSC_VER)
#  pragma warning(push)
#  pragma warning(disable : 4512)  // C4512: 'class' : assignment operator could
// not be generated
#endif

namespace flatbuffers {

class FlatBufMethod : public grpc_generator::Method {};

class FlatBufService : public grpc_generator::Service {};

class FlatBufPrinter : public grpc_generator::Printer {};

class FlatBufFile : public grpc_generator::File {};

class GoGRPCGenerator : public flatbuffers::BaseGenerator {};

bool GenerateGoGRPC(const Parser &parser, const std::string &path,
                    const std::string &file_name) {}

bool GenerateCppGRPC(const Parser &parser, const std::string &path,
                     const std::string &file_name) {}

class JavaGRPCGenerator : public flatbuffers::BaseGenerator {};

bool GenerateJavaGRPC(const Parser &parser, const std::string &path,
                      const std::string &file_name) {}

bool GeneratePythonGRPC(const Parser &parser, const std::string &path,
                        const std::string & /*file_name*/) {}

class SwiftGRPCGenerator : public flatbuffers::BaseGenerator {};

bool GenerateSwiftGRPC(const Parser &parser, const std::string &path,
                       const std::string &file_name) {}

class TSGRPCGenerator : public flatbuffers::BaseGenerator {};

bool GenerateTSGRPC(const Parser &parser, const std::string &path,
                    const std::string &file_name) {}

}  // namespace flatbuffers

#if defined(_MSC_VER)
#  pragma warning(pop)
#endif