Loading...
Searching...
No Matches
cleanupEnabler.h
Go to the documentation of this file.
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_USD_SDF_CLEANUP_ENABLER_H
8#define PXR_USD_SDF_CLEANUP_ENABLER_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/sdf/api.h"
14#include "pxr/base/tf/stacked.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
52TF_DEFINE_STACKED(SdfCleanupEnabler, false, SDF_API)
53{
54public:
55
56 SDF_API SdfCleanupEnabler();
57
58 SDF_API ~SdfCleanupEnabler();
59
61 SDF_API static bool IsCleanupEnabled();
62};
63
64PXR_NAMESPACE_CLOSE_SCOPE
65
66#endif // #ifndef PXR_USD_SDF_CLEANUP_ENABLER_H
An RAII class which, when an instance is alive, enables scheduling of automatic cleanup of SdfLayers.
static SDF_API bool IsCleanupEnabled()
Returns whether cleanup is currently being scheduled.