1 //===-- ActivityStore.h -----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_DARWINLOG_ACTIVITYSTORE_H
10 #define LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_DARWINLOG_ACTIVITYSTORE_H
11 
12 #include <string>
13 
14 #include "ActivityStreamSPI.h"
15 
16 class ActivityStore {
17 public:
18   virtual ~ActivityStore();
19 
20   virtual const char *GetActivityForID(os_activity_id_t activity_id) const = 0;
21 
22   virtual std::string
23   GetActivityChainForID(os_activity_id_t activity_id) const = 0;
24 
25 protected:
26   ActivityStore();
27 };
28 
29 #endif // LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_DARWINLOG_ACTIVITYSTORE_H
30