* This file contains implementation of the %_ImageMetadataImpl class.
*/
-// includes
#include <FBaseSysLog.h>
#include <FMediaImage.h>
#include <FGrpBitmap.h>
#include <FIo_FileImpl.h>
#include <FMedia_ImageImpl.h>
-// using namespaces
using namespace std;
using namespace Tizen::Base;
using namespace Tizen::Io;
int
_ImageMetadataImpl::GetHashCode(void) const
{
- int hash = 0;
-
- hash += (this->GetCameraManufacturer()).GetHashCode();
- hash += (this->GetCameraModel()).GetHashCode();
- hash += (this->GetDateTime()).GetHashCode();
- hash += Integer::GetHashCode(this->GetHeight());
- hash += Double::GetHashCode(this->GetLatitude());
- hash += Double::GetHashCode(this->GetLongitude());
- hash += Integer::GetHashCode(this->GetOrientation());
- hash += (this->GetSoftware()).GetHashCode();
- hash += (this->GetWhiteBalance()).GetHashCode();
- hash += Integer::GetHashCode(this->GetWidth());
-
- return hash;
+ return (this->GetCameraManufacturer()).GetHashCode()
+ ^ (this->GetCameraModel()).GetHashCode()
+ ^ (this->GetDateTime()).GetHashCode()
+ ^ Integer::GetHashCode(this->GetHeight())
+ ^ Double::GetHashCode(this->GetLatitude())
+ ^ Double::GetHashCode(this->GetLongitude())
+ ^ Integer::GetHashCode(this->GetOrientation())
+ ^ (this->GetSoftware()).GetHashCode()
+ ^ (this->GetWhiteBalance()).GetHashCode()
+ ^ Integer::GetHashCode(this->GetWidth());
}
int