GenApi  3.5.1
INodeMap.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 // (c) 2006 by Basler Vision Technologies
3 // Author: Fritz Dierks
4 //
5 // License: This file is published under the license of the EMVA GenICam Standard Group.
6 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
7 // If for some reason you are missing this file please contact the EMVA or visit the website
8 // (http://www.genicam.org) for a full copy.
9 //
10 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
11 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
12 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
13 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
14 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
15 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
16 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
17 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
18 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
19 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
20 // POSSIBILITY OF SUCH DAMAGE.
21 //
22 //-----------------------------------------------------------------------------
29 #ifndef GENAPI_INODEMAP_H
30 #define GENAPI_INODEMAP_H
31 
32 #include <Base/GCBase.h>
33 #include <GenApi/INode.h>
34 #include <GenApi/IPort.h>
35 #include <GenApi/IPortStacked.h>
36 #include <GenApi/Synch.h>
38 
39 #ifdef _MSC_VER
40 # pragma warning ( push )
41 # pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
42 #endif
43 
44 namespace GENAPI_NAMESPACE
45 {
46 
47  //*************************************************************
48  // INodeMap interface
49  //*************************************************************
50 
55  GENICAM_INTERFACE GENAPI_DECL_ABSTRACT INodeMap
56  {
58  virtual void GetNodes(NodeList_t &Nodes) const = 0;
59 
61  virtual INode* GetNode( const GENICAM_NAMESPACE::gcstring& Name) const = 0;
62 
64  virtual void InvalidateNodes() const = 0;
65 
67  virtual bool Connect( IPort* pPort, const GENICAM_NAMESPACE::gcstring& PortName) const = 0;
68 
70  virtual bool Connect( IPort* pPort) const = 0;
71 
73  virtual bool Connect(IPortStacked* pPort, const GENICAM_NAMESPACE::gcstring& PortName) = 0;
74 
76  virtual bool Connect(IPortStacked* pPort) = 0;
77 
79 
82 
84  virtual void Poll( int64_t ElapsedTime ) = 0;
85 
87  virtual CLock& GetLock() const = 0;
88 
90  virtual uint64_t GetNumNodes() const = 0;
91 
93  virtual bool ParseSwissKnifes( GENICAM_NAMESPACE::gcstring_vector *pErrorList = NULL ) const = 0;
94 
96  virtual CNodeWriteConcatenator *NewNodeWriteConcatenator() const = 0;
97 
99  virtual bool ConcatenatedWrite(CNodeWriteConcatenator *, bool featureStreaming = true, GENICAM_NAMESPACE::gcstring_vector *pErrorList = NULL) = 0;
100 
103 
104  };
105 }
106 
107 #ifdef _MSC_VER
108 # pragma warning ( pop )
109 #endif
110 
111 #endif // ifndef GENAPI_INODEMAP_H
This file contains the public definition of the node write concatenator classes.
virtual void SetSuppressCallbackMode(ECallbackSuppressMode)=0
Set suppress callback mode.
virtual void Poll(int64_t ElapsedTime)=0
Fires nodes which have a polling time.
Definition of interface INode and types NodeList_t and CallbackHandleType:
virtual CNodeWriteConcatenator * NewNodeWriteConcatenator() const =0
Create a new write concatenator object.
GENICAM_INTERFACE INode
Interface common to all nodes.
Definition: ICategory.h:49
Common GenICam base include file.
virtual bool Connect(IPort *pPort, const GENICAM_NAMESPACE::gcstring &PortName) const =0
Connects a port to a port node with given name.
virtual void InvalidateNodes() const =0
Invalidates all nodes.
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPort
Interface for ports.
Definition: IPort.h:55
virtual bool ParseSwissKnifes(GENICAM_NAMESPACE::gcstring_vector *pErrorList=NULL) const =0
Parse all Swissknife equations.
virtual bool ConcatenatedWrite(CNodeWriteConcatenator *, bool featureStreaming=true, GENICAM_NAMESPACE::gcstring_vector *pErrorList=NULL)=0
Execute the transaction.
GENICAM_INTERFACE INodeMap
Interface to access the node map.
Definition: INode.h:50
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IPortStacked
Interface for ports.
Definition: IPortStacked.h:62
virtual CLock & GetLock() const =0
Returns the lock which guards the node map.
Definition of interface IPort.
A string class which is a clone of std::string.
Definition: GCString.h:50
Definition of interface IPort.
virtual GENICAM_NAMESPACE::gcstring GetDeviceName() const =0
Get a name of the device.
Definition of Lock classes.
virtual uint64_t GetNumNodes() const =0
Get the number of nodes in the map.
Definition: ChunkAdapter.h:37
enum GENAPI_NAMESPACE::_ECallbackSuppressMode ECallbackSuppressMode
virtual INode * GetNode(const GENICAM_NAMESPACE::gcstring &Name) const =0
Retrieves the node from the central map by Name.