summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-09 20:11:38 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-09 20:11:38 -0600
commit022059f2a856807cad7388ea230c2ad5bcbce75d (patch)
tree5ae1e00a843e999007d8de62cfa5f45f366d5bd0 /src/session.h
parent2df8edc71c1e805fd54c2208b2b66bdde0460c59 (diff)
downloadfork-ledger-022059f2a856807cad7388ea230c2ad5bcbce75d.tar.gz
fork-ledger-022059f2a856807cad7388ea230c2ad5bcbce75d.tar.bz2
fork-ledger-022059f2a856807cad7388ea230c2ad5bcbce75d.zip
Added --value-expr option
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h
index cb981346..f2b1dbef 100644
--- a/src/session.h
+++ b/src/session.h
@@ -61,6 +61,7 @@ public:
unique_ptr<journal_t> journal;
parse_context_stack_t parsing_context;
+ optional<expr_t> value_expr;
explicit session_t();
virtual ~session_t() {
@@ -107,6 +108,7 @@ public:
HANDLER(price_db_).report(out);
HANDLER(price_exp_).report(out);
HANDLER(strict).report(out);
+ HANDLER(value_expr).report(out);
}
option_t<session_t> * lookup_option(const char * p);
@@ -154,6 +156,7 @@ public:
OPTION(session_t, permissive);
OPTION(session_t, price_db_);
OPTION(session_t, strict);
+ OPTION(session_t, value_expr);
};
/**