9 #ifndef __PDG_ATTRIBUTE_INFO_H__
10 #define __PDG_ATTRIBUTE_INFO_H__
33 eOriginGenerate = 0x1,
35 eOriginExpected = 0x4,
37 eOriginGenerateExpected = eOriginGenerate | eOriginExpected,
44 Config() : myDefaultOrigin(eOriginNone) {}
69 void addOutputAttribs(
const Config& attrib_config);
72 void addInputAttribs(
const Config& attrib_config);
77 bool dynamic_generator);
80 void processExpressionAttribs(
86 bool checkNeedsDynamic(
87 bool require_inputs)
const;
92 {
return myOutputAttributes; }
96 {
return myInputAttributes; }
101 {
return myUpstreamAttributes; }
104 static bool fromJSON(
110 Config myOutputAttributes;
112 Config myUpstreamAttributes;
114 bool myHasDynamicInputs;
const Config & upstreamAttributes() const
UT_ArrayStringMap< int > myAttributeCounts
UT_JSONValueArray stores a list of UT_JSONValue objects.
UT_StringMap< UT_StringSet > myChannelAttributes
UT_ArrayStringMap< int > myOrigins
AttribOrigin
Whether the attributes is create/used in the generate/cook stage.
const Config & inputAttributes() const
Returns the attributes referenced or use during the current cook.
const Config & outputAttributes() const