HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rerootingContainerDataSource.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 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_IMAGING_USD_IMAGING_REROOTING_CONTAINER_DATA_SOURCE_H
8 #define PXR_USD_IMAGING_USD_IMAGING_REROOTING_CONTAINER_DATA_SOURCE_H
9 
11 
13 #include "pxr/usd/sdf/path.h"
14 
15 
17 
18 /// \class UsdImagingRerootingContainerDataSource
19 ///
20 /// Calls ReplacePrefix on any path or path array data source in the given
21 /// container data source.
22 ///
24 {
25 public:
27 
30 
32  TfTokenVector GetNames() override;
33 
35  HdDataSourceBaseHandle Get(const TfToken& name) override;
36 
37 private:
40  HdContainerDataSourceHandle inputDataSource,
41  const SdfPath &srcPrefix,
42  const SdfPath &dstPrefix);
43 
44  HdContainerDataSourceHandle const _inputDataSource;
45  const SdfPath _srcPrefix;
46  const SdfPath _dstPrefix;
47 };
48 
50 
51 #endif
#define USDIMAGING_API
Definition: api.h:23
#define HD_DECLARE_DATASOURCE(type)
Definition: dataSource.h:52
USDIMAGING_API TfTokenVector GetNames() override
Definition: token.h:70
USDIMAGING_API ~UsdImagingRerootingContainerDataSource()
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
GLuint const GLchar * name
Definition: glcorearb.h:786
Definition: path.h:273
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74