Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
CMPCrowd Class Reference

#include <mastercore_sp.h>

+ Collaboration diagram for CMPCrowd:

Public Member Functions

 CMPCrowd ()
 
 CMPCrowd (unsigned int pid, uint64_t nv, unsigned int cd, uint64_t dl, unsigned char eb, unsigned char per, uint64_t uct, uint64_t ict)
 
unsigned int getPropertyId () const
 
uint64_t getDeadline () const
 
uint64_t getCurrDes () const
 
void incTokensUserCreated (uint64_t amount)
 
void incTokensIssuerCreated (uint64_t amount)
 
uint64_t getUserCreated () const
 
uint64_t getIssuerCreated () const
 
void insertDatabase (std::string txhash, std::vector< uint64_t > txdata)
 
std::map< std::string, std::vector< uint64_t > > getDatabase () const
 
void print (const string &address, FILE *fp=stdout) const
 
void saveCrowdSale (ofstream &file, SHA256_CTX *shaCtx, string const &addr) const
 

Private Attributes

unsigned int propertyId
 
uint64_t nValue
 
unsigned int property_desired
 
uint64_t deadline
 
unsigned char early_bird
 
unsigned char percentage
 
uint64_t u_created
 
uint64_t i_created
 
uint256 txid
 
std::map< std::string, std::vector< uint64_t > > txFundraiserData
 

Detailed Description

Definition at line 398 of file mastercore_sp.h.

Constructor & Destructor Documentation

CMPCrowd::CMPCrowd ( )
inline

Definition at line 417 of file mastercore_sp.h.

CMPCrowd::CMPCrowd ( unsigned int  pid,
uint64_t  nv,
unsigned int  cd,
uint64_t  dl,
unsigned char  eb,
unsigned char  per,
uint64_t  uct,
uint64_t  ict 
)
inline

Definition at line 421 of file mastercore_sp.h.

Member Function Documentation

uint64_t CMPCrowd::getCurrDes ( ) const
inline

Definition at line 429 of file mastercore_sp.h.

References property_desired.

Referenced by CMPTransaction::logicMath_SimpleSend().

+ Here is the caller graph for this function:

std::map<std::string, std::vector<uint64_t> > CMPCrowd::getDatabase ( ) const
inline

Definition at line 438 of file mastercore_sp.h.

References txFundraiserData.

Referenced by mastercore::eraseExpiredCrowdsale(), mastercore::eraseMaxedCrowdsale(), getcrowdsale_MP(), CMPTransaction::interpretPacket(), and mastercore::isCrowdsalePurchase().

+ Here is the caller graph for this function:

uint64_t CMPCrowd::getDeadline ( ) const
inline

Definition at line 428 of file mastercore_sp.h.

References deadline.

Referenced by mastercore::eraseExpiredCrowdsale().

+ Here is the caller graph for this function:

uint64_t CMPCrowd::getIssuerCreated ( ) const
inline

Definition at line 435 of file mastercore_sp.h.

References i_created.

Referenced by mastercore::eraseExpiredCrowdsale(), and CMPTransaction::interpretPacket().

+ Here is the caller graph for this function:

unsigned int CMPCrowd::getPropertyId ( ) const
inline

Definition at line 426 of file mastercore_sp.h.

References propertyId.

Referenced by mastercore::eraseExpiredCrowdsale(), mastercore::eraseMaxedCrowdsale(), getactivecrowdsales_MP(), getcrowdsale_MP(), CMPTransaction::interpretPacket(), mastercore::isCrowdsaleActive(), mastercore::isCrowdsalePurchase(), and CMPTransaction::logicMath_SimpleSend().

+ Here is the caller graph for this function:

uint64_t CMPCrowd::getUserCreated ( ) const
inline

Definition at line 434 of file mastercore_sp.h.

References u_created.

void CMPCrowd::incTokensIssuerCreated ( uint64_t  amount)
inline

Definition at line 432 of file mastercore_sp.h.

Referenced by CMPTransaction::logicMath_SimpleSend().

+ Here is the caller graph for this function:

void CMPCrowd::incTokensUserCreated ( uint64_t  amount)
inline

Definition at line 431 of file mastercore_sp.h.

Referenced by CMPTransaction::logicMath_SimpleSend().

+ Here is the caller graph for this function:

void CMPCrowd::insertDatabase ( std::string  txhash,
std::vector< uint64_t >  txdata 
)
inline

Definition at line 437 of file mastercore_sp.h.

Referenced by CMPTransaction::logicMath_SimpleSend().

+ Here is the caller graph for this function:

void CMPCrowd::print ( const string &  address,
FILE *  fp = stdout 
) const
inline

Definition at line 440 of file mastercore_sp.h.

References DateTimeStrFormat(), deadline, nValue, property_desired, and propertyId.

Referenced by mastercore::dumpCrowdsaleInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CMPCrowd::saveCrowdSale ( ofstream &  file,
SHA256_CTX *  shaCtx,
string const &  addr 
) const
inline

Definition at line 446 of file mastercore_sp.h.

References tinyformat::detail::format(), and i_created.

Referenced by write_mp_crowdsales().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint64_t CMPCrowd::deadline
private

Definition at line 406 of file mastercore_sp.h.

Referenced by getDeadline(), and print().

unsigned char CMPCrowd::early_bird
private

Definition at line 407 of file mastercore_sp.h.

uint64_t CMPCrowd::i_created
private

Definition at line 411 of file mastercore_sp.h.

Referenced by getIssuerCreated(), and saveCrowdSale().

uint64_t CMPCrowd::nValue
private

Definition at line 403 of file mastercore_sp.h.

Referenced by print().

unsigned char CMPCrowd::percentage
private

Definition at line 408 of file mastercore_sp.h.

unsigned int CMPCrowd::property_desired
private

Definition at line 405 of file mastercore_sp.h.

Referenced by getCurrDes(), and print().

unsigned int CMPCrowd::propertyId
private

Definition at line 401 of file mastercore_sp.h.

Referenced by getPropertyId(), and print().

std::map<std::string, std::vector<uint64_t> > CMPCrowd::txFundraiserData
private

Definition at line 415 of file mastercore_sp.h.

Referenced by getDatabase().

uint256 CMPCrowd::txid
private

Definition at line 413 of file mastercore_sp.h.

uint64_t CMPCrowd::u_created
private

Definition at line 410 of file mastercore_sp.h.

Referenced by getUserCreated().


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