예제 #1
0
OTToken::OTToken()
  : ot_super(),
    m_bPasswordProtected(false),
    m_lDenomination(0),
    m_nTokenCount(0),
    m_nChosenIndex(0), 
    m_nSeries(0), 
    m_State(blankToken), 
    m_bSavePrivateKeys(false)
{
    InitToken();
}
예제 #2
0
OTToken::OTToken(const OTIdentifier & SERVER_ID, const OTIdentifier & ASSET_ID)
  : ot_super(SERVER_ID, ASSET_ID), 
    m_bPasswordProtected(false),
    m_lDenomination(0), 
    m_nTokenCount(0), 
    m_nChosenIndex(0), 
    m_nSeries(0), 
    m_State(blankToken), 
    m_bSavePrivateKeys(false)
{
	InitToken();
	
	// m_ServerID and m_AssetTypeID are now in the parent class (OTInstrument)
	// So they are initialized there now.
}
예제 #3
0
OTToken::OTToken(const OTPurse & thePurse)
  : ot_super(),
    m_bPasswordProtected(false),
    m_lDenomination(0), 
    m_nTokenCount(0), 
    m_nChosenIndex(0), 
    m_nSeries(0), 
    m_State(blankToken), 
    m_bSavePrivateKeys(false)
{
	InitToken();

	// These are in the parent class, OTInstrument.
	// I set them here because the "Purse" argument only exists 
	// in this subclass constructor, not the base.
	m_ServerID		= thePurse.GetServerID();
	m_AssetTypeID	= thePurse.GetAssetID();
}
예제 #4
0
//------------------------------------------------------------------------------
FBasicToken::FBasicToken()
{
	InitToken();
}