![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <account.h>
Public Member Functions | |
void | addChild (const std::string &name, const AccountSummary &child, bool addInSubaccounts) |
void | dump (std::ostream &stream, int indent=0, const std::string &name="toplevel") const |
Json::Value | toJson (bool simplified=false) const |
Static Public Member Functions | |
static AccountSummary | fromJson (const Json::Value &val) |
Public Attributes | |
CurrencyPool | budget |
Total amount we're allowed to spend. | |
CurrencyPool | inFlight |
Sum of sub-account inFlights (pending commitments) | |
CurrencyPool | spent |
Sum of sub-account spend. | |
CurrencyPool | available |
Total amount we're allowed to spend. | |
Account | account |
std::map< std::string, AccountSummary > | subAccounts |
This is a summary of an account and all of its sub-accounts.