summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-01 04:42:13 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-01 04:42:13 +0000
commitf93341edfccba98c7c709dfd172467b37017cc3f (patch)
tree38c18778b9a475b4b9b2c7feed3725ed3a67acf1 /ledger.h
parent16cb024a823112f4f2360f6123492bcefd8f74f8 (diff)
downloadfork-ledger-f93341edfccba98c7c709dfd172467b37017cc3f.tar.gz
fork-ledger-f93341edfccba98c7c709dfd172467b37017cc3f.tar.bz2
fork-ledger-f93341edfccba98c7c709dfd172467b37017cc3f.zip
*** empty log message ***
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ledger.h b/ledger.h
index 0df8b870..d3f6de12 100644
--- a/ledger.h
+++ b/ledger.h
@@ -1,5 +1,5 @@
#ifndef _LEDGER_H
-#define _LEDGER_H "$Revision: 1.8 $"
+#define _LEDGER_H "$Revision: 1.9 $"
//////////////////////////////////////////////////////////////////////
//
@@ -117,6 +117,7 @@ class amount
virtual const std::string& comm_symbol() const = 0;
virtual amount * copy() const = 0;
virtual amount * value(amount * pr = NULL) const = 0;
+ virtual amount * street() const = 0;
// Test if non-zero
@@ -235,7 +236,7 @@ struct totals
void print(std::ostream& out, int width) const;
// Returns an allocated entity
- amount * value(const std::string& comm);
+ amount * value(const std::string& comm) const;
amount * sum(const std::string& comm) {
return amounts[comm];
}