teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::ledger::Account Class Reference

#include <objects.h>

Public Member Functions

 Account (const std::string &n, const std::string &d="", const Aliases &a=Aliases())
 ctor More...
 
const std::string & name () const
 
const std::string & desc () const
 
int64_t rawBalance () const
 
double balance () const
 
bool isAnAlias (const std::string &a) const
 
void insertAlias (const std::string &a)
 
Accountoperator+= (double val)
 
Accountoperator+= (int64_t val)
 

Detailed Description

Represents an account in the accounting world

Constructor & Destructor Documentation

◆ Account()

teditor::ledger::Account::Account ( const std::string &  n,
const std::string &  d = "",
const Aliases a = Aliases() 
)
inline

ctor

Parameters
nname of the account to be created
dshort description of the account
alist of aliases associated with this account

Member Function Documentation

◆ balance()

double teditor::ledger::Account::balance ( ) const
inline

◆ desc()

const std::string& teditor::ledger::Account::desc ( ) const
inline

◆ insertAlias()

void teditor::ledger::Account::insertAlias ( const std::string &  a)
inline

◆ isAnAlias()

bool teditor::ledger::Account::isAnAlias ( const std::string &  a) const
inline

◆ name()

const std::string& teditor::ledger::Account::name ( ) const
inline

◆ operator+=() [1/2]

Account& teditor::ledger::Account::operator+= ( double  val)
inline

◆ operator+=() [2/2]

Account& teditor::ledger::Account::operator+= ( int64_t  val)
inline

◆ rawBalance()

int64_t teditor::ledger::Account::rawBalance ( ) const
inline

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