Loading...
Searching...
No Matches
notice.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_PLUG_NOTICE_H
8#define PXR_BASE_PLUG_NOTICE_H
9
10#include "pxr/pxr.h"
11#include "pxr/base/plug/api.h"
13#include "pxr/base/tf/notice.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
18
22{
23public:
25 class Base : public TfNotice
26 {
27 public:
28 PLUG_API virtual ~Base();
29 };
30
33 class DidRegisterPlugins : public Base
34 {
35 public:
36 explicit DidRegisterPlugins(const PlugPluginPtrVector& newPlugins);
37 PLUG_API virtual ~DidRegisterPlugins();
38
39 const PlugPluginPtrVector& GetNewPlugins() const
40 { return _plugins; }
41
42 private:
43 PlugPluginPtrVector _plugins;
44 };
45
46private:
47 PlugNotice();
48};
49
50PXR_NAMESPACE_CLOSE_SCOPE
51
52#endif // PXR_BASE_PLUG_NOTICE_H
Base class for all Plug notices.
Definition: notice.h:26
Notice sent after new plugins have been registered with the Plug registry.
Definition: notice.h:34
Notifications sent by the Plug library.
Definition: notice.h:22
Defines an interface to registered plugins.
Definition: plugin.h:40
The base class for objects used to notify interested parties (listeners) when events have occurred.
Definition: notice.h:80
Standard pointer typedefs.
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.
Definition: declarePtrs.h:45