Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Token Class Reference

#include <token.h>

Collaboration diagram for Token:
[legend]

Public Member Functions

 Token ()
 
 ~Token ()
 
void setAddress (const std::string &address)
 
void setDataHex (const std::string &datahex)
 
void setAmount (const std::string &amount)
 
void setGasLimit (const std::string &gaslimit)
 
void setGasPrice (const std::string &gasPrice)
 
void setSender (const std::string &sender)
 
void clear ()
 
std::string getTxId ()
 
bool name (std::string &result, bool sendTo=false)
 
bool approve (const std::string &_spender, const std::string &_value, bool &success, bool sendTo=false)
 
bool totalSupply (std::string &result, bool sendTo=false)
 
bool transferFrom (const std::string &_from, const std::string &_to, const std::string &_value, bool &success, bool sendTo=false)
 
bool decimals (std::string &result, bool sendTo=false)
 
bool burn (const std::string &_value, bool &success, bool sendTo=false)
 
bool balanceOf (std::string &result, bool sendTo=false)
 
bool balanceOf (const std::string &spender, std::string &result, bool sendTo=false)
 
bool burnFrom (const std::string &_from, const std::string &_value, bool &success, bool sendTo=false)
 
bool symbol (std::string &result, bool sendTo=false)
 
bool transfer (const std::string &_to, const std::string &_value, bool sendTo=false)
 
bool approveAndCall (const std::string &_spender, const std::string &_value, const std::string &_extraData, bool &success, bool sendTo=false)
 
bool allowance (const std::string &_from, const std::string &_to, std::string &result, bool sendTo=false)
 
bool transferEvents (std::vector< TokenEvent > &tokenEvents, int64_t fromBlock=0, int64_t toBlock=-1)
 
bool burnEvents (std::vector< TokenEvent > &tokenEvents, int64_t fromBlock=0, int64_t toBlock=-1)
 

Private Member Functions

bool exec (const std::vector< std::string > &input, int func, std::vector< std::string > &output, bool sendTo)
 
bool execEvents (int64_t fromBlock, int64_t toBlock, int func, std::vector< TokenEvent > &tokenEvents)
 
 Token (Token const &)
 
Tokenoperator= (Token const &)
 

Private Attributes

TokenDatad
 

Detailed Description

Definition at line 32 of file token.h.

Constructor & Destructor Documentation

Token::Token ( )

Definition at line 101 of file token.cpp.

Here is the call graph for this function:

Token::~Token ( )

Definition at line 198 of file token.cpp.

Token::Token ( Token const &  )
private

Member Function Documentation

bool Token::allowance ( const std::string &  _from,
const std::string &  _to,
std::string &  result,
bool  sendTo = false 
)

Definition at line 489 of file token.cpp.

Here is the call graph for this function:

bool Token::approve ( const std::string &  _spender,
const std::string &  _value,
bool &  success,
bool  sendTo = false 
)

Definition at line 282 of file token.cpp.

Here is the call graph for this function:

bool Token::approveAndCall ( const std::string &  _spender,
const std::string &  _value,
const std::string &  _extraData,
bool &  success,
bool  sendTo = false 
)

Definition at line 467 of file token.cpp.

Here is the call graph for this function:

bool Token::balanceOf ( std::string &  result,
bool  sendTo = false 
)

Definition at line 381 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::balanceOf ( const std::string &  spender,
std::string &  result,
bool  sendTo = false 
)

Definition at line 392 of file token.cpp.

Here is the call graph for this function:

bool Token::burn ( const std::string &  _value,
bool &  success,
bool  sendTo = false 
)

Definition at line 361 of file token.cpp.

Here is the call graph for this function:

bool Token::burnEvents ( std::vector< TokenEvent > &  tokenEvents,
int64_t  fromBlock = 0,
int64_t  toBlock = -1 
)

Definition at line 515 of file token.cpp.

Here is the call graph for this function:

bool Token::burnFrom ( const std::string &  _from,
const std::string &  _value,
bool &  success,
bool  sendTo = false 
)

Definition at line 412 of file token.cpp.

Here is the call graph for this function:

void Token::clear ( )

Definition at line 247 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::decimals ( std::string &  result,
bool  sendTo = false 
)

Definition at line 343 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::exec ( const std::vector< std::string > &  input,
int  func,
std::vector< std::string > &  output,
bool  sendTo 
)
private

Definition at line 520 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::execEvents ( int64_t  fromBlock,
int64_t  toBlock,
int  func,
std::vector< TokenEvent > &  tokenEvents 
)
private

Definition at line 573 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Token::getTxId ( )

Definition at line 259 of file token.cpp.

Here is the caller graph for this function:

bool Token::name ( std::string &  result,
bool  sendTo = false 
)

Definition at line 264 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Token& Token::operator= ( Token const &  )
private
void Token::setAddress ( const std::string &  address)

Definition at line 217 of file token.cpp.

Here is the caller graph for this function:

void Token::setAmount ( const std::string &  amount)

Definition at line 227 of file token.cpp.

Here is the caller graph for this function:

void Token::setDataHex ( const std::string &  datahex)

Definition at line 222 of file token.cpp.

Here is the caller graph for this function:

void Token::setGasLimit ( const std::string &  gaslimit)

Definition at line 232 of file token.cpp.

Here is the caller graph for this function:

void Token::setGasPrice ( const std::string &  gasPrice)

Definition at line 237 of file token.cpp.

Here is the caller graph for this function:

void Token::setSender ( const std::string &  sender)

Definition at line 242 of file token.cpp.

Here is the caller graph for this function:

bool Token::symbol ( std::string &  result,
bool  sendTo = false 
)

Definition at line 433 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::totalSupply ( std::string &  result,
bool  sendTo = false 
)

Definition at line 303 of file token.cpp.

Here is the call graph for this function:

bool Token::transfer ( const std::string &  _to,
const std::string &  _value,
bool  sendTo = false 
)

Definition at line 451 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::transferEvents ( std::vector< TokenEvent > &  tokenEvents,
int64_t  fromBlock = 0,
int64_t  toBlock = -1 
)

Definition at line 510 of file token.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Token::transferFrom ( const std::string &  _from,
const std::string &  _to,
const std::string &  _value,
bool &  success,
bool  sendTo = false 
)

Definition at line 321 of file token.cpp.

Here is the call graph for this function:

Member Data Documentation

TokenData* Token::d
private

Definition at line 77 of file token.h.


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