IChunkPort.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //-----------------------------------------------------------------------------
  2. // (c) 2006 by Basler Vision Technologies
  3. // Section: Vision Components
  4. // Project: GenApi
  5. // Author: Fritz Dierks
  6. // $Header$
  7. //
  8. // License: This file is published under the license of the EMVA GenICam Standard Group.
  9. // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
  10. // If for some reason you are missing this file please contact the EMVA or visit the website
  11. // (http://www.genicam.org) for a full copy.
  12. //
  13. // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
  14. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  15. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
  17. // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  20. // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  21. // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  22. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  23. // POSSIBILITY OF SUCH DAMAGE.
  24. //-----------------------------------------------------------------------------
  25. /*!
  26. \file
  27. \brief Definition of interface IChunkPort
  28. \ingroup GenApi_PublicInterface
  29. */
  30. #ifndef GENAPI_ICHUNKPORT_H
  31. #define GENAPI_ICHUNKPORT_H
  32. #include <Base/GCBase.h>
  33. #include <GenApi/GenApiDll.h>
  34. #include <GenApi/Types.h>
  35. #include <GenApi/IPort.h>
  36. #pragma warning ( push )
  37. #pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
  38. namespace GENAPI_NAMESPACE
  39. {
  40. //*************************************************************
  41. // IChunkPort interface
  42. //*************************************************************
  43. //! Address of a int64_t pseudo register containing the base address of the chunk (MAX_INT64)
  44. # define CHUNK_BASE_ADDRESS_REGISTER GC_INT64_MAX
  45. //! Length of the CHUNK_BASE_ADDRESS_REGISTER pseudo register
  46. # define CHUNK_BASE_ADDRESS_REGISTER_LEN 8
  47. //! Address of a int64_t pseudo register containing the length of the chunk
  48. # define CHUNK_LENGTH_REGISTER (GC_INT64_MAX-15)
  49. //! Length of the CHUNK_LENGTH_REGISTER pseudo register
  50. # define CHUNK_LENGTH_REGISTER_LEN 8
  51. /**
  52. \brief Interface for ports attached to a chunk
  53. \ingroup GenApi_PublicInterface
  54. */
  55. interface GENAPI_DECL_ABSTRACT IChunkPort : virtual public IPort
  56. {
  57. //! Get the Id of the chunk the port should be attached to
  58. virtual GENICAM_NAMESPACE::gcstring GetChunkID() const = 0;
  59. //! Indicates if the chunk a adapter must hold a cached version of the chunk data
  60. virtual EYesNo CacheChunkData() const = 0;
  61. };
  62. }
  63. #pragma warning ( pop )
  64. #endif // ifndef GENAPI_ICHUNKPORT_H