1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 //    names, trademarks, service marks, or product names of the Licensor
11 //    and its affiliates, except as required to comply with Section 4(c) of
12 //    the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 //     http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 
25 #include "pxr/pxr.h"
26 #include "pxr/usd/pcp/types.h"
27 
28 #include "pxr/base/tf/enum.h"
29 #include "pxr/base/tf/registryManager.h"
30 
31 PXR_NAMESPACE_OPEN_SCOPE
32 
TF_REGISTRY_FUNCTION(TfEnum)33 TF_REGISTRY_FUNCTION(TfEnum)
34 {
35     TF_ADD_ENUM_NAME(PcpArcTypeRoot, "root");
36     TF_ADD_ENUM_NAME(PcpArcTypeInherit, "inherit");
37     TF_ADD_ENUM_NAME(PcpArcTypeRelocate, "relocate");
38     TF_ADD_ENUM_NAME(PcpArcTypeVariant, "variant");
39     TF_ADD_ENUM_NAME(PcpArcTypeReference, "reference");
40     TF_ADD_ENUM_NAME(PcpArcTypePayload, "payload");
41     TF_ADD_ENUM_NAME(PcpArcTypeSpecialize, "specialize");
42 
43     TF_ADD_ENUM_NAME(PcpRangeTypeRoot, "root");
44     TF_ADD_ENUM_NAME(PcpRangeTypeInherit, "inherit");
45     TF_ADD_ENUM_NAME(PcpRangeTypeVariant, "variant");
46     TF_ADD_ENUM_NAME(PcpRangeTypeReference, "reference");
47     TF_ADD_ENUM_NAME(PcpRangeTypePayload, "payload");
48     TF_ADD_ENUM_NAME(PcpRangeTypeSpecialize, "specialize");
49     TF_ADD_ENUM_NAME(PcpRangeTypeAll, "all");
50     TF_ADD_ENUM_NAME(PcpRangeTypeWeakerThanRoot, "weaker than root");
51     TF_ADD_ENUM_NAME(PcpRangeTypeStrongerThanPayload, "stronger than payload");
52     TF_ADD_ENUM_NAME(PcpRangeTypeInvalid, "invalid");
53 }
54 
55 PXR_NAMESPACE_CLOSE_SCOPE
56