NHash Class Reference

NHash is a simple class that abstract the manipulation of criptographic hashes. More...

List of all members.

Public Member Functions

 NHash (const NString name, const NString &value)
 Constructs a NHash object.
 NHash (const NHash &other)
 Constructs a NHash object.
NString getName (void) const
 Gets the name of the hash.
NString getValue (void) const
 Gets the value of the hash.
NHashoperator= (const NHash &rhs)
 Copies one hash to another.
bool operator== (const NHash &rhs)
 Tests the equality of two hashes.


Detailed Description

NHash is a simple class that abstract the manipulation of criptographic hashes.

Definition at line 36 of file nhash.h.


Constructor & Destructor Documentation

NHash ( const NString  name,
const NString value 
)

Constructs a NHash object.

Parameters:
name The name of the hash
value The value of the hash

Definition at line 28 of file nhash.cpp.

NHash ( const NHash other  ) 

Constructs a NHash object.

Parameters:
other Another hash object to be copied

Definition at line 36 of file nhash.cpp.


Member Function Documentation

NString getName ( void   )  const

Gets the name of the hash.

Returns:
The name of the hash as a NString object

Definition at line 43 of file nhash.cpp.

Referenced by operator=().

NString getValue ( void   )  const

Gets the value of the hash.

Returns:
The value of the hash as a NString object

Definition at line 48 of file nhash.cpp.

Referenced by operator=().

NHash & operator= ( const NHash rhs  ) 

Copies one hash to another.

Parameters:
rhs Another hash object to be copied
Returns:
A reference to the current object

Definition at line 53 of file nhash.cpp.

References getName(), and getValue().

bool operator== ( const NHash rhs  ) 

Tests the equality of two hashes.

Parameters:
rhs Another hash object to be tested against
Returns:
true if it's equal or false otherwise

Definition at line 61 of file nhash.cpp.

References m_name, and m_value.


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 23:10:36 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4