ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
ISomeIpDatabaseabstract

The ISomeIpDatabase interface provides access to SOME/IP specific information contained in a database file such as FIBEX or ARXML. More...

Inheritance diagram for ISomeIpDatabase:
[legend]

Public Member Functions

 ADTF_IID (ISomeIpDatabase, "someip_database.hood.someip.sdk.devicetb.adtf.iid")
 Interface ID for the SOME/IP database interface.
 
virtual tResult GetMessageInfo (const adtf::devicetb::sdk::someip::hood::tSomeIpSampleHeader &oSampleHeader, const adtf::devicetb::sdk::someip::hood::tSomeIpMessageHeader &oMessageHeader, const adtf::devicetb::sdk::someip::hood::tSomeIpMessageInfo *&pMessageInfo) const =0
 Returns the SOME/IP Message Info for a given SOME/IP message sample and message header. More...
 
virtual tResult GetClusterInfos (const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tClusterInfo *pClusterInfo) > &fnCallback) const =0
 Returns all Cluster Infos. More...
 
virtual tResult GetEcus (const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tECUInfo *pECUInfo) > &fnCallback) const =0
 Returns all Ecu Infos from a cluster. More...
 
virtual tResult GetChannelsByCluster (uint32_t nClusterId, const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tChannelInfo *pChannelInfo) > &fnCallback) const =0
 Returns all Channel Infos from a cluster. More...
 
virtual tResult GetCluster (uint32_t nClusterId, const adtf::devicetb::sdk::someip::hood::tClusterInfo *&pClusterInfo) const =0
 Getter for a tClusterInfo with a given Id. More...
 
virtual tResult GetEcu (uint32_t nEcuId, const adtf::devicetb::sdk::someip::hood::tECUInfo *&pECUInfo) const =0
 Getter for a tEcuInfo with a given Id. More...
 
virtual tResult GetChannel (uint32_t nChannelId, const adtf::devicetb::sdk::someip::hood::tChannelInfo *&pChannelInfo) const =0
 Getter for a tChannelInfo with a given Id. More...
 
virtual tResult GetSenderEcu (const tSomeIpSampleHeader &oSampleHeader, const adtf::devicetb::sdk::someip::hood::tECUInfo *pECUInfo) const =0
 Getter for the sender ECU. More...
 
virtual tResult GetMessageInfo (uint32_t nMessageInfoId, const adtf::devicetb::sdk::someip::hood::tSomeIpMessageInfo *&pMessageInfo) const =0
 Getter for a tSomeIpMessageInfo with a given Id. More...
 
virtual tResult GetConnectionsByEcu (uint32_t nEcuId, const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tSomeIpConnectionInfo *pSocketInfo) > &fnCallback) const =0
 Getter for the sockets connected with an ecu. More...
 
virtual tResult GetConnectionsByChannel (uint32_t nChannelId, const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tSomeIpConnectionInfo *pSocketInfo) > &fnCallback) const =0
 Getter for the sockets connected with a channel. More...
 
virtual tResult GetMessageInfos (const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tSomeIpMessageInfo *pMessageInfo) > &fnCallback) const =0
 Getter for all SOME/IP messages. More...
 
virtual bool ConnectionContainsSomeIp (const adtf::devicetb::sdk::someip::hood::tSomeIpSampleHeader &oEthernetHeader) const =0
 Check if a given ethernet sample is on a connection handled by this database. More...
 

Detailed Description

The ISomeIpDatabase interface provides access to SOME/IP specific information contained in a database file such as FIBEX or ARXML.

Definition at line 57 of file someip_database_intf.h.

Member Function Documentation

◆ ConnectionContainsSomeIp()

virtual bool ConnectionContainsSomeIp ( const adtf::devicetb::sdk::someip::hood::tSomeIpSampleHeader oEthernetHeader) const
pure virtual

Check if a given ethernet sample is on a connection handled by this database.

Only connection properties are checked, use GetMessageInfo instead to also test for message properties.

Parameters
[in]oEthernetHeaderEthernet sample header of ethernet frame.
Returns
Any defined connection can contain this sample.

◆ GetChannel()

virtual tResult GetChannel ( uint32_t  nChannelId,
const adtf::devicetb::sdk::someip::hood::tChannelInfo *&  pChannelInfo 
) const
pure virtual

Getter for a tChannelInfo with a given Id.

Parameters
[in]nChannelIdThe Id of the Channel.
[out]pChannelInfoThe info of the channel. Ownership of pChannelInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetChannelsByCluster()

virtual tResult GetChannelsByCluster ( uint32_t  nClusterId,
const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tChannelInfo *pChannelInfo) > &  fnCallback 
) const
pure virtual

