25 #include <boost/date_time/posix_time/posix_time.hpp> 167 virtual boost::posix_time::ptime
timestamp()
const = 0;
183 virtual size_t version()
const = 0;
virtual boost::posix_time::ptime timestamp() const =0
Retrieve unix timestamp.
This is the header file for a generated source file, GitSHA1.cpp.
unsigned long AuditEntryId
virtual Auth::UserId author_id() const =0
Retrieve the user id of the author of this entry.
virtual void set_parent(IAuditEntryPtr parent)=0
Set parent as the parent audit entry for this entry.
std::shared_ptr< IAuditEntry > IAuditEntryPtr
virtual bool finalized() const =0
Is this entry finalized.
Base interface to Audit object.
virtual size_t version() const =0
Returns the ODB version of the object.
virtual size_t children_count() const =0
Returns the number of children that this entry has.
virtual const EventMask & event_mask() const =0
Retrieve the current event mask.
virtual void remove_parent()=0
Remove the parent-child relationship between this entry and its parent.
std::shared_ptr< User > UserPtr
FlagSet< EventType > EventMask
virtual std::string generate_description() const
Generate a description for this event.
virtual void author(Auth::UserPtr user)=0
Set the author of the entry.
virtual IAuditEntryPtr parent() const =0
Retrieve the parent of this entry.
virtual void reload()=0
Reload the object from the database.
virtual AuditEntryId id() const =0
Retrieve the identifier of the entry.
virtual void finalize()=0
Mark the entry as finalized, and update it wrt the database.