9 #ifndef __PDG_WORKITEM_SERIALIZATION_H__
10 #define __PDG_WORKITEM_SERIALIZATION_H__
101 bool initializeString(
106 bool initializeStream(
123 static bool saveJSON(
127 CheckpointType checkpoint=eCheckpointNone);
130 static bool saveJSON(
131 std::ostream& ostream,
134 CheckpointType checkpoint=eCheckpointNone);
137 static bool saveJSON(
141 CheckpointType checkpoint=eCheckpointNone);
145 static bool saveArrayJSON(
149 CheckpointType checkpoint=eCheckpointNone);
152 static bool saveArrayJSON(
153 std::ostream& ostream,
156 CheckpointType checkpoint=eCheckpointNone);
159 static bool saveArrayJSON(
163 CheckpointType checkpoint=eCheckpointNone);
167 static bool saveDependencyJSON(
174 CheckpointType checkpoint=eCheckpointNone);
177 static bool saveDependencyJSON(
178 std::ostream& ostream,
184 CheckpointType checkpoint=eCheckpointNone);
187 static bool saveDependencyJSON(
194 CheckpointType checkpoint=eCheckpointNone);
198 static bool saveVersion(
203 static bool saveVersion(
204 std::ostream& ostream,
208 static bool saveVersion(
213 static bool savePython(
241 static bool fromArrayJSON(
250 static bool fromArrayJSON(
251 Array& serialization_array,
256 static bool fromArrayJSON(
257 Array& serialization_array,
264 static bool statJSON(
270 static bool statJSON(
277 static bool statJSON(
292 static bool applyJSONPatch(
298 static bool loadCheckpoint(
305 struct SerializedDependency
330 bool initializeJSONValue(
337 bool loadGraphJSONValue(
343 static bool saveJSON(
347 CheckpointType checkpoint);
351 static bool saveArrayJSON(
355 CheckpointType checkpoint);
359 static bool saveDependencyJSON(
366 CheckpointType checkpoint);
370 static bool saveVersion(
377 static bool saveJSONWorkItem(
381 CheckpointType checkpoint);
384 static bool saveJSONGraph(
388 CheckpointType checkpoint);
399 static bool fromArrayJSON(
400 Array& serialization_array,
406 static bool fromArrayValue(
407 Array& serialization_array,
413 static bool statJSON(
419 static bool fromJSONDependency(
420 SerializedDependency& dependency,
425 static bool loadCheckpoint(
static const UT_StringHolder theParentIdKey
static const UT_StringHolder theDependencySectionKey
UT_StringHolder mySchedulerName
static const UT_StringHolder theLoopStackKey
static const UT_StringHolder thePatchOutputsKey
static const UT_StringHolder theIsNoGenerateKey
static const int theAttribV2LoopLock
UT_Array< int64 > myLoopBeginStackIds
static const UT_StringHolder theCloneTargetIdKey
static const UT_StringHolder theGraphSectionKey
UT_JSONValueMap stores a map/dictionary of UT_JSONValue objects.
PDG_WorkItemID myParentId
PDG_WorkItemExecutionType myExecutionType
bool myIsClearEnvironment
PDG_WorkItemID myCloneTargetId
static const UT_StringHolder thePatchAttributesKey
PDG_WorkItemState myState
static const UT_StringHolder theBatchParentIdKey
static const UT_StringHolder theBatchParentKey
static const int theAttribV1
UT_StringHolder myNodeName
UT_StringHolder myBatchName
static const UT_StringHolder theWorkItemsSectionKey
Serialize the initial baseline fields for the work item.
static const UT_StringHolder theIsStaticKey
PDGT_Value::Map myEnvironment
static const UT_StringHolder theIsPostCookKey
static const UT_StringHolder theIsClearEnvKey
static const UT_StringHolder theLoopStackIdsKey
static const UT_StringHolder theCloneTargetKey
Class which writes ASCII or binary JSON streams.
int myBatchActivationCount
static const UT_StringHolder theIdKey
UT_StringHolder myBaseName
PDG_WorkItemCookType
Enumeration of work item cook types.
bool myIsCloneOutputFiles
static const UT_StringHolder theExpansionKey
static const UT_StringHolder theFrameStepKey
static const UT_StringHolder theDependencyFromKey
UT_StringHolder myCustomData
static const UT_StringHolder theFrameKey
static const UT_StringHolder theLoopStackItersKey
static const UT_StringHolder theTypeKey
PDG_WorkItemID myBatchParentId
static const UT_StringHolder theExecutionTypeKey
static const UT_StringHolder theIsCloneOutputFilesKey
static const UT_StringHolder theActivationCountKey
static const UT_StringHolder theAncestorsKey
static const UT_StringHolder theDependencyRequiredKey
UT_StringArray myLoopBeginStackNames
static const UT_StringHolder theBatchNameKey
static const UT_StringHolder theBatchOffsetKey
static const UT_StringHolder theIsInProcessKey
static const int theAttribV2CookType
static const UT_StringHolder theVersionSectionKey
static const UT_StringHolder theStateKey
UT_StringHolder myCustomDataType
static const UT_StringHolder theIsDynamicBatchKey
PDG_AttributeMap myAttributes
static const UT_StringHolder theIndexKey
static const int theAttribV2
UT_Array< int64 > myLoopBeginStackIters
UT_StringHolder myCloneTargetName
PDG_WorkItemExecutionType
Enum of work item runtime types.
static const UT_StringHolder theBatchCountKey
UT_Array< int64 > myLoopBeginStackNumbers
static const int theAttribV2Ids
static const int theAttribV2Command
PDG_BatchActivation myActivationMode
static const UT_StringHolder thePriorityKey
static const UT_StringHolder theHasFrameKey
OPENVDB_API void initialize()
Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled).
PDG_WorkItemState
Enum of possible work item states.
SYS_DECLARE_LEGACY_TR(GU_Detail)
static const UT_StringHolder theLoopStackSizesKey
bool myHasGraphAttributes
static const UT_StringHolder thePatchGraphKey
static const UT_StringHolder theCommandKey
Serialize all fields – no checkpointing is in progress.
static const int theAttribV2LoopInfo
GT_API const UT_StringHolder version
static const UT_StringHolder theActivationModeKey
static const UT_StringHolder theSubItemsKey
static const UT_StringHolder theNameKey
static const UT_StringHolder theLoopStackNumbersKey
static const UT_StringHolder theCustomDataTypeKey
static const UT_StringHolder theCustomDataKey
static const UT_StringHolder theEnvironmentKey
Class to store JSON objects as C++ objects.
UT_StringArray myStaticAncestorNames
PDG_WorkItemType
Enum of work item types.
UT_Array< int64 > myLoopBeginStackSizes
static const UT_StringHolder theIsFrozenKey
UT_StringHolder myCommand
SaveType
Save operation to perform.
static const UT_StringHolder theSchedulerKey
static const UT_StringHolder theIsPartialCookKey
static const UT_StringHolder theParentKey
static const UT_StringHolder theIsControlKey
exint PDG_WorkItemID
Type defs for unique work item IDs.
static const UT_StringHolder theDependencyToKey
static const UT_StringHolder theWorkItemSectionKey
static const int theAttribVersionCurrent
UT_Array< int64 > myLoopBeginStackLockIds
static const UT_StringHolder theBatchStartKey
PDG_WorkItemCookType myCookType
UT_StringHolder myBatchParentName
static const UT_StringHolder theCookTypeKey
static const UT_StringHolder theBaseNameKey
static const UT_StringHolder theNodeKey
static const UT_StringHolder theBatchIndexKey
static const UT_StringHolder theAttributesKey
UT_StringHolder myParentName
static const UT_StringHolder theLoopStackLockIdsKey