Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:12:19

0001 #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_EDITION_H__
0002 #define GOOGLE_PROTOBUF_DESCRIPTOR_EDITION_H__
0003 
0004 #include "google/protobuf/descriptor.h"
0005 #include "google/protobuf/descriptor.pb.h"
0006 
0007 namespace google {
0008 namespace protobuf {
0009 
0010 // TODO Remove this deprecated API entirely.
0011 class FileDescriptorLegacy {
0012  public:
0013   explicit FileDescriptorLegacy(const FileDescriptor* file) : file_(file) {}
0014 
0015   // Edition shouldn't be depended on unless dealing with raw unbuilt
0016   // descriptors, which will expose it via FileDescriptorProto.edition.
0017   Edition edition() const { return file_->edition(); }
0018 
0019  private:
0020   const FileDescriptor* file_;
0021 };
0022 }  // namespace protobuf
0023 }  // namespace google
0024 
0025 #endif  // GOOGLE_PROTOBUF_DESCRIPTOR_EDITION_H__