OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | 30 |
31 // Defines utilities for the TypeResolver. | |
32 | |
33 #ifndef GOOGLE_PROTOBUF_UTIL_TYPE_RESOLVER_UTIL_H__ | 31 #ifndef GOOGLE_PROTOBUF_UTIL_TYPE_RESOLVER_UTIL_H__ |
34 #define GOOGLE_PROTOBUF_UTIL_TYPE_RESOLVER_UTIL_H__ | 32 #define GOOGLE_PROTOBUF_UTIL_TYPE_RESOLVER_UTIL_H__ |
35 | 33 |
36 #include <string> | 34 #include <string> |
37 | 35 |
38 #include <google/protobuf/stubs/common.h> | 36 #include <google/protobuf/stubs/common.h> |
39 namespace google { | 37 namespace google { |
40 namespace protobuf { | 38 namespace protobuf { |
41 class DescriptorPool; | 39 class DescriptorPool; |
42 namespace util { | 40 namespace util { |
43 class TypeResolver; | 41 class TypeResolver; |
44 | 42 |
45 // Creates a TypeResolver that serves type information in the given descriptor | 43 // Creates a TypeResolver that serves type information in the given descriptor |
46 // pool. Caller takes ownership of the returned TypeResolver. | 44 // pool. Caller takes ownership of the returned TypeResolver. |
47 LIBPROTOBUF_EXPORT TypeResolver* NewTypeResolverForDescriptorPool( | 45 LIBPROTOBUF_EXPORT TypeResolver* NewTypeResolverForDescriptorPool( |
48 const string& url_prefix, const DescriptorPool* pool); | 46 const string& url_prefix, const DescriptorPool* pool); |
49 | 47 |
50 } // namespace util | 48 } // namespace util |
51 } // namespace protobuf | 49 } // namespace protobuf |
52 | 50 |
53 } // namespace google | 51 } // namespace google |
54 #endif // GOOGLE_PROTOBUF_UTIL_TYPE_RESOLVER_UTIL_H__ | 52 #endif // GOOGLE_PROTOBUF_UTIL_TYPE_RESOLVER_UTIL_H__ |
OLD | NEW |