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);
163 static bool saveArrayJSON(
167 CheckpointType checkpoint=eCheckpointNone);
170 static bool saveArrayJSON(
171 std::ostream& ostream,
174 CheckpointType checkpoint=eCheckpointNone);
175 static bool saveArrayJSON(
176 std::ostream& ostream,
179 CheckpointType checkpoint=eCheckpointNone);
182 static bool saveArrayJSON(
186 CheckpointType checkpoint=eCheckpointNone);
187 static bool saveArrayJSON(
191 CheckpointType checkpoint=eCheckpointNone);
194 static bool saveArrayDict(
198 CheckpointType checkpoint=eCheckpointNone);
202 static bool saveDependencyJSON(
209 CheckpointType checkpoint=eCheckpointNone);
212 static bool saveDependencyJSON(
213 std::ostream& ostream,
219 CheckpointType checkpoint=eCheckpointNone);
222 static bool saveDependencyJSON(
229 CheckpointType checkpoint=eCheckpointNone);
233 static bool saveVersion(
238 static bool saveVersion(
239 std::ostream& ostream,
243 static bool saveVersion(
248 static bool savePython(
282 static bool fromArrayJSON(
291 static bool fromArrayJSON(
292 Array& serialization_array,
297 static bool fromArrayJSON(
298 Array& serialization_array,
304 static bool fromArrayDict(
305 Array& serialization_array,
311 static bool statJSON(
317 static bool statJSON(
324 static bool statJSON(
331 static bool statDict(
344 static bool applyJSONPatch(
350 static bool loadCheckpoint(
357 struct SerializedDependency
366 bool initializeJSONParser(
371 bool initializeJSONV1(
376 bool initializeJSONV2(
382 bool initializeJSONValue(
396 bool loadGraphJSONValue(
408 static bool saveJSON(
412 CheckpointType checkpoint);
416 static bool saveArrayJSON(
420 CheckpointType checkpoint);
421 static bool saveArrayJSON(
425 CheckpointType checkpoint);
429 static bool saveDependencyJSON(
436 CheckpointType checkpoint);
440 static bool saveVersion(
447 static bool saveJSONWorkItem(
451 CheckpointType checkpoint);
456 static bool saveDictWorkItem(
460 CheckpointType checkpoint);
463 static bool saveJSONGraph(
467 CheckpointType checkpoint);
470 static bool saveDictGraph(
474 CheckpointType checkpoint);
485 static bool fromArrayJSONParser(
486 Array& serialization_array,
492 static bool fromArrayJSONValue(
493 Array& serialization_array,
500 static bool statJSONParser(
506 static bool fromJSONDependency(
507 SerializedDependency& dependency,
512 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
GLsizei const GLfloat * value
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