Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
opentxs::Basket Class Reference

#include <Basket.hpp>

Inheritance diagram for opentxs::Basket:
Collaboration diagram for opentxs::Basket:

Public Member Functions

EXPORT Basket ()
 
EXPORT Basket (int32_t nCount, int64_t lMinimumTransferAmount)
 
virtual EXPORT ~Basket ()
 
virtual void UpdateContents ()
 
virtual bool SaveContractWallet (std::ofstream &ofs) const
 
virtual EXPORT void CalculateContractID (OTIdentifier &newID) const
 
int64_t GetMinimumTransfer () const
 
int32_t GetTransferMultiple () const
 
void SetTransferMultiple (int32_t nTransferMultiple)
 
bool IsExchanging () const
 
bool GetExchangingIn () const
 
void SetExchangingIn (bool bDirection)
 
EXPORT int32_t Count () const
 
EXPORT BasketItemAt (uint32_t nIndex)
 
int64_t GetClosingTransactionNoAt (uint32_t nIndex)
 
int64_t GetClosingNum () const
 
void SetClosingNum (const int64_t &lClosingNum)
 
EXPORT void AddSubContract (const OTIdentifier &SUB_CONTRACT_ID, int64_t lMinimumTransferAmount)
 
void IncrementSubCount ()
 
EXPORT void AddRequestSubContract (const OTIdentifier &SUB_CONTRACT_ID, const OTIdentifier &SUB_ACCOUNT_ID, const int64_t &lClosingTransactionNo)
 
void SetRequestAccountID (const OTIdentifier &theAccountID)
 
const OTIdentifierGetRequestAccountID ()
 
virtual void Release ()
 
void Release_Basket ()
 
EXPORT void HarvestClosingNumbers (OTPseudonym &theNym, const OTIdentifier &theServerID, bool bSave=true)
 
- Public Member Functions inherited from opentxs::OTContract
const char * GetHashType () const
 
void SetIdentifier (const OTIdentifier &theID)
 
EXPORT OTContract ()
 
EXPORT OTContract (const OTString &name, const OTString &foldername, const OTString &filename, const OTString &strID)
 
EXPORT OTContract (const OTString &strID)
 
EXPORT OTContract (const OTIdentifier &theID)
 
void Initialize ()
 
virtual EXPORT ~OTContract ()
 
EXPORT void Release_Contract ()
 
EXPORT void ReleaseSignatures ()
 
virtual EXPORT bool CreateContract (const OTString &strContract, const OTPseudonym &theSigner)
 
EXPORT bool InsertNym (const OTString &strKeyName, const OTString &strKeyValue)
 
EXPORT void GetName (OTString &strName) const
 
EXPORT void SetName (const OTString &strName)
 
virtual EXPORT bool VerifyContract ()
 
virtual EXPORT void GetIdentifier (OTIdentifier &theIdentifier) const
 
virtual EXPORT void GetIdentifier (OTString &theIdentifier) const
 
EXPORT void GetFilename (OTString &strFilename) const
 
EXPORT void GetFoldername (OTString &strFoldername) const
 
virtual EXPORT bool LoadContract ()
 
EXPORT bool LoadContract (const char *szFoldername, const char *szFilename)
 
EXPORT bool LoadContractFromString (const OTString &theStr)
 
bool LoadContractRawFile ()
 
EXPORT bool ParseRawFile ()
 
EXPORT bool SaveToContractFolder ()
 
EXPORT bool SaveContractRaw (OTString &strOutput) const
 
EXPORT bool RewriteContract (OTString &strOutput) const
 
EXPORT bool SaveContract ()
 
EXPORT bool SaveContract (const char *szFoldername, const char *szFilename)
 
virtual EXPORT void CreateContents ()
 
EXPORT void CreateInnerContents ()
 
virtual EXPORT bool SaveContents (std::ofstream &ofs) const
 
virtual EXPORT bool SaveContractWallet (OTString &strContents) const
 
virtual EXPORT bool DisplayStatistics (OTString &strContents) const
 
virtual EXPORT bool SaveContents (OTString &strContents) const
 
virtual EXPORT bool SignContract (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr)
 
