All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Boolean.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: Hartmut Nebelung
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_BOOLEAN_H
32 #define GENAPI_BOOLEAN_H
33 
34 #include "../IBoolean.h"
35 #include "Node.h"
36 #include "BooleanT.h"
37 #include "ValueT.h"
38 #include "BaseT.h"
39 #include "NodeT.h"
40 #include "NodeMap.h"
41 #include "PolyReference.h"
42 
43 namespace GENAPI_NAMESPACE
44 {
45 
46  //*************************************************************
47  // CBoolean class
48  //*************************************************************
49 
58  class CBooleanImpl : public IBoolean, public CNodeImpl
59  {
60  public:
62  CBooleanImpl();
63 
64 
65  protected:
66  //-------------------------------------------------------------
69 
70  // Get the access mode of the node
71  virtual EAccessMode InternalGetAccessMode() const;
72 
75  {
76  return intfIBoolean;
77  }
79 
80 
81  //-------------------------------------------------------------
84 
85 
87  virtual bool InternalIsValueCacheValid() const;
88 
90 
91  //-------------------------------------------------------------
94 
95  // Set node value
96  virtual void InternalSetValue(bool Value, bool Verify = true);
97 
98  // Get node value
99  virtual bool InternalGetValue(bool Verify = false, bool IgnoreCache = false) const;
101 
104 
105  // Get value of the node as string
106  virtual GENICAM_NAMESPACE::gcstring InternalToString(bool Verify = false, bool IgnoreCache = false);
107 
108  // Set value of the node as string
109  virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring& valueString, bool Verify = true);
111 
112  public:
113  virtual void FinalConstruct();
114 
115 
116  virtual void SetProperty( CProperty &Property );
117  virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const;
118 
119  protected:
120 
121  //-------------------------------------------------------------
122  // Member variables
123  //-------------------------------------------------------------
124 
127 
130 
133 
134  };
135 
136 
137  class CBoolean : public BaseT< ValueT< BooleanT< NodeT < CBooleanImpl> > > >
138  {
139  };
140 
141 }
142 
143 #endif // GENAPI_BOOLEAN_H
GENAPI_NAMESPACE::intfIBoolean
@ intfIBoolean
IBoolean interface.
Definition: Types.h:193
GENAPI_NAMESPACE
Lexical analyzer for CIntSwissKnife.
Definition: Destructible.h:30
GENAPI_NAMESPACE::EAccessMode
enum GENAPI_NAMESPACE::_EAccessMode EAccessMode
access mode of a node
GENAPI_NAMESPACE::CBooleanImpl::m_OnValue
int64_t m_OnValue
Value for On.
Definition: Boolean.h:129
GENAPI_NAMESPACE::CBooleanImpl::InternalFromString
virtual void InternalFromString(const GENICAM_NAMESPACE::gcstring &valueString, bool Verify=true)
GENAPI_NAMESPACE::CBooleanImpl::InternalIsValueCacheValid
virtual bool InternalIsValueCacheValid() const
Checks if the value comes from cache or is requested from another node.
GENAPI_NAMESPACE::CBooleanImpl::InternalGetPrincipalInterfaceType
virtual EInterfaceType InternalGetPrincipalInterfaceType() const
Implementation of IBase::GetPrincipalInterfaceType()
Definition: Boolean.h:74
PolyReference.h
Definition of polymorphical smart pointer.
GENAPI_NAMESPACE::CBooleanImpl::InternalGetValue
virtual bool InternalGetValue(bool Verify=false, bool IgnoreCache=false) const
GENAPI_NAMESPACE::IBoolean
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT IBoolean
Interface for Boolean properties.
Definition: IBoolean.h:61
GENAPI_NAMESPACE::CBooleanImpl::InternalSetValue
virtual void InternalSetValue(bool Value, bool Verify=true)
NodeMap.h
Declaration of CNodeMap.
GENAPI_NAMESPACE::CNodeImpl
Standard implementation for the INode and the ISelector interface.
Definition: Node.h:86
GENICAM_NAMESPACE::gcstring
A string class which is a clone of std::string.
Definition: GCString.h:52
GENAPI_NAMESPACE::CBoolean
Definition: Boolean.h:137
NodeT.h
Definition of the NodeT class template.
GENAPI_NAMESPACE::CIntegerPolyRef
A reference to an int64 which can bei either an int64 variable, or a pointer to an IInteger,...
Definition: PolyReference.h:68
GENAPI_NAMESPACE::BaseT
Implementation of the IBase interface.
Definition: BaseT.h:48
GENAPI_NAMESPACE::Verify
GENICAM_INTERFACE GENAPI_DECL_ABSTRACT bool Verify
Definition: IBoolean.h:61
GENAPI_NAMESPACE::CBooleanImpl::m_OffValue
int64_t m_OffValue
Value for Off.
Definition: Boolean.h:132
GENAPI_NAMESPACE::CBooleanImpl::m_Value
CIntegerPolyRef m_Value
Reference to vlaue.
Definition: Boolean.h:126
GENAPI_NAMESPACE::EInterfaceType
enum GENAPI_NAMESPACE::_EInterfaceType EInterfaceType
typedef for interface type
GENAPI_NAMESPACE::CBooleanImpl
IBoolean implementation.
Definition: Boolean.h:58
GENAPI_NAMESPACE::CBooleanImpl::InternalGetAccessMode
virtual EAccessMode InternalGetAccessMode() const
Get the access mode of the node.
BaseT.h
Definition of the BaseT class template.
Node.h
GENAPI_NAMESPACE::CBooleanImpl::CBooleanImpl
CBooleanImpl()
Constructor.
BooleanT.h
Definition of BooleanT class template.
int64_t
__int64 int64_t
Definition: config-win32.h:21
ValueT.h
Definition of the ValueT class template.
GENAPI_NAMESPACE::CBooleanImpl::GetProperty
virtual bool GetProperty(CNodeDataMap *pNodeDataMap, CPropertyID::EProperty_ID_t PropertyID, CNodeData::PropertyVector_t &PropertyList) const
GENAPI_NAMESPACE::CBooleanImpl::SetProperty
virtual void SetProperty(CProperty &Property)
GENAPI_NAMESPACE::CBooleanImpl::InternalToString
virtual GENICAM_NAMESPACE::gcstring InternalToString(bool Verify=false, bool IgnoreCache=false)
GENAPI_NAMESPACE::CBooleanImpl::FinalConstruct
virtual void FinalConstruct()


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11