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