CanEasy COM-Help
CanEasy::ISelection Interface Reference
Inheritance diagram for CanEasy::ISelection:
CanEasy::ICol

Detailed Description

Selection can contain any kind of database item

interface ISelection : ICol
{
HRESULT Item([in] LONG lIndex, [out, retval] IDatabaseItem* *pVal);
HRESULT GetItemAsBus([in] LONG lIndex, [out, retval] IBus* *iBus);
HRESULT GetItemAsControlUnit([in] LONG lIndex, [out, retval] IControlUnit* *iECU);
HRESULT GetItemAsMessage([in] LONG lIndex, [out, retval] IMessage* *iMsg);
HRESULT GetItemAsSignal([in] LONG index, [out, retval] ISignal* *iSig);
HRESULT Intersect([in] ICol* iInput, [out, retval] ISelection* *iSelection);
HRESULT Union([in] ICol* iInput, [out, retval] ISelection* *iSelection);
HRESULT Substract([in] ICol* iInput, [out, retval] ISelection* *iSelection);
HRESULT Remove([in] LONG lIndex);
HRESULT AddItem([in] IDatabaseItem* pData);
};

Definition at line 5107 of file cand_tlb.idl.

Member Function Documentation

◆ AddItem()

HRESULT CanEasy::ISelection::AddItem ( [in] IDatabaseItem pData)

Adds an already created database item

◆ GetItemAsBus()

HRESULT CanEasy::ISelection::GetItemAsBus ( [in] LONG  lIndex,
[out, retval] IBus **  iBus 
)

Returns a bus by index

◆ GetItemAsControlUnit()

HRESULT CanEasy::ISelection::GetItemAsControlUnit ( [in] LONG  lIndex,
[out, retval] IControlUnit **  iECU 
)

Returns an ECU by index

◆ GetItemAsMessage()

HRESULT CanEasy::ISelection::GetItemAsMessage ( [in] LONG  lIndex,
[out, retval] IMessage **  iMsg 
)

Returns a message by index

◆ GetItemAsSignal()

HRESULT CanEasy::ISelection::GetItemAsSignal ( [in] LONG  index,
[out, retval] ISignal **  iSig 
)

Returns a signal by index

◆ Intersect()

HRESULT CanEasy::ISelection::Intersect ( [in] ICol iInput,
[out, retval] ISelection **  iSelection 
)

Creates an intersects from this selection and the passed collection

Returns
Returns Pointer to new selection

◆ Remove()

HRESULT CanEasy::ISelection::Remove ( [in] LONG  lIndex)

Removes a database item by index

◆ Substract()

HRESULT CanEasy::ISelection::Substract ( [in] ICol iInput,
[out, retval] ISelection **  iSelection 
)

Creates a subtract between this selection and the passed collection

Returns
Returns Pointer to new selection

◆ Union()

HRESULT CanEasy::ISelection::Union ( [in] ICol iInput,
[out, retval] ISelection **  iSelection 
)

Creates a union from this selection and the passed collection

Returns
Returns Pointer to new selection

Property Documentation

◆ Item

IDatabaseItem CanEasy::ISelection::Item([in] LONG lIndex)
get

Returns a database item by index

CanEasy::ISelection::Intersect
HRESULT Intersect([in] ICol *iInput, [out, retval] ISelection **iSelection)
CanEasy::ISelection::GetItemAsSignal
HRESULT GetItemAsSignal([in] LONG index, [out, retval] ISignal **iSig)
CanEasy::ISelection::Substract
HRESULT Substract([in] ICol *iInput, [out, retval] ISelection **iSelection)
CanEasy::ISelection::GetItemAsControlUnit
HRESULT GetItemAsControlUnit([in] LONG lIndex, [out, retval] IControlUnit **iECU)
CanEasy::ISelection::GetItemAsBus
HRESULT GetItemAsBus([in] LONG lIndex, [out, retval] IBus **iBus)
CanEasy::ISelection::GetItemAsMessage
HRESULT GetItemAsMessage([in] LONG lIndex, [out, retval] IMessage **iMsg)
CanEasy::ISelection::Remove
HRESULT Remove([in] LONG lIndex)
CanEasy::ISelection::AddItem
HRESULT AddItem([in] IDatabaseItem *pData)
CanEasy::ISelection::Union
HRESULT Union([in] ICol *iInput, [out, retval] ISelection **iSelection)
CanEasy::ISelection::Item
IDatabaseItem Item([in] LONG lIndex)