|
Mixe for Privacy and Anonymity in the Internet
|
CAXMLPriceCertificate uses an array of CAPriceInfo as a "poor man's hashtable" represents one PriceCertificate element as contained in a CC (Subjectkeyidentifier of a Mix plus either a PriceCert Hash (for pay Mixes) or null (for non-pay Mixes) ) More...
#include <CAPriceInfo.hpp>
Public Member Functions | |
| CAPriceInfo (UINT8 *strMixId, UINT8 *strPriceCertHash, SINT32 a_postition) | |
| virtual | ~CAPriceInfo () |
| UINT8 * | getMixId () |
| UINT8 * | getPriceCertHash () |
| SINT32 | getPosition () |
Private Attributes | |
| UINT8 * | m_pStrMixId |
| UINT8 * | m_pStrPriceCertHash |
| SINT32 | m_postition |
CAXMLPriceCertificate uses an array of CAPriceInfo as a "poor man's hashtable" represents one PriceCertificate element as contained in a CC (Subjectkeyidentifier of a Mix plus either a PriceCert Hash (for pay Mixes) or null (for non-pay Mixes) )
Definition at line 41 of file CAPriceInfo.hpp.
| CAPriceInfo::CAPriceInfo | ( | UINT8 * | strMixId, |
| UINT8 * | strPriceCertHash, | ||
| SINT32 | a_postition | ||
| ) |
Definition at line 34 of file CAPriceInfo.cpp.
References m_postition, m_pStrMixId, and m_pStrPriceCertHash.
{
m_pStrMixId = strMixId;
m_pStrPriceCertHash = strPriceCertHash;
m_postition = a_postition;
}
| CAPriceInfo::~CAPriceInfo | ( | ) | [virtual] |
Definition at line 42 of file CAPriceInfo.cpp.
References m_pStrMixId, and m_pStrPriceCertHash.
{
delete[] m_pStrMixId;
m_pStrMixId = NULL;
delete[] m_pStrPriceCertHash;
m_pStrPriceCertHash = NULL;
}
| UINT8* CAPriceInfo::getMixId | ( | ) | [inline] |
Definition at line 48 of file CAPriceInfo.hpp.
References m_pStrMixId.
Referenced by CAXMLCostConfirmation::getMixId().
{
UINT8* pTmpStr = NULL;
if(m_pStrMixId!=NULL)
{
int hlen = strlen((char*)m_pStrMixId)+1;
pTmpStr = new UINT8[hlen];
memset(pTmpStr, 0, (hlen*sizeof(UINT8)) );
strncpy( (char*)pTmpStr, (char*)m_pStrMixId, (hlen-1));
}
return pTmpStr;
}
| SINT32 CAPriceInfo::getPosition | ( | ) | [inline] |
Definition at line 74 of file CAPriceInfo.hpp.
References m_postition.
Referenced by CAXMLCostConfirmation::getPosition().
{
return m_postition;
}
| UINT8* CAPriceInfo::getPriceCertHash | ( | ) | [inline] |
Definition at line 61 of file CAPriceInfo.hpp.
References m_pStrPriceCertHash.
Referenced by CAXMLCostConfirmation::getPriceCertHash().
{
UINT8* pTmpStr = NULL;
if(m_pStrPriceCertHash!=NULL)
{
int hlen = strlen((char*)m_pStrPriceCertHash)+1;
pTmpStr = new UINT8[hlen];
memset(pTmpStr, 0, (hlen*sizeof(UINT8)) );
strncpy((char*)pTmpStr, (char*)m_pStrPriceCertHash, (hlen-1));
}
return pTmpStr;
}
SINT32 CAPriceInfo::m_postition [private] |
Definition at line 83 of file CAPriceInfo.hpp.
Referenced by CAPriceInfo(), and getPosition().
UINT8* CAPriceInfo::m_pStrMixId [private] |
Definition at line 81 of file CAPriceInfo.hpp.
Referenced by CAPriceInfo(), getMixId(), and ~CAPriceInfo().
UINT8* CAPriceInfo::m_pStrPriceCertHash [private] |
Definition at line 82 of file CAPriceInfo.hpp.
Referenced by CAPriceInfo(), getPriceCertHash(), and ~CAPriceInfo().
1.7.6.1