#pragma once #include "DBFile.h" struct NewBirdEventStruct { unsigned int eventId; std::string title; std::vector info; }; class CNewBirdEventDB : public CDBFile { public: enum { entry = 0, eventId = 1, title = 2, info = 3, }; virtual bool Load(const char* pcName); bool GetNewBirdEventStr(unsigned int eventid, std::vector& info); bool GetNewBirdEventTitle(unsigned int eventid, std::string& title); private: void AddNewEntry(unsigned int eventId, std::string& title, std::string& info); std::vector m_NewBirdEventStr; }; extern CNewBirdEventDB* g_pkNewBirdEventDB;