DarkflameServer/dDatabase/Tables/CDMissionEmailTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.0 KiB
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
/*!
\file CDMissionEmailTable.hpp
\brief Contains data for the MissionEmail table
*/
//! MissionEmail Entry Struct
struct CDMissionEmail {
unsigned int ID;
unsigned int messageType;
unsigned int notificationGroup;
unsigned int missionID;
unsigned int attachmentLOT;
bool localize;
unsigned int locStatus;
std::string gate_version;
};
//! MissionEmail table
class CDMissionEmailTable : public CDTable {
private:
std::vector<CDMissionEmail> entries;
public:
//! Constructor
CDMissionEmailTable(void);
2022-07-28 13:39:57 +00:00
//! Destructor
~CDMissionEmailTable(void);
2022-07-28 13:39:57 +00:00
//! Returns the table's name
/*!
\return The table name
*/
std::string GetName(void) const override;
2022-07-28 13:39:57 +00:00
//! Queries the table with a custom "where" clause
/*!
\param predicate The predicate
*/
std::vector<CDMissionEmail> Query(std::function<bool(CDMissionEmail)> predicate);
2022-07-28 13:39:57 +00:00
//! Gets all the entries in the table
/*!
\return The entries
*/
std::vector<CDMissionEmail> GetEntries(void) const;
};