2022-10-08 22:47:18 +08:00
|
|
|
/*
|
|
|
|
* This file is part of Lucas' Bot.
|
|
|
|
*
|
|
|
|
* Lucas' Bot is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published
|
|
|
|
* by the Free Software Foundation, either version 3 of the License,
|
|
|
|
* or (at your option) any later version.
|
|
|
|
|
|
|
|
Lucas' Bot is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
|
|
|
|
for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License along
|
|
|
|
with Lucas' Bot. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PERSON_DEMO_PERSONCOLLECTION_H
|
|
|
|
#define PERSON_DEMO_PERSONCOLLECTION_H
|
|
|
|
|
2022-10-20 13:15:42 +08:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#ifdef EXPORT_PERSON
|
|
|
|
#define PERSON_LIB __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define PERSON_LIB __declspec(dllimport)
|
|
|
|
#endif
|
|
|
|
#endif
|
2022-10-08 22:47:18 +08:00
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
#include "Person.h"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace PersonCollection {
|
2022-10-20 13:15:42 +08:00
|
|
|
PERSON_LIB void loadPersonMap();
|
|
|
|
PERSON_LIB void savePersonMap();
|
|
|
|
PERSON_LIB void addPerson(MiraiCP::QQID id);
|
|
|
|
PERSON_LIB Person& getPerson(MiraiCP::QQID id);
|
|
|
|
PERSON_LIB void removePerson(MiraiCP::QQID id);
|
|
|
|
PERSON_LIB void registerLocalFile(const std::string&);
|
2022-10-08 22:47:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //PERSON_DEMO_PERSONCOLLECTION_H
|