Category.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 //-----------------------------------------------------------------------------
31 #ifndef GENAPI_CATEGORY_H
32 #define GENAPI_CATEGORY_H
33 
34 #include "../ICategory.h"
35 #include "Node.h"
36 #include "BaseT.h"
37 #include "ValueT.h"
38 #include "NodeT.h"
39 
40 namespace GENAPI_NAMESPACE
41 {
42 
43  //*************************************************************
44  // CCategory class
45  //*************************************************************
46 
52  class CCategoryImpl : public CNodeImpl, public ICategory
53  {
54  public:
55 
57  CCategoryImpl();
58 
59  //-------------------------------------------------------------
60  // IValue implementation (partial only)
61  //-------------------------------------------------------------
62 
63  protected:
65  virtual INode* InternalGetNode();
66 
68  virtual GENICAM_NAMESPACE::gcstring InternalToString(bool /*Verify = false*/, bool /*IgnoreCache = false*/)
69  {
70  return InternalGetNode()->GetDisplayName();
71  }
72 
74  #pragma BullseyeCoverage off
75  virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring& /*ValueStr*/, bool /*Verify*/ )
76  {
77  // Categories are read-only
78  assert(false);
79  }
80  #pragma BullseyeCoverage on
81  virtual void Override(EVisibility newVisibility);
82  public:
83  //-------------------------------------------------------------
84  // ICategory implementation
85  //-------------------------------------------------------------
86 
88  virtual void GetFeatures(FeatureList_t &Features) const;
89 
90 
91  virtual void SetProperty( CProperty &Property );
92  virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const;
93 
94  virtual void FinalConstruct();
95 
97  virtual EAccessMode InternalGetAccessMode() const;
98 
101  {
102  return intfICategory;
103  }
104 
105  void SetInvalid(ESetInvalidMode simMode);
106 
108  FeatureList_t m_Features;
109  };
110 
111  class CCategory : public BaseT< ValueT< NodeT< CCategoryImpl > > >
112  {
113  };
114 
115 }
116 
117 #endif // ifndef GENAPI_CATEGORY_H
Definition of the ValueT class template.
enum GENAPI_NAMESPACE::_EVisibility EVisibility
recommended visibility of a node
virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring &, bool)
Set content of the node as string.
Definition: Category.h:75
virtual EAccessMode InternalGetAccessMode() const
Returns the current access mode of the node.
virtual void GetFeatures(FeatureList_t &Features) const
Get all features of the category (including sub-categories)
Implementation of the IBase interface.
Definition: BaseT.h:48
Definition of the NodeT class template.
void SetInvalid(ESetInvalidMode simMode)
Holds a list of features and sub-categories.
Definition: Category.h:52
virtual void Override(EVisibility newVisibility)
ICategory interface.
Definition: Types.h:199
virtual void SetProperty(CProperty &Property)
Definition of the BaseT class template.
Standard implementation for the INode and the ISelector interface.
Definition: Node.h:85
A string class which is a clone of std::string.
Definition: GCString.h:52
virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const
FeatureList_t m_Features
List of node references to features.
Definition: Category.h:108
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
virtual INode * InternalGetNode()
Get the INode interface of the node.
interface GENAPI_DECL_ABSTRACT INode
Interface common to all nodes.
Definition: INode.h:60
ESetInvalidMode
Three different modes of operation for INodePrivate::SetInvalid()
Definition: INodePrivate.h:91
virtual GENICAM_NAMESPACE::gcstring InternalToString(bool, bool)
Get display name of the node as string.
Definition: Category.h:68
virtual EInterfaceType InternalGetPrincipalInterfaceType() const
Implementation of IBase::GetPrincipalInterfaceType()
Definition: Category.h:100
interface GENAPI_DECL_ABSTRACT ICategory
Gives access to a category node.
Definition: ICategory.h:66
Part of the generic device API.
Definition: Autovector.h:48
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
typedef for interface type


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