@ -241,18 +241,18 @@ class LIBPROTOBUF_EXPORT MessageDifferencer {
// mutually exclusive. If a field has been both moved and modified, then
// mutually exclusive. If a field has been both moved and modified, then
// only ReportModified will be called.
// only ReportModified will be called.
virtual void ReportMoved (
virtual void ReportMoved (
const Message & message1 ,
const Message & /* message1 */ ,
const Message & message2 ,
const Message & /* message2 */ ,
const std : : vector < SpecificField > & field_path ) { }
const std : : vector < SpecificField > & /* field_path */ ) { }
// Reports that two fields match. Useful for doing side-by-side diffs.
// Reports that two fields match. Useful for doing side-by-side diffs.
// This function is mutually exclusive with ReportModified and ReportMoved.
// This function is mutually exclusive with ReportModified and ReportMoved.
// Note that you must call set_report_matches(true) before calling Compare
// Note that you must call set_report_matches(true) before calling Compare
// to make use of this function.
// to make use of this function.
virtual void ReportMatched (
virtual void ReportMatched (
const Message & message1 ,
const Message & /* message1 */ ,
const Message & message2 ,
const Message & /* message2 */ ,
const std : : vector < SpecificField > & field_path ) { }
const std : : vector < SpecificField > & /* field_path */ ) { }
// Reports that two fields would have been compared, but the
// Reports that two fields would have been compared, but the
// comparison has been skipped because the field was marked as
// comparison has been skipped because the field was marked as
@ -274,16 +274,16 @@ class LIBPROTOBUF_EXPORT MessageDifferencer {
// the fields are equal or not (perhaps with a second call to
// the fields are equal or not (perhaps with a second call to
// Compare()), if it cares.
// Compare()), if it cares.
virtual void ReportIgnored (
virtual void ReportIgnored (
const Message & message1 ,
const Message & /* message1 */ ,
const Message & message2 ,
const Message & /* message2 */ ,
const std : : vector < SpecificField > & field_path ) { }
const std : : vector < SpecificField > & /* field_path */ ) { }
// Report that an unknown field is ignored. (see comment above).
// Report that an unknown field is ignored. (see comment above).
// Note this is a different function since the last SpecificField in field
// Note this is a different function since the last SpecificField in field
// path has a null field. This could break existing Reporter.
// path has a null field. This could break existing Reporter.
virtual void ReportUnknownFieldIgnored (
virtual void ReportUnknownFieldIgnored (
const Message & message1 , const Message & message2 ,
const Message & /* message1 */ , const Message & /* message2 */ ,
const std : : vector < SpecificField > & field_path ) { }
const std : : vector < SpecificField > & /* field_path */ ) { }
private :
private :
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Reporter ) ;
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Reporter ) ;
@ -297,9 +297,9 @@ class LIBPROTOBUF_EXPORT MessageDifferencer {
virtual ~ MapKeyComparator ( ) ;
virtual ~ MapKeyComparator ( ) ;
virtual bool IsMatch (
virtual bool IsMatch (
const Message & message1 ,
const Message & /* message1 */ ,
const Message & message2 ,
const Message & /* message2 */ ,
const std : : vector < SpecificField > & parent_fields ) const {
const std : : vector < SpecificField > & /* parent_fields */ ) const {
GOOGLE_CHECK ( false ) < < " IsMatch() is not implemented. " ;
GOOGLE_CHECK ( false ) < < " IsMatch() is not implemented. " ;
return false ;
return false ;
}
}
@ -321,18 +321,18 @@ class LIBPROTOBUF_EXPORT MessageDifferencer {
// Returns true if the field should be ignored.
// Returns true if the field should be ignored.
virtual bool IsIgnored (
virtual bool IsIgnored (
const Message & message1 ,
const Message & /* message1 */ ,
const Message & message2 ,
const Message & /* message2 */ ,
const FieldDescriptor * field ,
const FieldDescriptor * /* field */ ,
const std : : vector < SpecificField > & parent_fields ) = 0 ;
const std : : vector < SpecificField > & /* parent_fields */ ) = 0 ;
// Returns true if the unknown field should be ignored.
// Returns true if the unknown field should be ignored.
// Note: This will be called for unknown fields as well in which case
// Note: This will be called for unknown fields as well in which case
// field.field will be null.
// field.field will be null.
virtual bool IsUnknownFieldIgnored (
virtual bool IsUnknownFieldIgnored (
const Message & message1 , const Message & message2 ,
const Message & /* message1 */ , const Message & /* message2 */ ,
const SpecificField & field ,
const SpecificField & /* field */ ,
const std : : vector < SpecificField > & parent_fields ) {
const std : : vector < SpecificField > & /* parent_fields */ ) {
return false ;
return false ;
}
}
} ;
} ;