summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-17 03:40:21 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-17 03:40:21 -0400
commit752eb99445d078d2549711e714972a617f7d9d31 (patch)
tree5a3b44a43af6aa1814e73205dd19999d82b9a912 /src/amount.h
parent891d7b87c8bd9c2387a945a22b41f9b8f94f3327 (diff)
downloadfork-ledger-752eb99445d078d2549711e714972a617f7d9d31.tar.gz
fork-ledger-752eb99445d078d2549711e714972a617f7d9d31.tar.bz2
fork-ledger-752eb99445d078d2549711e714972a617f7d9d31.zip
Removed all pending todos from the amount_t code.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/amount.h b/src/amount.h
index a5a05835..29634fa6 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -59,6 +59,7 @@ namespace ledger {
class commodity_t;
class annotation_t;
class commodity_pool_t;
+class session_t;
DECLARE_EXCEPTION(amount_error, std::runtime_error);
@@ -86,9 +87,6 @@ class amount_t
>
#endif
{
- // jww (2007-05-03): Make this private, and then make
- // ledger::initialize into a member function of session_t.
-public:
/**
* The initialize and shutdown methods ready the amount subsystem
* for use. Normally they are called by `ledger::initialize' and
@@ -97,6 +95,8 @@ public:
static void initialize();
static void shutdown();
+ friend class session_t;
+
public:
typedef uint_least16_t precision_t;
@@ -671,8 +671,10 @@ public:
* knows about.
*/
void read(std::istream& in);
- void read(const char *& data);
- void write(std::ostream& out, bool optimize = false) const;
+ void read(const char *& data,
+ char ** pool = NULL,
+ char ** pool_next = NULL);
+ void write(std::ostream& out, unsigned int index = 0) const;
/**
* Debugging methods. There are two methods defined to help with