Skip to content

pylon/EventGrabber.h#

Low Level API: Definition of IEventGrabber interface.

Namespaces#

Name
Pylon
Contains definitions of pylon types.

Classes#

Name
interface Pylon::IEventGrabber
Low Level API: Interface of an object receiving asynchronous events.

Source code#

//-----------------------------------------------------------------------------
//  Basler pylon SDK
//  Copyright (c) 2006-2022 Basler AG
//  http://www.baslerweb.com
//  Author:  Hartmut Nebelung, AH
//-----------------------------------------------------------------------------
#ifndef __IEVENTGRABBER_H__
#define __IEVENTGRABBER_H__

#if _MSC_VER > 1000
#pragma once
#endif //_MSC_VER > 1000

#include <pylon/Platform.h>

#ifdef _MSC_VER
#   pragma pack(push, PYLON_PACKING)
#endif /* _MSC_VER */

#include <GenICamFwd.h>
#include <pylon/stdinclude.h>

namespace Pylon
{

    class EventResult;
    class WaitObject;

    interface PUBLIC_INTERFACE IEventGrabber
    {
        virtual void Open() = 0;
        virtual void Close() = 0;
        virtual bool IsOpen() const = 0;

        virtual bool RetrieveEvent( EventResult& ) = 0;

        virtual WaitObject& GetWaitObject() const = 0;

        virtual GenApi::INodeMap* GetNodeMap() = 0;
    };

}

#ifdef _MSC_VER
#   pragma pack(pop)
#endif /* _MSC_VER */

#endif //__IEVENTGRABBER_H__

Updated on 5 July 2022 at 15:30:01