From dea2aed0b509734ec4e1cd163ac2a4f013000da2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 Jun 2010 16:03:50 -0400 Subject: Untabified all source files --- src/pool.h | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/pool.h') diff --git a/src/pool.h b/src/pool.h index ac66d7a6..4b935f69 100644 --- a/src/pool.h +++ b/src/pool.h @@ -67,19 +67,19 @@ public: typedef std::map commodities_map; commodities_map commodities; - commodity_t * null_commodity; - commodity_t * default_commodity; + commodity_t * null_commodity; + commodity_t * default_commodity; - bool keep_base; // --base + bool keep_base; // --base optional price_db; // --price-db= - long quote_leeway; // --leeway= - bool get_quotes; // --download + long quote_leeway; // --leeway= + bool get_quotes; // --download static shared_ptr current_pool; function - (commodity_t& commodity, const optional& in_terms_of)> + (commodity_t& commodity, const optional& in_terms_of)> get_commodity_quote; explicit commodity_pool_t(); @@ -91,7 +91,7 @@ public: } string make_qualified_name(const commodity_t& comm, - const annotation_t& details); + const annotation_t& details); commodity_t * create(const string& symbol); commodity_t * find(const string& name); @@ -100,26 +100,26 @@ public: commodity_t * create(const string& symbol, const annotation_t& details); commodity_t * find(const string& symbol, const annotation_t& details); commodity_t * find_or_create(const string& symbol, - const annotation_t& details); + const annotation_t& details); - commodity_t * create(commodity_t& comm, - const annotation_t& details, - const string& mapping_key); + commodity_t * create(commodity_t& comm, + const annotation_t& details, + const string& mapping_key); - commodity_t * find_or_create(commodity_t& comm, - const annotation_t& details); + commodity_t * find_or_create(commodity_t& comm, + const annotation_t& details); // Exchange one commodity for another, while recording the factored price. - void exchange(commodity_t& commodity, - const amount_t& per_unit_cost, - const datetime_t& moment); + void exchange(commodity_t& commodity, + const amount_t& per_unit_cost, + const datetime_t& moment); - cost_breakdown_t exchange(const amount_t& amount, - const amount_t& cost, - const bool is_per_unit = false, - const optional& moment = none, - const optional& tag = none); + cost_breakdown_t exchange(const amount_t& amount, + const amount_t& cost, + const bool is_per_unit = false, + const optional& moment = none, + const optional& tag = none); // Parse commodity prices from a textual representation @@ -128,14 +128,14 @@ public: commodity_t * parse_price_expression(const std::string& str, - const bool add_prices = true, - const optional& moment = none); + const bool add_prices = true, + const optional& moment = none); // Output the commodity price map for a given date as a DOT file - void print_pricemap(std::ostream& out, - const keep_details_t& keep, - const optional& moment = none); + void print_pricemap(std::ostream& out, + const keep_details_t& keep, + const optional& moment = none); #if defined(HAVE_BOOST_SERIALIZATION) private: -- cgit v1.2.3