![]() |
IDS peak genericC++
v1.6.2
|
Represents a GenTL System module. More...
#include <peak/system/peak_system.hpp>
Public Types | |
| using | InterfaceFoundCallback = std::function< void(const std::shared_ptr< InterfaceDescriptor > &foundInterface)> |
| using | InterfaceFoundCallbackHandle = InterfaceFoundCallback * |
| using | InterfaceLostCallback = std::function< void(const std::string &lostInterfaceId)> |
| using | InterfaceLostCallbackHandle = InterfaceLostCallback * |
Public Member Functions | |
| System ()=delete | |
| ~System () override | |
| System (const System &other)=delete | |
| System & | operator= (const System &other)=delete |
| System (System &&other)=delete | |
| System & | operator= (System &&other)=delete |
| std::string | Key () const |
| Returns the unique key. More... | |
| RawInformation | Info (int32_t infoCommand) const |
| Delivers information based on the given GenTL info command. More... | |
| std::string | ID () const |
| Returns the ID. More... | |
| std::string | DisplayName () const |
| Returns the display name. More... | |
| std::string | VendorName () const |
| Returns the vendor name. More... | |
| std::string | ModelName () const |
| Returns the model name. More... | |
| std::string | Version () const |
| Returns the version. More... | |
| std::string | TLType () const |
| Returns the TL (transport layer) type. More... | |
| std::string | CTIFileName () const |
| Returns the file name of the GenTL producer library this system belongs to. More... | |
| std::string | CTIFullPath () const |
| Returns the full path of the GenTL producer library this system belongs to. More... | |
| uint32_t | GenTLVersionMajor () const |
| Returns the GenTL major version of the GenTL producer library this system belongs to. More... | |
| uint32_t | GenTLVersionMinor () const |
| Returns the GenTL minor version of the GenTL producer library this system belongs to. More... | |
| peak::core::CharacterEncoding | CharacterEncoding () const |
| Returns the character encoding of the GenTL producer library this system belongs to. More... | |
| void | UpdateInterfaces (Timeout timeout_ms) |
| Searches for interfaces. More... | |
| std::vector< std::shared_ptr< InterfaceDescriptor > > | Interfaces () const |
| Returns the interface list. More... | |
| std::shared_ptr< ProducerLibrary > | ParentLibrary () const |
| Returns the parent library. More... | |
| InterfaceFoundCallbackHandle | RegisterInterfaceFoundCallback (const InterfaceFoundCallback &callback) |
| Registers a callback for signaling a found interface. More... | |
| void | UnregisterInterfaceFoundCallback (InterfaceFoundCallbackHandle callbackHandle) |
| Unregisters a interface found callback. More... | |
| InterfaceLostCallbackHandle | RegisterInterfaceLostCallback (const InterfaceLostCallback &callback) |
| Registers a callback for signaling a lost interface. More... | |
| void | UnregisterInterfaceLostCallback (InterfaceLostCallbackHandle callbackHandle) |
| Unregisters a interface lost callback. More... | |
Public Member Functions inherited from peak::core::EventSupportingModule | |
| EventSupportingModule ()=default | |
| ~EventSupportingModule () override=default | |
| EventSupportingModule (const EventSupportingModule &other)=delete | |
| EventSupportingModule & | operator= (const EventSupportingModule &other)=delete |
| EventSupportingModule (EventSupportingModule &&other)=delete | |
| EventSupportingModule & | operator= (EventSupportingModule &&other)=delete |
| std::unique_ptr< EventController > | EnableEvents (EventType type) |
| Enables events of the given event type. More... | |
Public Member Functions inherited from peak::core::Module | |
| Module ()=default | |
| virtual | ~Module ()=default |
| Module (const Module &other)=delete | |
| Module & | operator= (const Module &other)=delete |
| Module (Module &&other)=delete | |
| Module & | operator= (Module &&other)=delete |
| std::vector< std::shared_ptr< NodeMap > > | NodeMaps () const |
| Returns the module's node maps. More... | |
| std::shared_ptr< class Port > | Port () const |
| Returns the module's port. More... | |
Additional Inherited Members |
Represents a GenTL System module.
This class allows to query information about the GenTL System module and to enumerate its InterfaceDescriptors, which allow to open the corresponding Interface.
| using peak::core::System::InterfaceFoundCallback = std::function<void(const std::shared_ptr<InterfaceDescriptor>& foundInterface)> |
The type of interface found callbacks.
The type of interface found callback handles.
| using peak::core::System::InterfaceLostCallback = std::function<void(const std::string& lostInterfaceId)> |
The type of interface lost callbacks.
The type of interface lost callback handles.
|
delete |
|
inlineoverride |
|
delete |
|
delete |
|
inline |
Returns the character encoding of the GenTL producer library this system belongs to.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the file name of the GenTL producer library this system belongs to.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the full path of the GenTL producer library this system belongs to.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the display name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the GenTL major version of the GenTL producer library this system belongs to.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the GenTL minor version of the GenTL producer library this system belongs to.
| InternalErrorException | An internal error has occurred. |
|
inline |
|
inline |
Delivers information based on the given GenTL info command.
| [in] | infoCommand | The GenTL info command. |
This function can be used to query information going beyond the predefined info functions, based on the GenTL info commands of the corresponding module.
Example (error handling is omitted):
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the interface list.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the unique key.
The returned key is unique even across different producer libraries.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the model name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the parent library.
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling a found interface.
This function registers a callback which gets called every time a new interface is found. Pass the callback handle returned by this function to UnregisterInterfaceFoundCallback() to unregister the callback.
| [in] | callback | The callback to call if a new interface is found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling a lost interface.
This function registers a callback which gets called every time a interface is lost. Pass the callback handle returned by this function to UnregisterInterfaceLostCallback() to unregister the callback.
| [in] | callback | The callback to call if a interface is lost. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the TL (transport layer) type.
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters a interface found callback.
This function unregisters a interface found callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters a interface lost callback.
This function unregisters a interface lost callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Searches for interfaces.
This function triggers an update of the internal interface list. The callbacks registered on the system will be triggered if an interface is found or lost.
| [in] | timeout_ms | The time to wait for new interfaces in milliseconds. In any case the GenTL Producer must make sure that this operation is completed in a reasonable amount of time depending on the underlying technology. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the vendor name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the version.
| InternalErrorException | An internal error has occurred. |