29#ifndef GENAPI_EVENTPORT_H
30#define GENAPI_EVENTPORT_H
36namespace GENAPI_NAMESPACE
67 virtual void Read(
void *pBuffer, int64_t Address, int64_t Length);
70 virtual void Write(
const void *pBuffer, int64_t Address, int64_t Length);
76 virtual void SetPortImpl(GENAPI_NAMESPACE::IPortStacked* pPort);
117 void ResetEventDataBuffer();
124 uint8_t *m_pEventData;
127 int64_t m_EventDataLength;
130 int64_t m_EventDataAlloc;
132# pragma warning( push )
133# pragma warning( disable: 4251 )
138# pragma warning( pop )
142 uint8_t *m_pEventIDBuffer;
148 bool m_IsAttachedToPortNode;
151 uint64_t m_EventIDNumber;
154 bool m_EventIDNumberValid;
Definition of interface INodeMap.
virtual CLock & GetLock() const =0
Returns the lock which guards the node map.
virtual void InvalidateNode()=0
Indicates that the node's value may have changed.
Definition of interface IPortConstruct.
Definition of template CPointer.
Port attachable to an event.
Definition EventPort.h:44
CEventPort(INode *pNode=NULL)
Constructor; can attach to a node.
virtual void SetPortImpl(GENAPI_NAMESPACE::IPortStacked *pPort)
Called from the port node to give the chunk port a pointer to itself.
bool AttachNode(GENAPI_NAMESPACE::INode *pNode)
Attaches to the Node.
bool CheckEventID(uint8_t *pEventIDBuffer, int EventIDLength) const
Checks if a EventID matches.
virtual EYesNo GetSwapEndianess()
Determines if the port adapter must perform an endianess swap.
void DetachNode()
Detaches from the Node.
virtual void SetPortImpl(GENAPI_NAMESPACE::IPort *pPort)
Called from the port node to give the chunk port a pointer to itself.
void DetachEvent()
Detaches the Event from the EventPort.
int GetEventIDLength()
Gets the EventID length.
virtual void Write(const void *pBuffer, int64_t Address, int64_t Length)
Writes a chunk of bytes to the port.
~CEventPort()
Destructor; detaches from the port.
virtual void Read(void *pBuffer, int64_t Address, int64_t Length)
Reads a chunk of bytes from the port.
virtual EAccessMode GetAccessMode() const
Get the access mode of the node.
virtual EInterfaceType GetPrincipalInterfaceType() const
Get the type of the main interface of a node.
bool CheckEventID(uint64_t EventID) const
Checks if a EventID matches, version using uint64_t ID representation.
void AttachEvent(uint8_t *pBaseAddress, int64_t Length)
Attaches the an Event to the EventPort.
A lock class.
Definition Synch.h:62
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
enum GENAPI_NAMESPACE::_EYesNo EYesNo
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode