|
| | HardwareAdapterManager ()=default |
| |
| | ~HardwareAdapterManager ()=default |
| |
| bool | AllConnected () const |
| | Determines whether all hardware adapters managed by this resource manager are connected. If any of the managed hardware adapter is in an error state, the related exception is rethrown.
|
| |
| ItemIDType | GetNextID () const noexcept |
| | Getter for the ID to assign to the next resource to be inserted into the resource manager.
|
| |
| const auto | GetNumResources () const noexcept |
| | Determines the amount of resources stored in this resource manager.
|
| |
| const bool | Empty () const noexcept |
| | Determines whether this resource manager is empty.
|
| |
| const PointerType::element_type * | GetResource (ItemIDType ID) const |
| | Retrieves a resource specified by its ID from the resource manager.
|
| |
| PointerType::element_type * | GetResource (ItemIDType ID) |
| | Retrieves a resource specified by its ID from the resource manager.
|
| |
| HardwareAdapterPtrType | ExtractResource (ItemIDType ID) |
| | Releases ownership of the owned resource with ID and returns it.
|
| |
| void | RemoveResource (ItemIDType ID, const std::chrono::milliseconds Timeout=Util::ILockable::DefaultTimeout) |
| | Removes the resource identified by ID from the resource manager and deletes it.
|
| |
| void | DeleteTreeWidgetItem (ItemIDType ID) |
| | Deletes the Resource::TreeWidgetItem of the requested resource.
|
| |
| void | FocusTreeWidgetItem (ItemIDType ID) |
| | Selects the Resource::TreeWidgetItem of the requested resource.
|
| |
| auto | ShareResource (ItemIDType ID) const |
| | Copies and returns the shared pointer pointing to (and owning) the resource identified by ID. The resource itself is neither copied nor changed. The const version of this method returns a shared pointer pointing to a const resource. This method is only available if the resources stored in the resource manager are managed by a shared pointer (i.e. PointerType is std::shared_ptr).
|
| |
| auto | ShareResource (ItemIDType ID) |
| | Copies and returns the shared pointer pointing to (and owning) the resource identified by ID. The resource itself is neither copied nor changed. The const version of this method returns a shared pointer pointing to a const resource. This method is only available if the resources stored in the resource manager are managed by a shared pointer (i.e. PointerType is std::shared_ptr).
|
| |
| auto | cbegin () const noexcept |
| | Returns an iterator to the first resource stored in the resource manager.
|
| |
| auto | cend () const noexcept |
| | Returns an iterator behind the last resource stored in the resource manager.
|
| |
| ItemIDType | InsertResource (ElementType &&Element) |
| | Inserts a resource into the resource manager.
|
| |
| ItemIDListType | Filter () const |
| | Builds and returns a list of the IDs of all resources stored in this resource manager which can be cast to DerivedType.
|
| |
| void | Startup (FunctionToCallWhenObjectStartedType FunctionToCallWhenObjectStarted) const |
| | Starts all resources owned by the resource manager. For HardwareAdapterBase instances, Object::EnsureReadyState() is called. For InstrumentBase and ModuleBase instances, RunnableObject::RunIfRunOnCreation() is called.
|
| |
| void | Shutdown () const |
| | Calls ShutdownChild() to terminate and clean up all resources stored in this resource manager.
|
| |
| void | ClearResourcesWarnings () const |
| | Calls Object::ClearWarning() on all resources stored in this resource manager.
|
| |
| ItemIDListType | GetFailedResourceIDs (bool OnlyResourcesBeingInUse=false) const |
| | Builds and returns a list of the IDs of all resources stored in this resource manager which are in an error state.
|
| |
| void | ResetFailedResources () const |
| | Calls Object::Reset() on all resources stored in this resource manager which are in an error state (determined by Object::GetException()).
|
| |
| void | PrepareReset () |
| | Prepares all resources stored in this resource manager for their deletion by e.g. asking them to terminate.
|
| |
| void | Reset () |
| | Resets the resource manager by calling ResetChild(), by removing all resources from Map and by resetting CurrentID. All owned resources are deleted if they are not shared and still in use elsewhere.
|
| |
| QDomElement | EntryConfigsToXML (QDomDocument &Document) const |
| | Creates and returns the XML tree containing the configuration of each resource owned by this resource manager for saving DynExp projects to XML files. The tree starts with a root node as produced by MakeXMLConfigHeadNode().
|
| |
| void | DeleteAllTreeWidgetItems () |
| | Deletes the Resource::TreeWidgetItem of all resources stored in this resource manager.
|
| |
| void | MakeEntriesFromXML (const QDomElement &XMLNode, const LibraryVectorT &Library, const DynExpCore &Core) |
| | Creates resources and takes ownership of them according to an XML tree from a DynExp project XML file.
|
| |
Resource manager for HardwareAdapterBase resources deriving from a specialized ResourceManagerBase class.
Definition at line 630 of file Managers.h.