@@ -57,10 +57,10 @@ namespace cpp {
57
57
// message Baz { message Moo {} }
58
58
// Then the qualified namespace for Moo would be:
59
59
// ::foo::bar
60
- std::string Namespace (const FileDescriptor* d);
61
- std::string Namespace (const Descriptor* d);
62
- std::string Namespace (const FieldDescriptor* d);
63
- std::string Namespace (const EnumDescriptor* d);
60
+ PROTOC_EXPORT std::string Namespace (const FileDescriptor* d);
61
+ PROTOC_EXPORT std::string Namespace (const Descriptor* d);
62
+ PROTOC_EXPORT std::string Namespace (const FieldDescriptor* d);
63
+ PROTOC_EXPORT std::string Namespace (const EnumDescriptor* d);
64
64
65
65
// Returns the unqualified C++ name.
66
66
//
@@ -69,8 +69,8 @@ std::string Namespace(const EnumDescriptor* d);
69
69
// message Baz { message Moo {} }
70
70
// Then the non-qualified version would be:
71
71
// Baz_Moo
72
- std::string ClassName (const Descriptor* descriptor);
73
- std::string ClassName (const EnumDescriptor* enum_descriptor);
72
+ PROTOC_EXPORT std::string ClassName (const Descriptor* descriptor);
73
+ PROTOC_EXPORT std::string ClassName (const EnumDescriptor* enum_descriptor);
74
74
75
75
// Returns the fully qualified C++ name.
76
76
//
@@ -79,25 +79,26 @@ std::string ClassName(const EnumDescriptor* enum_descriptor);
79
79
// message Baz { message Moo {} }
80
80
// Then the qualified ClassName for Moo would be:
81
81
// ::foo::bar::Baz_Moo
82
- std::string QualifiedClassName (const Descriptor* d);
83
- std::string QualifiedClassName (const EnumDescriptor* d);
84
- std::string QualifiedExtensionName (const FieldDescriptor* d);
82
+ PROTOC_EXPORT std::string QualifiedClassName (const Descriptor* d);
83
+ PROTOC_EXPORT std::string QualifiedClassName (const EnumDescriptor* d);
84
+ PROTOC_EXPORT std::string QualifiedExtensionName (const FieldDescriptor* d);
85
85
86
86
// Get the (unqualified) name that should be used for this field in C++ code.
87
87
// The name is coerced to lower-case to emulate proto1 behavior. People
88
88
// should be using lowercase-with-underscores style for proto field names
89
89
// anyway, so normally this just returns field->name().
90
- std::string FieldName (const FieldDescriptor* field);
90
+ PROTOC_EXPORT std::string FieldName (const FieldDescriptor* field);
91
91
92
92
// Requires that this field is in a oneof. Returns the (unqualified) case
93
93
// constant for this field.
94
- std::string OneofCaseConstantName (const FieldDescriptor* field);
94
+ PROTOC_EXPORT std::string OneofCaseConstantName (const FieldDescriptor* field);
95
95
// Returns the quafilied case constant for this field.
96
- std::string QualifiedOneofCaseConstantName (const FieldDescriptor* field);
96
+ PROTOC_EXPORT std::string QualifiedOneofCaseConstantName (
97
+ const FieldDescriptor* field);
97
98
98
99
// Get the (unqualified) name that should be used for this enum value in C++
99
100
// code.
100
- std::string EnumValueName (const EnumValueDescriptor* enum_value);
101
+ PROTOC_EXPORT std::string EnumValueName (const EnumValueDescriptor* enum_value);
101
102
102
103
// Strips ".proto" or ".protodevel" from the end of a filename.
103
104
PROTOC_EXPORT std::string StripProto (absl::string_view filename);
0 commit comments