9 #ifndef __PDG_SERIALIZATION_OPTIONS_H__
10 #define __PDG_SERIALIZATION_OPTIONS_H__
35 , myCompressType(eCompressAutomatic)
38 , myPrettyPrint(false)
39 , mySkipDefault(false)
40 , mySaveGlobalAttributes(false)
41 , mySaveBoundAttributes(false) {}
50 return compressionType(myCompressType, file_path);
64 if (!file_path || !isGZipFile(*file_path))
Flatten attributes, saving both dynamic and static as a mix.
CompressType myCompressType
Serialization compression mode.
PDG_SerializationOptions()
bool myBinary
Whether or not the work item should be stored as binary data.
static bool isGZipFile(const UT_StringHolder &file_path)
PDG_AttributeSaveType myAttribSaveType
The attribute data flattening mode.
CompressType
Enumeration of supported file compression t ypes.
static UT_CompressionType compressionType(CompressType compress_type, const UT_StringHolder *file_path=nullptr)
bool mySaveGlobalAttributes
Whether or not graph level global attributes should be saved.
UT_CompressionType compressionType(const UT_StringHolder *file_path=nullptr) const
PDG_AttributeSaveType
Enumeration of the different ways that attributes can be saved.
bool mySaveBoundAttributes
Whether or not bound attributes should be saved.
int SYSstrcasecmp(const char *a, const char *b)
bool myRecursive
Whether or not the serialization should recurse into batches.