teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Functions
teditor::ledger::ops Namespace Reference

Functions

BuffergetLedgerShowBuff (Editor &ed)
 
void printHeader (Buffer &buf, const TimePoint &min, const TimePoint &max)
 
void showTopAccounts (Buffer &buf, const std::string &file)
 
 DEF_CMD (LedgerTop, "ledger::top", "ledger_ops", DEF_OP() { const auto &file=ed.getBuff().getFileName();auto &buf=getLedgerShowBuff(ed);showTopAccounts(buf, file);ed.switchToBuff("*ledger");})
 
void showAllAccounts (Buffer &buf, const std::string &file)
 
 DEF_CMD (Ledger, "ledger::all", "ledger_ops", DEF_OP() { const auto &file=ed.getBuff().getFileName();auto &buf=getLedgerShowBuff(ed);showAllAccounts(buf, file);ed.switchToBuff("*ledger");})
 

Function Documentation

◆ DEF_CMD() [1/2]

teditor::ledger::ops::DEF_CMD ( Ledger  ,
"ledger::all"  ,
"ledger_ops"  ,
DEF_OP() { const auto &file=ed.getBuff().getFileName();auto &buf=getLedgerShowBuff(ed);showAllAccounts(buf, file);ed.switchToBuff("*ledger");}   
)

◆ DEF_CMD() [2/2]

teditor::ledger::ops::DEF_CMD ( LedgerTop  ,
"ledger::top"  ,
"ledger_ops"  ,
DEF_OP() { const auto &file=ed.getBuff().getFileName();auto &buf=getLedgerShowBuff(ed);showTopAccounts(buf, file);ed.switchToBuff("*ledger");}   
)

◆ getLedgerShowBuff()

Buffer& teditor::ledger::ops::getLedgerShowBuff ( Editor ed)

◆ printHeader()

void teditor::ledger::ops::printHeader ( Buffer buf,
const TimePoint min,
const TimePoint max 
)

◆ showAllAccounts()

void teditor::ledger::ops::showAllAccounts ( Buffer buf,
const std::string &  file 
)

◆ showTopAccounts()

void teditor::ledger::ops::showTopAccounts ( Buffer buf,
const std::string &  file 
)