client-cpp  0.6.1
kaa::EndpointObjectHash Class Reference

#include <EndpointObjectHash.hpp>

+ Inheritance diagram for kaa::EndpointObjectHash:
+ Collaboration diagram for kaa::EndpointObjectHash:

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 (EndpointObjectHash &endpointHash)
 
EndpointObjectHashoperator= (EndpointObjectHash &endpointHash)
 
SharedDataBuffer getHash ()
 
bool operator== (EndpointObjectHash &endpointHash)
 
bool operator!= (EndpointObjectHash &endpointHash)
 
 operator std::vector< std::uint8_t > ()
 

Static Public Member Functions

static bool isEqual (SharedDataBuffer left, SharedDataBuffer right)
 

Detailed Description

Used to calculate SHA-1 hash

Definition at line 35 of file EndpointObjectHash.hpp.

Constructor & Destructor Documentation

kaa::EndpointObjectHash::EndpointObjectHash ( )
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 ( EndpointObjectHash endpointHash)

Member Function Documentation

SharedDataBuffer kaa::EndpointObjectHash::getHash ( )

Retrieves data hash

Returns
Buffer with hash or empty one if no data was put
static bool kaa::EndpointObjectHash::isEqual ( SharedDataBuffer  left,
SharedDataBuffer  right 
)
static

Check if two buffer are equal

Returns
the result of comparison
kaa::EndpointObjectHash::operator std::vector< std::uint8_t > ( )
bool kaa::EndpointObjectHash::operator!= ( EndpointObjectHash endpointHash)
inline

Checks if two hashes are not equal

Returns
the result of comparison

Definition at line 75 of file EndpointObjectHash.hpp.

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

Checks if two hashes are equal

Returns
the result of comparison

Definition at line 67 of file EndpointObjectHash.hpp.


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