85#define ITEM_NORMAL 0x00
86#define ITEM_GENERATED 0x01
88#define ITEM_NOTE_ON_NEXT_LINE 0x04
89#define ITEM_INFERRED 0x08
131 return this == &xact;
134 return ! (*
this == xact);
139 return ref->to_string();
141 std::ostringstream buf;
147 return pos ?
pos->sequence : 0
L;
162 virtual string_map::iterator
165 const bool overwrite_existing =
true);
169 bool overwrite_existing =
true);
172 bool overwrite_existing =
true);
177 return static_cast<bool>(
_date);
212 const string&
prefix =
"");
#define TRACE_CTOR(cls, args)
string item_context(const item_t &item, const string &desc)
boost::gregorian::date date_t
void print_item(std::ostream &out, const item_t &item, const string &prefix="")
value_t get_comment(item_t &item)
boost::filesystem::path path
void put_metadata(property_tree::ptree &pt, const item_t::string_map &metadata)
intrusive_ptr< op_t > ptr_op_t
void set_flags(const flags_t arg)
position_t & operator=(const position_t &pos)
position_t(const position_t &pos)
std::istream::pos_type beg_pos
std::istream::pos_type end_pos
virtual bool operator==(const item_t &xact)
virtual string_map::iterator set_tag(const string &tag, const optional< value_t > &value=none, const bool overwrite_existing=true)
optional< string_map > metadata
virtual void copy_details(const item_t &item)
virtual expr_t::ptr_op_t lookup(const symbol_t::kind_t kind, const string &name)
virtual void append_note(const char *p, scope_t &scope, bool overwrite_existing=true)
void set_state(state_t new_state)
virtual date_t primary_date() const
item_t(const item_t &item)
virtual void parse_tags(const char *p, scope_t &scope, bool overwrite_existing=true)
virtual optional< date_t > aux_date() const
optional< date_t > _date_aux
virtual optional< value_t > get_tag(const mask_t &tag_mask, const optional< mask_t > &value_mask=none, bool inherit=true) const
virtual state_t state() const
item_t(flags_t _flags=0x00, const optional< string > &_note=none)
std::pair< optional< value_t >, bool > tag_data_t
virtual optional< value_t > get_tag(const string &tag, bool inherit=true) const
virtual void define(const symbol_t::kind_t, const string &, expr_t::ptr_op_t)
virtual bool has_date() const
std::map< string, tag_data_t, std::function< bool(string, string)> > string_map
virtual bool has_tag(const string &tag, bool inherit=true) const
virtual bool operator!=(const item_t &xact)
optional< position_t > pos
virtual bool has_tag(const mask_t &tag_mask, const optional< mask_t > &value_mask=none, bool inherit=true) const
virtual date_t date() const
Dynamic type representing various numeric types.