8#ifdef USE_API_USER_DEFINED_ACTIONS
39#define ENTITY_TYPE_(type, singular, plural, count, upper) \
40 case IteratorState::upper: \
41 return this->process_platform_item_(App.get_##plural(), &ComponentIterator::on_##singular);
42#define ENTITY_CONTROLLER_TYPE_(type, singular, plural, count, upper, callback) \
43 ENTITY_TYPE_(type, singular, plural, count, upper)
46#undef ENTITY_CONTROLLER_TYPE_
49#ifdef USE_API_USER_DEFINED_ACTIONS
57 if (camera_instance !=
nullptr && (!camera_instance->
is_internal() || this->include_internal_) &&
58 !this->on_camera(camera_instance)) {
78#ifdef USE_API_USER_DEFINED_ACTIONS
bool advance_step_()
One iteration step; false if no progress was made (callback refused or iterator not running).
void begin(bool include_internal=false)
virtual bool on_service(api::UserServiceDescriptor *service)
virtual bool on_camera(camera::Camera *camera)
bool process_platform_item_(const Container &items, bool(ComponentIterator::*on_item)(typename Container::value_type))
Abstract camera base class.
static Camera * instance()
The singleton instance of the camera implementation.
APIServer * global_api_server