123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef GOOGLE_PROTOBUF_REFLECTION_OPS_H__
- #define GOOGLE_PROTOBUF_REFLECTION_OPS_H__
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/message.h>
- namespace google {
- namespace protobuf {
- namespace internal {
- class LIBPROTOBUF_EXPORT ReflectionOps {
- public:
- static void Copy(const Message& from, Message* to);
- static void Merge(const Message& from, Message* to);
- static void Clear(Message* message);
- static bool IsInitialized(const Message& message);
- static void DiscardUnknownFields(Message* message);
-
-
-
- static void FindInitializationErrors(const Message& message,
- const string& prefix,
- vector<string>* errors);
- private:
-
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ReflectionOps);
- };
- }
- }
- }
- #endif
|