HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reporterDataSourceBase.h
Go to the documentation of this file.
1 //
2 // Copyright 2018 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 
8 #ifndef PXR_BASE_TRACE_REPORTER_DATA_SOURCE_BASE_H
9 #define PXR_BASE_TRACE_REPORTER_DATA_SOURCE_BASE_H
10 
11 #include "pxr/pxr.h"
12 
13 #include "pxr/base/trace/api.h"
15 
16 #include <vector>
17 
19 
20 ////////////////////////////////////////////////////////////////////////////////
21 /// \class TraceReporterDataSourceBase
22 ///
23 /// This class is a base class for TraceReporterBase data sources.
24 /// TraceReporterBase uses an instance of a TraceReporterDataSourceBase derived
25 /// class to access TraceCollections.
26 ///
28 public:
29  using CollectionPtr = std::shared_ptr<TraceCollection>;
30 
31  /// Destructor
33 
34  /// Removes all references to TraceCollections.
35  virtual void Clear() = 0;
36 
37  /// Returns the next TraceCollections which need to be processed.
38  virtual std::vector<CollectionPtr> ConsumeData() = 0;
39 };
40 
42 
43 #endif // PXR_BASE_TRACE_REPORTER_DATA_SOURCE_BASE_H
virtual TRACE_API ~TraceReporterDataSourceBase()
Destructor.
virtual std::vector< CollectionPtr > ConsumeData()=0
Returns the next TraceCollections which need to be processed.
virtual void Clear()=0
Removes all references to TraceCollections.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
std::shared_ptr< TraceCollection > CollectionPtr
#define TRACE_API
Definition: api.h:23