// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "clearvalueupdate.h" #include #include using namespace vespalib::xml; namespace document { bool ClearValueUpdate::operator==(const ValueUpdate& other) const { return (other.getType() == Clear); } // Ensure that this update is compatible with given field. void ClearValueUpdate::checkCompatibility(const Field&) const { } // Apply this update to the given document. bool ClearValueUpdate::applyTo(FieldValue& ) const { return false; } void ClearValueUpdate::printXml(XmlOutputStream& xos) const { xos << XmlTag("clear") << XmlEndTag(); } // Print this update in human readable form. void ClearValueUpdate::print(std::ostream& out, bool, const std::string&) const { out << "ClearValueUpdate()"; } // Deserialize this update from the given buffer. void ClearValueUpdate::deserialize(const DocumentTypeRepo&, const DataType&, nbostream &) { } }