IBase.h
Go to the documentation of this file.
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 //-----------------------------------------------------------------------------
32 #ifndef GENAPI_IBASE_H
33 #define GENAPI_IBASE_H
34 
35 #include <GenApi/GenApiDll.h>
36 #include <GenApi/Types.h>
37 #include <GenApi/Reference.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  // IBase interface
48  //*************************************************************
49 
54  interface GENAPI_DECL_ABSTRACT IBase
55  {
57  virtual EAccessMode GetAccessMode() const = 0;
58 
60  virtual ~IBase() = 0;
61  };
62 
63  // Implementation required for Windows only.
64  // Note: the C++ standard >= 11 prohibit pure virtual destructors with a function body
65  // in the declaration. Consequently gcc 4.0 and newer reject an inline implementation
66  // in the class.
67  inline IBase::~IBase()
68  {
69  // do nothing
70  }
71 
72  //*************************************************************
73  // CBaseRef class
74  //*************************************************************
75 
76 #ifndef DOXYGEN_IGNORE
77 
83  template <class T, class I=T>
84  class CBaseRefT : public CReferenceT<T, I>
85  {
87 
88  public:
89  /*--------------------------------------------------------*/
90  // IBase
91  /*--------------------------------------------------------*/
92 
94  virtual EAccessMode GetAccessMode() const
95  {
96  if(ref::m_Ptr)
97  return ref::m_Ptr->GetAccessMode();
98  else
99  return NI;
100  }
101 
102  };
103 
107 
108 #endif
109 
110 }
111 #ifdef _MSC_VER
112 # pragma warning ( pop )
113 #endif
114 
115 #endif // ifndef GENAPI_IBASE_H
virtual EAccessMode GetAccessMode() const
Get the access mode of the node.
Definition: IBase.h:94
Common types used in the public GenApi interface.
Definition of template CReference.
interface GENAPI_DECL_ABSTRACT IBase
Base interface common to all nodes.
Definition: IBase.h:55
Not implemented.
Definition: Types.h:56
virtual ~IBase()=0
Virtual destructor enforcing virtual destructor on all derived classes.
Definition: IBase.h:67
Reference to an IBase derived pointer.
Definition: Reference.h:81
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
CBaseRefT< IBase > CBaseRef
Reference to an IBase pointer.
Definition: IBase.h:106
declspec&#39;s to be used for GenApi Windows dll
Part of the generic device API.
Definition: Autovector.h:48
CReferenceT< T, I > ref
Definition: IBase.h:86


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54