dboo::version_handler::convert

void convert(std::function<void (internalized_instance& dst, const internalized_instance& src)> fn);    // 1)
template<typename type>
void convert(std::function<void (type& dst, const internalized_instance& src, object_context& oc)> fn); // 2)
n/a

Used for converting a class without having a runtime representation of it. The class internalized_instance holds the object’s data without creating a runtime instance.

1

Converts an instance of the class without loading it or instantiate a runtime copy.

2

Converts an instance of the class without loading it into memory, but instead creates a default constructed instance to be filled by converter function.

Type Parameters

type

A runtime type used for loading

Parameters

dst

Object to populate with source data.

src

The source data as an internalized_instance object.

fn

A converter function that populates dst with :data: from :src:.

Return value

(none)

Example