INodeMap.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 INodeMap
  28. \ingroup GenApi_PublicInterface
  29. */
  30. #ifndef GENAPI_INODEMAP_H
  31. #define GENAPI_INODEMAP_H
  32. #include <Base/GCBase.h>
  33. #include <GenApi/INode.h>
  34. #include <GenApi/IPort.h>
  35. #include <GenApi/Synch.h>
  36. #ifdef _MSC_VER
  37. # pragma warning ( push )
  38. # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
  39. #endif
  40. namespace GENAPI_NAMESPACE
  41. {
  42. //*************************************************************
  43. // INodeMap interface
  44. //*************************************************************
  45. /**
  46. \brief Interface to access the node map
  47. \ingroup GenApi_PublicInterface
  48. */
  49. interface GENAPI_DECL_ABSTRACT INodeMap
  50. {
  51. //! Retrieves all nodes in the node map
  52. virtual void GetNodes(NodeList_t &Nodes) const = 0;
  53. //! Retrieves the node from the central map by Name
  54. virtual INode* GetNode( const GENICAM_NAMESPACE::gcstring& Name) const = 0;
  55. //! Invalidates all nodes
  56. virtual void InvalidateNodes() const = 0;
  57. //! Connects a port to a port node with given name
  58. virtual bool Connect( IPort* pPort, const GENICAM_NAMESPACE::gcstring& PortName) const = 0;
  59. //! Connects a port to the standard port "Device"
  60. virtual bool Connect( IPort* pPort) const = 0;
  61. //! Get device name
  62. /*! The device name identifies a device instance, e.g. for debugging purposes.
  63. The default ist "Device". */
  64. virtual GENICAM_NAMESPACE::gcstring GetDeviceName() = 0;
  65. //! Fires nodes which have a polling time
  66. virtual void Poll( int64_t ElapsedTime ) = 0;
  67. //! Returns the lock which guards the node map
  68. virtual CLock& GetLock() const = 0;
  69. //! Get the number of nodes in the map
  70. virtual uint64_t GetNumNodes() const = 0;
  71. //! Parse all Swissknife equations
  72. virtual bool ParseSwissKnifes( GENICAM_NAMESPACE::gcstring_vector *pErrorList = NULL ) const = 0;
  73. };
  74. }
  75. #ifdef _MSC_VER
  76. # pragma warning ( pop )
  77. #endif
  78. #endif // ifndef GENAPI_INODEMAP_H