Loading...
Searching...
No Matches
collectionNotice.h
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_COLLECTION_NOTICE_H
9#define PXR_BASE_TRACE_COLLECTION_NOTICE_H
10
11#include "pxr/pxr.h"
12
13#include "pxr/base/trace/api.h"
14#include "pxr/base/tf/notice.h"
15#include "pxr/base/trace/collection.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
26{
27public:
29 TraceCollectionAvailable(const std::shared_ptr<TraceCollection>& collection)
30 : _collection(collection)
31 {}
32
34 TRACE_API virtual ~TraceCollectionAvailable();
35
37 const std::shared_ptr<TraceCollection>& GetCollection() const {
38 return _collection;
39 }
40
41private:
42 std::shared_ptr<TraceCollection> _collection;
43};
44
45PXR_NAMESPACE_CLOSE_SCOPE
46
47#endif // PXR_BASE_TRACE_COLLECTION_NOTICE_H
The base class for objects used to notify interested parties (listeners) when events have occurred.
Definition: notice.h:78
A TfNotice that is sent when the TraceCollector creates a TraceCollection.
const std::shared_ptr< TraceCollection > & GetCollection() const
Returns the TraceCollection which was produced.
TraceCollectionAvailable(const std::shared_ptr< TraceCollection > &collection)
Constructor.
virtual TRACE_API ~TraceCollectionAvailable()
Destructor.