SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
room_domain_cache_manager.hpp
1#ifndef SKYWAY_ROOM_INTERFACE_ROOM_DOMAIN_CACHE_MANAGER_HPP
2#define SKYWAY_ROOM_INTERFACE_ROOM_DOMAIN_CACHE_MANAGER_HPP
3
4#include <memory>
5#include <string>
6
7namespace skyway {
8namespace room {
9namespace interface {
10
12template <typename T>
13class RoomDomainCacheManager {
14public:
15 virtual ~RoomDomainCacheManager() = default;
16
17 virtual void CacheRoomDomainInstance(const std::string& id, std::shared_ptr<T> instance) = 0;
18 virtual std::shared_ptr<T> FindCachedRoomDomainInstance(const std::string& id) = 0;
19 virtual void RemoveCachedRoomDomainInstance(const std::string& id) = 0;
20};
22
23} // namespace interface
24} // namespace room
25} // namespace skyway
26
27#endif /* SKYWAY_ROOM_INTERFACE_ROOM_DOMAIN_CACHE_MANAGER_HPP */