PortWriteList.h
Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //  (c) 2009 by Basler Vision Technologies
00003 //  Section: Vision Components
00004 //  Project: GenApi
00005 //  Author:  Fritz Dierks
00006 //  $Header$
00007 //
00008 //  License: This file is published under the license of the EMVA GenICam  Standard Group.
00009 //  A text file describing the legal terms is included in  your installation as 'GenICam_license.pdf'.
00010 //  If for some reason you are missing  this file please contact the EMVA or visit the website
00011 //  (http://www.genicam.org) for a full copy.
00012 //
00013 //  THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
00014 //  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00015 //  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00016 //  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD  GROUP
00017 //  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  SPECIAL,
00018 //  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  LIMITED TO,
00019 //  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  DATA, OR PROFITS;
00020 //  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY  THEORY OF LIABILITY,
00021 //  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE)
00022 //  ARISING IN ANY WAY OUT OF THE USE  OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00023 //  POSSIBILITY OF SUCH DAMAGE.
00024 //-----------------------------------------------------------------------------
00031 #ifndef GENAPI_PORTWRITELIST_H
00032 #define GENAPI_PORTWRITELIST_H
00033 
00034 #include <GenApi/IPortRecorder.h>
00035 #include <list>
00036 
00037 #ifdef _MSC_VER
00038 #   pragma warning ( push )
00039 #   pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
00040 #endif
00041 
00042 namespace GENAPI_NAMESPACE
00043 {
00044 
00046     class GENAPI_DECL CPortWriteList : public IPortWriteList
00047     {
00048     public:
00050         CPortWriteList();
00051 
00053         ~CPortWriteList();
00054 
00055         /*---------------------------------------------------------------*/
00056         // IPortWriteList
00057         /*---------------------------------------------------------------*/
00058 
00060         virtual void Write(const void *pBuffer, int64_t Address, int64_t Length);
00061 
00063         virtual void Replay(IPort* pPort);
00064 
00066         // Default = -1
00067         virtual void SetCookie(const int64_t Value);
00068 
00070         virtual int64_t GetCookie();
00071 
00072     protected:
00074         typedef struct
00075         {
00076             int64_t Address;
00077             int64_t Length;
00078             char *pData;
00079         } WriteCommand_t;
00080 
00082         std::list<WriteCommand_t> *m_pWriteCommands;
00083 
00085         int64_t m_Cookie;
00086     };
00087 
00088 }
00089 
00090 #ifdef _MSC_VER
00091 #   pragma warning ( pop )
00092 #endif
00093 
00094 #endif // ifndef GENAPI_PORTWRITELIST_H


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:47