7#ifndef PXR_USD_SDF_NOTICE_H
8#define PXR_USD_SDF_NOTICE_H
11#include "pxr/usd/sdf/api.h"
14#include "pxr/usd/sdf/path.h"
17PXR_NAMESPACE_OPEN_SCOPE
46 , _serialNumber(serialNumber)
49 using const_iterator = SdfLayerChangeListVec::const_iterator;
50 using iterator = const_iterator;
59 const_iterator begin()
const {
return _vec->begin(); }
60 const_iterator cbegin()
const {
return _vec->cbegin(); }
61 const_iterator end()
const {
return _vec->end(); }
62 const_iterator cend()
const {
return _vec->cend(); }
64 const_iterator find(SdfLayerHandle
const &layer)
const {
67 [&layer](SdfLayerChangeListVec::value_type
const &p) {
68 return p.first == layer;
72 bool count(SdfLayerHandle
const &layer)
const {
73 return find(layer) != end();
80 const SdfLayerChangeListVec *_vec;
81 const size_t _serialNumber;
139 const std::string& newIdentifier);
198 : _layerPath(layerPath)
199 , _wasMuted(wasMuted)
211 std::string _layerPath;
216PXR_NAMESPACE_CLOSE_SCOPE
A scene description container that can combine with other such containers to form simple component as...
Base notification class for scene.
Base class for LayersDidChange and LayersDidChangeSentPerLayer.
size_t GetSerialNumber() const
The serial number for this round of change processing.
const SdfLayerChangeListVec & GetChangeListVec() const
A list of layers and the changes that occurred to them.
SDF_API SdfLayerHandleVector GetLayers() const
A list of layers changed.
Sent after a layer is reloaded.
Sent after a layer has been loaded from a file.
Sent after a layer is saved to file.
Similar behavior to LayersDidChange, but only gets sent if a change in the dirty status of a layer oc...
Sent when the identifier of a layer has changed.
const std::string & GetNewIdentifier() const
Returns the new identifier for the layer.
const std::string & GetOldIdentifier() const
Returns the old identifier for the layer.
Sent when the (scene spec) info of a layer have changed.
const TfToken & key() const
Return the key affected.
Sent after a layer has been added or removed from the set of muted layers.
const std::string & GetLayerPath() const
Returns the path of the layer that was muted or unmuted.
bool WasMuted() const
Returns true if the layer was muted, false if unmuted.
Global notice sent to indicate that layer contents have changed.
Notice sent per-layer indicating all layers whose contents have changed within a single round of chan...
Wrapper class for Sdf notices.
The base class for objects used to notify interested parties (listeners) when events have occurred.
Token for efficient comparison, assignment, and hashing of known strings.