diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-11 16:03:50 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-11 17:02:25 -0400 |
commit | dea2aed0b509734ec4e1cd163ac2a4f013000da2 (patch) | |
tree | 7908da76c67ae5172882306a319bf26df81b73b4 /src/item.h | |
parent | d580079df892c30d023b3211d6c4611c17b11f8f (diff) | |
download | fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.gz fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.tar.bz2 fork-ledger-dea2aed0b509734ec4e1cd163ac2a4f013000da2.zip |
Untabified all source files
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -50,10 +50,10 @@ struct position_t { path pathname; istream_pos_type beg_pos; - std::size_t beg_line; + std::size_t beg_line; istream_pos_type end_pos; - std::size_t end_line; - std::size_t sequence; + std::size_t end_line; + std::size_t sequence; position_t() : beg_pos(0), beg_line(0), end_pos(0), end_line(0), sequence(0) { @@ -100,16 +100,16 @@ private: class item_t : public supports_flags<uint_least16_t>, public scope_t { public: -#define ITEM_NORMAL 0x00 // no flags at all, a basic posting -#define ITEM_GENERATED 0x01 // posting was not found in a journal -#define ITEM_TEMP 0x02 // posting is a managed temporary +#define ITEM_NORMAL 0x00 // no flags at all, a basic posting +#define ITEM_GENERATED 0x01 // posting was not found in a journal +#define ITEM_TEMP 0x02 // posting is a managed temporary enum state_t { UNCLEARED = 0, CLEARED, PENDING }; typedef std::pair<optional<string>, bool> tag_data_t; - typedef std::map<string, tag_data_t> string_map; + typedef std::map<string, tag_data_t> string_map; - state_t _state; + state_t _state; optional<date_t> _date; optional<date_t> _date_eff; optional<string> note; @@ -151,21 +151,21 @@ public: virtual bool has_tag(const string& tag) const; virtual bool has_tag(const mask_t& tag_mask, - const optional<mask_t>& value_mask = none) const; + const optional<mask_t>& value_mask = none) const; virtual optional<string> get_tag(const string& tag) const; virtual optional<string> get_tag(const mask_t& tag_mask, - const optional<mask_t>& value_mask = none) const; + const optional<mask_t>& value_mask = none) const; virtual string_map::iterator - set_tag(const string& tag, - const optional<string>& value = none, - const bool overwrite_existing = true); + set_tag(const string& tag, + const optional<string>& value = none, + const bool overwrite_existing = true); virtual void parse_tags(const char * p, bool overwrite_existing = true, - optional<date_t::year_type> current_year = none); + optional<date_t::year_type> current_year = none); virtual void append_note(const char * p, bool overwrite_existing = true, - optional<date_t::year_type> current_year = none); + optional<date_t::year_type> current_year = none); static bool use_effective_date; @@ -173,7 +173,7 @@ public: assert(_date); if (use_effective_date) if (optional<date_t> effective = effective_date()) - return *effective; + return *effective; return *_date; } virtual date_t actual_date() const { @@ -192,7 +192,7 @@ public: } virtual expr_t::ptr_op_t lookup(const symbol_t::kind_t kind, - const string& name); + const string& name); bool valid() const; @@ -217,9 +217,9 @@ private: }; value_t get_comment(item_t& item); -void print_item(std::ostream& out, const item_t& item, - const string& prefix = ""); -string item_context(const item_t& item, const string& desc); +void print_item(std::ostream& out, const item_t& item, + const string& prefix = ""); +string item_context(const item_t& item, const string& desc); } // namespace ledger |