|
| 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. More...
|
|
ItemIDType | GetNextID () const noexcept |
| Getter for the ID to assign to the next resource to be inserted into the resource manager. More...
|
|
const auto | GetNumResources () const noexcept |
| Determines the amount of resources stored in this resource manager. More...
|
|
const bool | Empty () const noexcept |
| Determines whether this resource manager is empty. More...
|
|
const PointerType::element_type * | GetResource (ItemIDType ID) const |
| Retrieves a resource specified by its ID from the resource manager. More...
|
|
PointerType::element_type * | GetResource (ItemIDType ID) |
| Retrieves a resource specified by its ID from the resource manager. More...
|
|
HardwareAdapterPtrType | ExtractResource (ItemIDType ID) |
| Releases ownership of the owned resource with ID and returns it. More...
|
|
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. More...
|
|
void | DeleteTreeWidgetItem (ItemIDType ID) |
| Deletes the Resource::TreeWidgetItem of the requested resource. More...
|
|
void | FocusTreeWidgetItem (ItemIDType ID) |
| Selects the Resource::TreeWidgetItem of the requested resource. More...
|
|
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 ). More...
|
|
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 ). More...
|
|
auto | cbegin () const noexcept |
| Returns an iterator to the first resource stored in the resource manager. More...
|
|
auto | cend () const noexcept |
| Returns an iterator behind the last resource stored in the resource manager. More...
|
|
ItemIDType | InsertResource (ElementType &&Element) |
| Inserts a resource into the resource manager. More...
|
|
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 . More...
|
|
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. More...
|
|
void | Shutdown () const |
| Calls ShutdownChild() to terminate and clean up all resources stored in this resource manager. More...
|
|
void | ClearResourcesWarnings () const |
| Calls Object::ClearWarning() on all resources stored in this resource manager. More...
|
|
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. More...
|
|
void | ResetFailedResources () const |
| Calls Object::Reset() on all resources stored in this resource manager which are in an error state (determined by Object::GetException()). More...
|
|
void | PrepareReset () |
| Prepares all resources stored in this resource manager for their deletion by e.g. asking them to terminate. More...
|
|
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. More...
|
|
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() . More...
|
|
void | DeleteAllTreeWidgetItems () |
| Deletes the Resource::TreeWidgetItem of all resources stored in this resource manager. More...
|
|
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. More...
|
|
Resource manager for HardwareAdapterBase
resources deriving from a specialized ResourceManagerBase
class.
Definition at line 630 of file Managers.h.