client-cpp  0.10.0
kaa::EndpointObjectHash Class Reference

#include <EndpointObjectHash.hpp>

Public Member Functions

 EndpointObjectHash ()
 
 EndpointObjectHash (const std::string &str)
 
 EndpointObjectHash (const std::uint8_t *data, const std::uint32_t &dataSize)
 
 EndpointObjectHash (const SharedDataBuffer &endpointHash)
 
 EndpointObjectHash (const EndpointObjectHash &endpointHash)
 
 EndpointObjectHash (EndpointObjectHash &&endpointHash)
 
EndpointObjectHashoperator= (const EndpointObjectHash &endpointHash)
 
EndpointObjectHashoperator= (EndpointObjectHash &&endpointHash)
 
HashDigest getHashDigest ()
 
bool operator== (const EndpointObjectHash &endpointHash)
 
bool operator!= (const EndpointObjectHash &endpointHash)
 
 operator std::vector< std::uint8_t > ()
 

Detailed Description

Used to calculate SHA-1 hash

Definition at line 35 of file EndpointObjectHash.hpp.

Constructor & Destructor Documentation

kaa::EndpointObjectHash::EndpointObjectHash ( )
inline

Definition at line 38 of file EndpointObjectHash.hpp.

kaa::EndpointObjectHash::EndpointObjectHash ( const std::string &  str)
kaa::EndpointObjectHash::EndpointObjectHash ( const std::uint8_t *  data,
const std::uint32_t &  dataSize 
)
kaa::EndpointObjectHash::EndpointObjectHash ( const SharedDataBuffer endpointHash)
kaa::EndpointObjectHash::EndpointObjectHash ( const EndpointObjectHash endpointHash)
kaa::EndpointObjectHash::EndpointObjectHash ( EndpointObjectHash &&  endpointHash)

Member Function Documentation

HashDigest kaa::EndpointObjectHash::getHashDigest ( )

Retrieves digest

Returns
Buffer with digest or empty one if no data was put
kaa::EndpointObjectHash::operator std::vector< std::uint8_t > ( )
bool kaa::EndpointObjectHash::operator!= ( const EndpointObjectHash endpointHash)
inline

Checks if two hashes are not equal

Returns
the result of comparison

Definition at line 78 of file EndpointObjectHash.hpp.

EndpointObjectHash& kaa::EndpointObjectHash::operator= ( const EndpointObjectHash endpointHash)
EndpointObjectHash& kaa::EndpointObjectHash::operator= ( EndpointObjectHash &&  endpointHash)
bool kaa::EndpointObjectHash::operator== ( const EndpointObjectHash endpointHash)
inline

Checks if two hashes are equal

Returns
the result of comparison

Definition at line 72 of file EndpointObjectHash.hpp.


The documentation for this class was generated from the following file: