All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
pyModuleNotice.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_TF_PY_MODULE_NOTICE_H
8#define PXR_BASE_TF_PY_MODULE_NOTICE_H
9
10#include "pxr/pxr.h"
11
12#include "pxr/base/tf/api.h"
13#include "pxr/base/tf/notice.h"
14
15#include <string>
16
17PXR_NAMESPACE_OPEN_SCOPE
18
27public:
28 explicit TfPyModuleWasLoaded(std::string const &name) : _name(name) {}
29
30 TF_API
31 virtual ~TfPyModuleWasLoaded();
32
34 std::string const &GetName() { return _name; }
35
36private:
37 std::string _name;
38};
39
40PXR_NAMESPACE_CLOSE_SCOPE
41
42#endif // PXR_BASE_TF_PY_MODULE_NOTICE_H
The base class for objects used to notify interested parties (listeners) when events have occurred.
Definition: notice.h:77
A TfNotice that is sent when a script module is loaded.
std::string const & GetName()
Return the name of the module that was loaded.