mirror of
git://git.acid.vegas/anope.git
synced 2024-11-27 10:06:56 +00:00
35 lines
617 B
C++
35 lines
617 B
C++
/*
|
|
*
|
|
* (C) 2003-2022 Anope Team
|
|
* Contact us at team@anope.org
|
|
*
|
|
* Please read COPYING and README for further details.
|
|
*/
|
|
|
|
struct EntryMsg
|
|
{
|
|
Anope::string chan;
|
|
Anope::string creator;
|
|
Anope::string message;
|
|
time_t when;
|
|
|
|
virtual ~EntryMsg() { }
|
|
protected:
|
|
EntryMsg() { }
|
|
};
|
|
|
|
struct EntryMessageList : Serialize::Checker<std::vector<EntryMsg *> >
|
|
{
|
|
protected:
|
|
EntryMessageList() : Serialize::Checker<std::vector<EntryMsg *> >("EntryMsg") { }
|
|
|
|
public:
|
|
virtual ~EntryMessageList()
|
|
{
|
|
for (unsigned i = (*this)->size(); i > 0; --i)
|
|
delete (*this)->at(i - 1);
|
|
}
|
|
|
|
virtual EntryMsg* Create() = 0;
|
|
};
|