mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
21 lines
553 B
C++
21 lines
553 B
C++
#include "Ledger.h"
|
|
#include "RippleState.h"
|
|
|
|
/*
|
|
This pulls all the ripple lines of a given account out of the ledger.
|
|
It provides a vector so you to easily iterate through them
|
|
*/
|
|
|
|
class RippleLines
|
|
{
|
|
std::vector<RippleState::pointer> mLines;
|
|
void fillLines(const uint160& accountID, Ledger::pointer ledger);
|
|
public:
|
|
|
|
RippleLines(const uint160& accountID, Ledger::pointer ledger);
|
|
RippleLines(const uint160& accountID ); // looks in the current ledger
|
|
|
|
std::vector<RippleState::pointer>& getLines(){ return(mLines); }
|
|
void printRippleLines();
|
|
};
|