Returns all Channel Infos from a cluster.

Parameters
[in]nClusterIdThe Id of the Cluster.
[in]fnCallbackfunction returning the tChannelInfo's from a cluster described in the loaded ARXML. Ownership of pChannelInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetCluster()

virtual tResult GetCluster ( uint32_t  nClusterId,
const adtf::devicetb::sdk::someip::hood::tClusterInfo *&  pClusterInfo 
) const
pure virtual

Getter for a tClusterInfo with a given Id.

Parameters
[in]nClusterIdThe Id of the Cluster.
[out]pClusterInfoThe info of the cluster. Ownership of pClusterInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetClusterInfos()

virtual tResult GetClusterInfos ( const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tClusterInfo *pClusterInfo) > &  fnCallback) const
pure virtual

Returns all Cluster Infos.

Parameters
[in]fnCallbackfunction returning the tClusterInfo's described in the loaded ARXML. Ownership of pClusterInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetConnectionsByChannel()

virtual tResult GetConnectionsByChannel ( uint32_t  nChannelId,
const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tSomeIpConnectionInfo *pSocketInfo) > &  fnCallback 
) const
pure virtual

Getter for the sockets connected with a channel.

Parameters
[in]nChannelIdThe channel Id.
[in]fnCallbackfunction returning the tSomeIpSocketInfo's. Ownership of pSocketInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetConnectionsByEcu()

virtual tResult GetConnectionsByEcu ( uint32_t  nEcuId,
const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tSomeIpConnectionInfo *pSocketInfo) > &  fnCallback 
) const
pure virtual

Getter for the sockets connected with an ecu.

Parameters
[in]nEcuIdThe channel Id.
[in]fnCallbackfunction returning the tSomeIpSocketInfo's. Ownership of pSocketInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetEcu()

virtual tResult GetEcu ( uint32_t  nEcuId,
const adtf::devicetb::sdk::someip::hood::tECUInfo *&  pECUInfo 
) const
pure virtual

Getter for a tEcuInfo with a given Id.

Parameters
[in]nEcuIdThe Id of the ECU.
[out]pECUInfoThe info of the ECU. Ownership of pECUInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetEcus()

virtual tResult GetEcus ( const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tECUInfo *pECUInfo) > &  fnCallback) const
pure virtual

Returns all Ecu Infos from a cluster.

Parameters
[in]fnCallbackfunction returning the tECUInfo's from a cluster described in the loaded ARXML. Ownership of pECUInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetMessageInfo() [1/2]

virtual tResult GetMessageInfo ( const adtf::devicetb::sdk::someip::hood::tSomeIpSampleHeader oSampleHeader,
const adtf::devicetb::sdk::someip::hood::tSomeIpMessageHeader oMessageHeader,
const adtf::devicetb::sdk::someip::hood::tSomeIpMessageInfo *&  pMessageInfo 
) const
pure virtual

Returns the SOME/IP Message Info for a given SOME/IP message sample and message header.

Parameters
[in]oSampleHeaderThe SOME/IP Sample Header.
[in]oMessageHeaderThe header of the SOME/IP message.
[out]pMessageInfoThe message info of the SOME/IP message. Ownership of pMessageInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetMessageInfo() [2/2]

virtual tResult GetMessageInfo ( uint32_t  nMessageInfoId,
const adtf::devicetb::sdk::someip::hood::tSomeIpMessageInfo *&  pMessageInfo 
) const
pure virtual

Getter for a tSomeIpMessageInfo with a given Id.

Parameters
[in]nMessageInfoIdThe Id of the message.
[out]pMessageInfoThe Info of the Message. Ownership of pMessageInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetMessageInfos()

virtual tResult GetMessageInfos ( const ucom::nitro::ifunction< void(const adtf::devicetb::sdk::someip::hood::tSomeIpMessageInfo *pMessageInfo) > &  fnCallback) const
pure virtual

Getter for all SOME/IP messages.

Parameters
[in]fnCallbackfunction returning the tSomeIpMessageInfo's. Ownership of pMessageInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult

◆ GetSenderEcu()

virtual tResult GetSenderEcu ( const tSomeIpSampleHeader oSampleHeader,
const adtf::devicetb::sdk::someip::hood::tECUInfo pECUInfo 
) const
pure virtual

Getter for the sender ECU.

Parameters
[in]oSampleHeaderThe SOME/IP sample header from the SOME/IP message.
[out]pECUInfoThe Info of the sender ECU. Ownership of pECUInfo remains with ISomeIpDatabase and has the same lifetime as ISomeIpDatabase.
Returns
tResult