Class Selection#

Nested Relationships#

Nested Types#

Class Documentation#

class Selection#

Common data and Json ser/de for selection information.

Public Functions

nlohmann::json dump() const#

Dump the selection to a Json message.

Returns:

The Json serialized message

Public Members

std::vector<Item> items = {}#

The list of selected items.

Public Static Functions

static Selection parse(const nlohmann::json &j)#

Parse a Selection from a Json message.

Parameters:

j – The raw Json

Returns:

The parsed Selection

struct Item#

Struct with information about the selected item.

Public Members

Karana::Core::id_t id#

The id of the selected item.

nlohmann::json context = {}#

Arbitrary contextual information about the item.