EXPORT bool SignContractAuthent (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr)
 
EXPORT bool SignWithKey (const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr)
 
EXPORT bool SignContract (const OTPseudonym &theNym, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr)
 
EXPORT bool SignContractAuthent (const OTPseudonym &theNym, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr)
 
EXPORT bool SignContract (const OTAsymmetricKey &theKey, OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr)
 
EXPORT bool SignContract (const char *szFoldername, const char *szFilename, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr)
 
virtual EXPORT bool VerifyContractID () const
 
virtual EXPORT bool VerifySignature (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const
 
virtual EXPORT bool VerifySigAuthent (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const
 
EXPORT bool VerifyWithKey (const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr) const
 
EXPORT bool VerifySignature (const OTPseudonym &theNym, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const
 
EXPORT bool VerifySigAuthent (const OTPseudonym &theNym, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const
 
EXPORT bool VerifySignature (const OTAsymmetricKey &theKey, const OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr) const
 
EXPORT bool VerifySignature (const char *szFoldername, const char *szFilename, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const
 
EXPORT const OTAsymmetricKeyGetContractPublicKey () const
 
EXPORT const OTPseudonymGetContractPublicNym () const
 

Protected Member Functions

virtual int32_t ProcessXMLNode (irr::io::IrrXMLReader *&xml)
 
- Protected Member Functions inherited from opentxs::OTContract
bool LoadContractXML ()
 

Protected Attributes

int32_t m_nSubCount
 
int64_t m_lMinimumTransfer
 
int32_t m_nTransferMultiple
 
OTIdentifier m_RequestAccountID
 
dequeOfBasketItems m_dequeItems
 
bool m_bHideAccountID
 
bool m_bExchangingIn
 
int64_t m_lClosingTransactionNo
 
- Protected Attributes inherited from opentxs::OTContract
OTString m_strName
 
OTString m_strFoldername
 
OTString m_strFilename
 
OTIdentifier m_ID
 
OTStringXML m_xmlUnsigned
 
OTString m_strRawFile
 
OTString m_strSigHashType
 
OTString m_strContractType
 
mapOfNyms m_mapNyms
 
listOfSignatures m_listSignatures
 
OTString m_strVersion
 
OTString m_strEntityShortName
 
OTString m_strEntityLongName
 
OTString m_strEntityEmail
 
OTString::Map m_mapConditions
 

Additional Inherited Members

- Static Public Member Functions inherited from opentxs::OTContract
static EXPORT bool DearmorAndTrim (const OTString &strInput, OTString &strOutput, OTString &strFirstLine)
 
static bool AddBookendsAroundContent (OTString &strOutput, const OTString &strContents, const OTString &strContractType, const OTString &strHashType, const listOfSignatures &listSignatures)
 
static EXPORT bool LoadEncodedTextField (irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput)
 
static EXPORT bool LoadEncodedTextField (irr::io::IrrXMLReader *&xml, OTString &strOutput)
 
static bool LoadEncodedTextFieldByName (irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr)
 
static bool LoadEncodedTextFieldByName (irr::io::IrrXMLReader *&xml, OTString &strOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr)
 
static bool SkipToElement (irr::io::IrrXMLReader *&xml)
 
static bool SkipToTextField (irr::io::IrrXMLReader *&xml)
 
static bool SkipAfterLoadingField (irr::io::IrrXMLReader *&xml)
 
static EXPORT bool SignFlatText (OTString &strFlatText, const OTString &strContractType, const OTPseudonym &theSigner, OTString &strOutput)
 

Detailed Description

Definition at line 190 of file Basket.hpp.

Constructor & Destructor Documentation

opentxs::Basket::Basket ( )

Definition at line 471 of file Basket.cpp.

472  : OTContract()
473  , m_nSubCount(0)
474  , m_lMinimumTransfer(0)
476  , m_bHideAccountID(false)
477  , m_bExchangingIn(false)
479 {
480 }
int64_t m_lClosingTransactionNo
Definition: Basket.hpp:206
bool m_bHideAccountID
Definition: Basket.hpp:200
bool m_bExchangingIn
Definition: Basket.hpp:204
int64_t m_lMinimumTransfer
Definition: Basket.hpp:194
int32_t m_nSubCount
Definition: Basket.hpp:193
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
opentxs::Basket::Basket ( int32_t  nCount,
int64_t  lMinimumTransferAmount 
)

Definition at line 460 of file Basket.cpp.

461  : OTContract()
462  , m_nSubCount(nCount)
463  , m_lMinimumTransfer(lMinimumTransferAmount)
465  , m_bHideAccountID(false)
466  , m_bExchangingIn(false)
468 {
469 }
int64_t m_lClosingTransactionNo
Definition: Basket.hpp:206
bool m_bHideAccountID
Definition: Basket.hpp:200
bool m_bExchangingIn
Definition: Basket.hpp:204
int64_t m_lMinimumTransfer
Definition: Basket.hpp:194
int32_t m_nSubCount
Definition: Basket.hpp:193
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
opentxs::Basket::~Basket ( )
virtual

Definition at line 482 of file Basket.cpp.

483 {
484  Release_Basket();
485 }
void Release_Basket()
Definition: Basket.cpp:487

Member Function Documentation

void opentxs::Basket::AddRequestSubContract ( const OTIdentifier SUB_CONTRACT_ID,
const OTIdentifier SUB_ACCOUNT_ID,
const int64_t &  lClosingTransactionNo 
)

Definition at line 238 of file Basket.cpp.

241 {
242  BasketItem* pItem = new BasketItem;
243 
244  OT_ASSERT_MSG(nullptr != pItem,
245  "Error allocating memory in Basket::AddRequestSubContract\n");
246 
247  // Minimum transfer amount is not set on a request. The server already knows
248  // its value.
249  // Also there is no multiple on the item, only on the basket as a whole.
250  // ALL items are multiplied by the same multiple. Even the basket amount
251  // itself is also.
252  m_dequeItems.push_back(pItem);
253 
254  pItem->SUB_CONTRACT_ID = SUB_CONTRACT_ID;
255  pItem->SUB_ACCOUNT_ID = SUB_ACCOUNT_ID;
256 
257  // When the basketReceipts are accepted in all the asset accounts,
258  // each one will have a transaction number, lClosingTransactionNo,
259  // which the user will finally clear from his record by accepting
260  // from his inbox.
261  pItem->lClosingTransactionNo = lClosingTransactionNo;
262 }
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
#define OT_ASSERT_MSG(x, s)
Definition: Assert.hpp:155
void opentxs::Basket::AddSubContract ( const OTIdentifier SUB_CONTRACT_ID,
int64_t  lMinimumTransferAmount 
)

Definition at line 265 of file Basket.cpp.

267 {
268  BasketItem* pItem = new BasketItem;
269 
270  OT_ASSERT_MSG(nullptr != pItem,
271  "Error allocating memory in Basket::AddSubContract\n");
272 
273  pItem->SUB_CONTRACT_ID = SUB_CONTRACT_ID;
274  pItem->lMinimumTransferAmount = lMinimumTransferAmount;
275 
276  m_dequeItems.push_back(pItem);
277 }
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
#define OT_ASSERT_MSG(x, s)
Definition: Assert.hpp:155
BasketItem * opentxs::Basket::At ( uint32_t  nIndex)

Definition at line 298 of file Basket.cpp.

299 {
300  if (nIndex < m_dequeItems.size()) return m_dequeItems.at(nIndex);
301 
302  return nullptr;
303 }
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
void opentxs::Basket::CalculateContractID ( OTIdentifier newID) const
virtual

Reimplemented from opentxs::OTContract.

Definition at line 449 of file Basket.cpp.

450 {
451  // Produce a version of the file without account IDs (which are different
452  // from server to server.)
453  // do this on a copy since we don't want to modify this basket
454  OTStringXML xmlUnsigned;
455  GenerateContents(xmlUnsigned, true);
456 
457  newID.CalculateDigest(xmlUnsigned);
458 }
int32_t opentxs::Basket::Count ( ) const

Definition at line 305 of file Basket.cpp.

306 {
307  return static_cast<int32_t>(m_dequeItems.size());
308 }
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
int64_t opentxs::Basket::GetClosingNum ( ) const
inline

Definition at line 254 of file Basket.hpp.

255  {
257  }
int64_t m_lClosingTransactionNo
Definition: Basket.hpp:206
int64_t opentxs::Basket::GetClosingTransactionNoAt ( uint32_t  nIndex)

Definition at line 285 of file Basket.cpp.

286 {
287  OT_ASSERT_MSG((nIndex < m_dequeItems.size()),
288  "Basket::GetClosingTransactionNoAt: index out of bounds.");
289 
290  BasketItem* pItem = m_dequeItems.at(nIndex);
291 
292  OT_ASSERT_MSG(nullptr != pItem, "Basket::GetClosingTransactionNoAt: basket "
293  "item was nullptr at that index.");
294 
295  return pItem->lClosingTransactionNo;
296 }
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
#define OT_ASSERT_MSG(x, s)
Definition: Assert.hpp:155
bool opentxs::Basket::GetExchangingIn ( ) const
inline

Definition at line 240 of file Basket.hpp.

241  {
242  return m_bExchangingIn;
243  }
bool m_bExchangingIn
Definition: Basket.hpp:204
int64_t opentxs::Basket::GetMinimumTransfer ( ) const
inline

Definition at line 221 of file Basket.hpp.

222  {
223  return m_lMinimumTransfer;
224  }
int64_t m_lMinimumTransfer
Definition: Basket.hpp:194
const OTIdentifier& opentxs::Basket::GetRequestAccountID ( )
inline

Definition at line 283 of file Basket.hpp.

284  {
285  return m_RequestAccountID;
286  }
OTIdentifier m_RequestAccountID
Definition: Basket.hpp:197
int32_t opentxs::Basket::GetTransferMultiple ( ) const
inline

Definition at line 226 of file Basket.hpp.

227  {
228  return m_nTransferMultiple;
229  }
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
void opentxs::Basket::HarvestClosingNumbers ( OTPseudonym theNym,
const OTIdentifier theServerID,
bool  bSave = true 
)

Definition at line 187 of file Basket.cpp.

189 {
190  const OTString strServerID(theServerID);
191  bool bNeedToSave = false;
192 
193  // The SUB-CURRENCIES first...
194  //
195  const uint32_t nCount = static_cast<uint32_t>(Count());
196 
197  for (uint32_t i = 0; i < nCount; i++) {
198  BasketItem* pRequestItem = At(i);
199  OT_ASSERT(nullptr != pRequestItem);
200 
201  const int64_t lClosingTransNo = pRequestItem->lClosingTransactionNo;
202 
203  // This function will only "add it back" if it was really there in the
204  // first place.
205  // (Verifies it is on issued list first, before adding to available
206  // list.)
207  //
208  const bool bClawedBack = theNym.ClawbackTransactionNumber(
209  theServerID, lClosingTransNo, false); // bSave=false
210 
211  if (bClawedBack) bNeedToSave = true;
212  }
213  // Then the BASKET currency itself...
214  //
215  const int64_t lClosingTransNo = GetClosingNum();
216 
217  // This function will only "add it back" if it was really there in the first
218  // place.
219  // (Verifies it is on issued list first, before adding to available list.)
220  //
221  const bool bClawedBack =
222  theNym.ClawbackTransactionNumber(theServerID, lClosingTransNo, false);
223 
224  if (bClawedBack) bNeedToSave = true;
225 
226  // Until I put this down here, there were subtle cases where the Nym
227  // wouldn't get saved.
228  // Therefore another vote for my "dirty instances" theory.
229  //
230  if (bSave && bNeedToSave) {
231  OTPseudonym* pSignerNym = &theNym; // probably unnecessary.
232  theNym.SaveSignedNymfile(*pSignerNym);
233  }
234 }
int64_t GetClosingNum() const
Definition: Basket.hpp:254
#define OT_ASSERT(x)
Definition: Assert.hpp:150
EXPORT BasketItem * At(uint32_t nIndex)
Definition: Basket.cpp:298
EXPORT int32_t Count() const
Definition: Basket.cpp:305
void opentxs::Basket::IncrementSubCount ( )
inline

Definition at line 268 of file Basket.hpp.

269  {
270  m_nSubCount++;
271  }
int32_t m_nSubCount
Definition: Basket.hpp:193
bool opentxs::Basket::IsExchanging ( ) const
inline

Definition at line 235 of file Basket.hpp.

236  {
237  return (m_nTransferMultiple > 0);
238  }
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
int32_t opentxs::Basket::ProcessXMLNode ( irr::io::IrrXMLReader *&  xml)
protectedvirtual

Reimplemented from opentxs::OTContract.

Definition at line 311 of file Basket.cpp.

312 {
313  const OTString strNodeName(xml->getNodeName());
314 
315  if (strNodeName.Compare("currencyBasket")) {
316  OTString strSubCount, strMinTrans;
317  strSubCount = xml->getAttributeValue("contractCount");
318  strMinTrans = xml->getAttributeValue("minimumTransfer");
319 
320  m_nSubCount = atoi(strSubCount.Get());
321  m_lMinimumTransfer = atol(strMinTrans.Get());
322 
323  otWarn << "Loading currency basket...\n";
324 
325  return 1;
326  }
327  else if (strNodeName.Compare("requestExchange")) {
328  OTString strTransferMultiple, strRequestAccountID, strDirection,
329  strTemp;
330 
331  strTransferMultiple = xml->getAttributeValue("transferMultiple");
332  strRequestAccountID = xml->getAttributeValue("transferAccountID");
333  strDirection = xml->getAttributeValue("direction");
334  strTemp = xml->getAttributeValue("closingTransactionNo");
335 
336  if (strTransferMultiple.Exists())
337  m_nTransferMultiple = atoi(strTransferMultiple.Get());
338  if (strRequestAccountID.Exists())
339  m_RequestAccountID.SetString(strRequestAccountID);
340  if (strDirection.Exists()) m_bExchangingIn = strDirection.Compare("in");
341  if (strTemp.Exists()) SetClosingNum(atol(strTemp.Get()));
342 
343  otInfo << "Basket Transfer multiple is " << m_nTransferMultiple
344  << ". Direction is " << strDirection << ". Closing number is "
345  << m_lClosingTransactionNo << ". Target account is:\n"
346  << strRequestAccountID << "\n";
347 
348  return 1;
349  }
350  else if (strNodeName.Compare("basketItem")) {
351  BasketItem* pItem = new BasketItem;
352 
353  OT_ASSERT_MSG(nullptr != pItem,
354  "Error allocating memory in Basket::ProcessXMLNode\n");
355 
356  OTString strTemp;
357 
358  strTemp = xml->getAttributeValue("minimumTransfer");
359  if (strTemp.Exists())
360  pItem->lMinimumTransferAmount = atol(strTemp.Get());
361 
362  strTemp = xml->getAttributeValue("closingTransactionNo");
363  if (strTemp.Exists())
364  pItem->lClosingTransactionNo = atol(strTemp.Get());
365 
366  OTString strSubAccountID(xml->getAttributeValue("accountID")),
367  strContractID(xml->getAttributeValue("assetID"));
368  pItem->SUB_ACCOUNT_ID.SetString(strSubAccountID);
369  pItem->SUB_CONTRACT_ID.SetString(strContractID);
370 
371  m_dequeItems.push_back(pItem);
372 
373  otInfo << "Loaded basket item.\n";
374 
375  return 1;
376  }
377 
378  return 0;
379 }
int64_t m_lClosingTransactionNo
Definition: Basket.hpp:206
bool m_bExchangingIn
Definition: Basket.hpp:204
EXPORT void SetString(const char *szString)
int64_t m_lMinimumTransfer
Definition: Basket.hpp:194
int32_t m_nSubCount
Definition: Basket.hpp:193
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
#define OT_ASSERT_MSG(x, s)
Definition: Assert.hpp:155
OTLOG_IMPORT OTLogStream otInfo
OTLOG_IMPORT OTLogStream otWarn
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
void SetClosingNum(const int64_t &lClosingNum)
Definition: Basket.hpp:258
OTIdentifier m_RequestAccountID
Definition: Basket.hpp:197
void opentxs::Basket::Release ( )
virtual

Reimplemented from opentxs::OTContract.

Definition at line 505 of file Basket.cpp.

506 {
507  Release_Basket();
508 
510 }
virtual EXPORT void Release()
Definition: OTContract.cpp:277
void Release_Basket()
Definition: Basket.cpp:487
void opentxs::Basket::Release_Basket ( )

Definition at line 487 of file Basket.cpp.

488 {
490 
491  while (!m_dequeItems.empty()) {
492  BasketItem* pItem = m_dequeItems.front();
493  m_dequeItems.pop_front();
494  delete pItem;
495  }
496 
497  m_nSubCount = 0;
498  m_lMinimumTransfer = 0;
500  m_bHideAccountID = false;
501  m_bExchangingIn = false;
503 }
int64_t m_lClosingTransactionNo
Definition: Basket.hpp:206
bool m_bHideAccountID
Definition: Basket.hpp:200
bool m_bExchangingIn
Definition: Basket.hpp:204
int64_t m_lMinimumTransfer
Definition: Basket.hpp:194
int32_t m_nSubCount
Definition: Basket.hpp:193
dequeOfBasketItems m_dequeItems
Definition: Basket.hpp:199
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
virtual EXPORT void Release()
Definition: OTData.cpp:257
OTIdentifier m_RequestAccountID
Definition: Basket.hpp:197
bool opentxs::Basket::SaveContractWallet ( std::ofstream &  ofs) const
virtual

Implements opentxs::OTContract.

Definition at line 512 of file Basket.cpp.

513 {
514  return true;
515 }
void opentxs::Basket::SetClosingNum ( const int64_t &  lClosingNum)
inline

Definition at line 258 of file Basket.hpp.

259  {
260  m_lClosingTransactionNo = lClosingNum;
261  }
int64_t m_lClosingTransactionNo
Definition: Basket.hpp:206
void opentxs::Basket::SetExchangingIn ( bool  bDirection)
inline

Definition at line 244 of file Basket.hpp.

245  {
246  m_bExchangingIn = bDirection;
247  }
bool m_bExchangingIn
Definition: Basket.hpp:204
void opentxs::Basket::SetRequestAccountID ( const OTIdentifier theAccountID)
inline

Definition at line 279 of file Basket.hpp.

280  {
281  m_RequestAccountID = theAccountID;
282  }
OTIdentifier m_RequestAccountID
Definition: Basket.hpp:197
void opentxs::Basket::SetTransferMultiple ( int32_t  nTransferMultiple)
inline

Definition at line 230 of file Basket.hpp.

231  {
232  m_nTransferMultiple = nTransferMultiple;
233  }
int32_t m_nTransferMultiple
Definition: Basket.hpp:195
void opentxs::Basket::UpdateContents ( )
virtual

Reimplemented from opentxs::OTContract.

Definition at line 383 of file Basket.cpp.

384 {
385  GenerateContents(m_xmlUnsigned, m_bHideAccountID);
386 }
bool m_bHideAccountID
Definition: Basket.hpp:200
OTStringXML m_xmlUnsigned
Definition: OTContract.hpp:174

Member Data Documentation

bool opentxs::Basket::m_bExchangingIn
protected

Definition at line 204 of file Basket.hpp.

bool opentxs::Basket::m_bHideAccountID
protected

Definition at line 200 of file Basket.hpp.

dequeOfBasketItems opentxs::Basket::m_dequeItems
protected

Definition at line 199 of file Basket.hpp.

int64_t opentxs::Basket::m_lClosingTransactionNo
protected

Definition at line 206 of file Basket.hpp.

int64_t opentxs::Basket::m_lMinimumTransfer
protected

Definition at line 194 of file Basket.hpp.

int32_t opentxs::Basket::m_nSubCount
protected

Definition at line 193 of file Basket.hpp.

int32_t opentxs::Basket::m_nTransferMultiple
protected

Definition at line 195 of file Basket.hpp.

OTIdentifier opentxs::Basket::m_RequestAccountID
protected

Definition at line 197 of file Basket.hpp.


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