omni::graph::core::FileFormatUpgrade

Defined in omni/graph/core/iComputeGraph.h

struct FileFormatUpgrade

Callback object to instantiate for use as a callback when an older version of an OmniGraph file is read.

Public Functions

inline bool operator==(const FileFormatUpgrade &rhs) const

Equality operator for the file format upgrade callback object.

Parameters

rhs – Callback object to compare against

Returns

true The callback object is equal to rhs

Returns

false The callback object is not equal to rhs

inline bool operator!=(const FileFormatUpgrade &rhs) const

Inequality operator for the file format upgrade callback object.

Parameters

rhs – Callback object to compare against

Returns

true The callback object is not equal to rhs

Returns

false The callback object is equal to rhs

Public Members

void (*fileFormatUpgradeCallback)(const FileFormatVersion &oldVersion, const FileFormatVersion &newVersion, GraphObj &graphObj, void *userData)

Callback function definition.

Parameters are

  • oldVersion Version of the file being read

  • newVersion Current version of the file format

  • userData User data to pass to the callback

void *userData

User data to pass to the callback function.