Adaptor base class for converting from QJsonDocument to/from an ObjectGroup-derived class.
More...
template<typename From, typename To>
class CSIRO::DataExecution::JsonObjectGroupAdaptorBase< From, To >
- Note
- This class should never be directly used - it should only be used via extensions in the form of the non-Base version of the class (see below).
Performs the conversion between DataObjects.
- Parameters
-
src | The DataObject that will be converted and stored in dest. |
dest | The destination of the converted DataObject |
copy | Whether a copy should occur regardless of whether or not a copy can be avoided. |
Some adapt() calls will always effectively make a copy, since they create a different data type from the source. Some, however, are able to make the destination data object re-use the source, such as when the destination is a base class of the source' data type.
- Returns
- true if the conversion was successful, false if the conversion was unsuccessful.
All TypeAdaptor subclasses are required to override this function and must respect the copy flag.
Implements TypeAdaptor.