9 #ifndef __PDG_WORKITEM_SERIALIZATION_H__
10 #define __PDG_WORKITEM_SERIALIZATION_H__
103 bool initializeString(
108 bool initializeStream(
130 static bool saveJSON(
134 CheckpointType checkpoint=eCheckpointNone);
137 static bool saveJSON(
138 std::ostream& ostream,
141 CheckpointType checkpoint=eCheckpointNone);
144 static bool saveJSON(
148 CheckpointType checkpoint=eCheckpointNone);
151 static bool saveDict(
155 CheckpointType checkpoint=eCheckpointNone);
158 static bool saveArrayJSON(
162 CheckpointType checkpoint=eCheckpointNone);
165 static bool saveArrayJSON(
166 std::ostream& ostream,
169 CheckpointType checkpoint=eCheckpointNone);
172 static bool saveArrayJSON(
176 CheckpointType checkpoint=eCheckpointNone);
179 static bool saveArrayDict(
183 CheckpointType checkpoint=eCheckpointNone);
187 static bool saveDependencyJSON(
194 CheckpointType checkpoint=eCheckpointNone);
197 static bool saveDependencyJSON(
198 std::ostream& ostream,
204 CheckpointType checkpoint=eCheckpointNone);
207 static bool saveDependencyJSON(
214 CheckpointType checkpoint=eCheckpointNone);
218 static bool saveVersion(
223 static bool saveVersion(
224 std::ostream& ostream,
228 static bool saveVersion(
233 static bool savePython(
267 static bool fromArrayJSON(
276 static bool fromArrayJSON(
277 Array& serialization_array,
282 static bool fromArrayJSON(
283 Array& serialization_array,
289 static bool fromArrayDict(
290 Array& serialization_array,
296 static bool statJSON(
302 static bool statJSON(
309 static bool statJSON(
316 static bool statDict(
329 static bool applyJSONPatch(
335 static bool loadCheckpoint(
342 struct SerializedDependency
351 bool initializeJSONParser(
356 bool initializeJSONV1(
361 bool initializeJSONV2(
367 bool initializeJSONValue(
381 bool loadGraphJSONValue(
393 static bool saveJSON(
397 CheckpointType checkpoint);
401 static bool saveArrayJSON(
405 CheckpointType checkpoint);
409 static bool saveDependencyJSON(
416 CheckpointType checkpoint);
420 static bool saveVersion(
427 static bool saveJSONWorkItem(
431 CheckpointType checkpoint);
436 static bool saveDictWorkItem(
440 CheckpointType checkpoint);
443 static bool saveJSONGraph(
447 CheckpointType checkpoint);
450 static bool saveDictGraph(
454 CheckpointType checkpoint);
465 static bool fromArrayJSONParser(
466 Array& serialization_array,
472 static bool fromArrayJSONValue(
473 Array& serialization_array,
480 static bool statJSONParser(
486 static bool fromJSONDependency(
487 SerializedDependency& dependency,
492 static bool loadCheckpoint(
exint PDG_WorkItemID
Type defs for unique work item IDs.
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
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
PDG_WorkItemType
Enum of work item types.
static const UT_StringHolder theBatchNameKey
static const UT_StringHolder theBatchOffsetKey
static const UT_StringHolder theIsInProcessKey
static const int theAttribV2CookType
static const UT_StringHolder theVersionSectionKey
PDG_WorkItemState
Enum of possible work item states.
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
static const UT_StringHolder theBatchCountKey
UT_Array< int64 > myLoopBeginStackNumbers
static const int theAttribV2Ids
static const int theAttribV2Command
PDG_BatchActivation myActivationMode
PDG_WorkItemCookType
Enumeration of work item cook types.
static const UT_StringHolder thePriorityKey
static const UT_StringHolder theHasFrameKey
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.
PDG_AttributeSaveType
Enumeration of the different ways that attributes can be saved.
static const int theAttribV2LoopInfo
GT_API const UT_StringHolder version
A map of string to various well defined value types.
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.
PDG_WorkItemExecutionType
Enum of work item runtime types.
UT_StringArray myStaticAncestorNames
UT_Array< int64 > myLoopBeginStackSizes
static const UT_StringHolder theIsFrozenKey
UT_StringHolder myCommand
static const UT_StringHolder theSchedulerKey
static const UT_StringHolder theIsPartialCookKey
static const UT_StringHolder theParentKey
static const UT_StringHolder theIsControlKey
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