Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 4.89 KB

SwitchControlMapping.md

File metadata and controls

32 lines (26 loc) · 4.89 KB

class SwitchControlMapping

Member values

Member name Data type Description
controller_identifier uint32 Identifier of the controller for which changing the active map is requested
map_group_handle MapGroupHandle Reference to the map group for which the active map needs to change
map_handle MapHandle Reference to new active map

Member functions

Function name Return type Input type Description
controller_identifier() uint32 void Returns the current value of controller_identifier. If the controller_identifier is not set, returns 0.
set_controller_identifier() void uint32 Sets the value of controller_identifier. After calling this, controller_identifier() will return value.
clear_controller_identifier() void void Clears the value of controller_identifier. After calling this, controller_identifier() will return 0.
has_map_group_handle() const bool void Returns true if map_group_handle is set.
map_group_handle() const MapGroupHandle& void Returns the current value of map_group_handle. If map_group_handle is not set, returns a MapGroupHandle with none of its fields set (possibly map_group_handle::default_instance()).
mutable_map_group_handle() MapGroupHandle * void Returns a pointer to the mutable MapGroupHandle object that stores the field's value. If the field was not set prior to the call, then the returned MapGroupHandle will have none of its fields set (i.e. it will be identical to a newly-allocated MapGroupHandle). After calling this, has_map_group_handle() will return true and map_group_handle() will return a reference to the same instance of MapGroupHandle.
clear_map_group_handle() void void Clears the value of the field. After calling this, has_map_group_handle() will return false and map_group_handle() will return the default value.
set_allocated_map_group_handle() void MapGroupHandle * Sets the MapGroupHandle object to the field and frees the previous field value if it exists. If the MapGroupHandle pointer is not NULL, the message takes ownership of the allocated MapGroupHandle object and has_ MapGroupHandle() will return true. Otherwise, if the map_group_handle is NULL, the behavior is the same as calling clear_map_group_handle().
release_map_group_handle() MapGroupHandle * void Releases the ownership of the field and returns the pointer of the MapGroupHandle object. After calling this, caller takes the ownership of the allocated MapGroupHandle object, has_map_group_handle() will return false, and map_group_handle() will return the default value.
has_map_handle() const bool void Returns true if map_handle is set.
map_handle() const MapHandle& void Returns the current value of map_handle. If map_handle is not set, returns a MapHandle with none of its fields set (possibly map_handle::default_instance()).
mutable_map_handle() MapHandle * void Returns a pointer to the mutable MapHandle object that stores the field's value. If the field was not set prior to the call, then the returned MapHandle will have none of its fields set (i.e. it will be identical to a newly-allocated MapHandle). After calling this, has_map_handle() will return true and map_handle() will return a reference to the same instance of MapHandle.
clear_map_handle() void void Clears the value of the field. After calling this, has_map_handle() will return false and map_handle() will return the default value.
set_allocated_map_handle() void MapHandle * Sets the MapHandle object to the field and frees the previous field value if it exists. If the MapHandle pointer is not NULL, the message takes ownership of the allocated MapHandle object and has_ MapHandle() will return true. Otherwise, if the map_handle is NULL, the behavior is the same as calling clear_map_handle().
release_map_handle() MapHandle * void Releases the ownership of the field and returns the pointer of the MapHandle object. After calling this, caller takes the ownership of the allocated MapHandle object, has_map_handle() will return false, and map_handle() will return the default value.

Parent topic: Base (C++)