AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Guild::LogEntry Class Referenceabstract
Inheritance diagram for Guild::LogEntry:
Guild::BankEventLogEntry Guild::EventLogEntry

Public Member Functions

 LogEntry (uint32 guildId, ObjectGuid::LowType guid)
 
 LogEntry (uint32 guildId, ObjectGuid::LowType guid, time_t timestamp)
 
virtual ~LogEntry ()
 
ObjectGuid::LowType GetGUID () const
 
uint64 GetTimestamp () const
 
virtual void SaveToDB (CharacterDatabaseTransaction trans) const =0
 

Protected Attributes

uint32 m_guildId
 
ObjectGuid::LowType m_guid
 
uint64 m_timestamp
 

Detailed Description

Constructor & Destructor Documentation

◆ LogEntry() [1/2]

Guild::LogEntry::LogEntry ( uint32  guildId,
ObjectGuid::LowType  guid 
)
175 :
176 m_guildId(guildId), m_guid(guid), m_timestamp(GameTime::GetGameTime().count()) { }
Seconds GetGameTime()
Definition: GameTime.cpp:38
ObjectGuid::LowType m_guid
Definition: Guild.h:419
uint32 m_guildId
Definition: Guild.h:418
uint64 m_timestamp
Definition: Guild.h:420

◆ LogEntry() [2/2]

Guild::LogEntry::LogEntry ( uint32  guildId,
ObjectGuid::LowType  guid,
time_t  timestamp 
)
inline
409: m_guildId(guildId), m_guid(guid), m_timestamp(timestamp) { }

◆ ~LogEntry()

virtual Guild::LogEntry::~LogEntry ( )
inlinevirtual
410{ }

Member Function Documentation

◆ GetGUID()

ObjectGuid::LowType Guild::LogEntry::GetGUID ( ) const
inline
412{ return m_guid; }

References m_guid.

◆ GetTimestamp()

uint64 Guild::LogEntry::GetTimestamp ( ) const
inline
413{ return m_timestamp; }

References m_timestamp.

◆ SaveToDB()

virtual void Guild::LogEntry::SaveToDB ( CharacterDatabaseTransaction  trans) const
pure virtual

Member Data Documentation

◆ m_guid

ObjectGuid::LowType Guild::LogEntry::m_guid
protected

Referenced by GetGUID().

◆ m_guildId

uint32 Guild::LogEntry::m_guildId
protected

◆ m_timestamp

uint64 Guild::LogEntry::m_timestamp
protected

Referenced by GetTimestamp().