File Integer.h¶
File List > GenApiNet > Integer.h
Go to the documentation of this file
//-----------------------------------------------------------------------------
// (c) 2007 by STEMMER IMAGING
// Author: Sascha Dorenbeck
// $Header:
//
// License: This file is published under the license of the EMVA GenICam Standard Group.
// A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'.
// If for some reason you are missing this file please contact the EMVA or visit the website
// (http://www.genicam.org) for a full copy.
//
// THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP
// OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//-----------------------------------------------------------------------------
#pragma once
#include "Node.h"
#include "Value.h"
#include "Register.h"
namespace Spinnaker{ namespace GenApi { interface IInteger; } }
namespace SpinnakerNET
{
namespace GenApi
{
#pragma region Integer Interface
public interface class IInteger
: public SpinnakerNET::GenApi::IValue
{
property __int64 Increment
{
__int64 __clrcall get(void);
}
property __int64 Max
{
__int64 __clrcall get(void);
}
property __int64 Min
{
__int64 __clrcall get(void);
}
property SpinnakerNET::GenApi::Representation Representation
{
SpinnakerNET::GenApi::Representation __clrcall get(void);
}
property __int64 Value
{
__int64 __clrcall get(void);
void __clrcall set(__int64 value);
}
};
#pragma endregion
public ref class Integer
: public Node
, public SpinnakerNET::GenApi::IInteger
{
#pragma region Ctor/Dtor
public:
__clrcall Integer(SpinnakerNET::GenApi::NodeMap ^map, IntPtr handle);
__clrcall Integer(SpinnakerNET::GenApi::INode ^obj);
__clrcall !Integer(void);
virtual __clrcall ~Integer(void);
#pragma endregion
#pragma region Node Methods
public:
virtual void __clrcall FromString(::System::String ^value);
virtual ::System::String^ __clrcall ToString(void) override;
#pragma endregion
#pragma region Integer Properties
public:
virtual property __int64 Increment
{
__int64 __clrcall get(void) sealed;
}
virtual property __int64 Max
{
__int64 __clrcall get(void) sealed;
}
virtual property __int64 Min
{
__int64 __clrcall get(void) sealed;
}
virtual property SpinnakerNET::GenApi::Representation Representation
{
SpinnakerNET::GenApi::Representation __clrcall get(void) sealed;
}
virtual property __int64 Value
{
__int64 __clrcall get(void) sealed;
void __clrcall set(__int64 value) sealed;
}
#pragma endregion
#pragma region Value Operators
public:
static operator __int64 (Integer ^obj) { return obj->Value; }
Integer ^ operator = (__int64 value) { Value = value; return this; }
#pragma endregion
#pragma region Member
private:
::Spinnaker::GenApi::IInteger * integerNodeHandle;
bool asBoolean;
#pragma endregion
};
public ref class IntReg
: public Register
, public SpinnakerNET::GenApi::IInteger
{
#pragma region Ctor/Dtor
public:
__clrcall IntReg(SpinnakerNET::GenApi::NodeMap ^map, IntPtr handle);
__clrcall IntReg(SpinnakerNET::GenApi::INode ^obj);
__clrcall !IntReg(void);
virtual __clrcall ~IntReg(void);
#pragma endregion
#pragma region Node Methods
public:
virtual void __clrcall FromString(System::String ^ value) override;
virtual ::System::String^ __clrcall ToString(void) override;
#pragma endregion
#pragma region Integer Properties
public:
virtual property __int64 Increment
{
__int64 __clrcall get(void) sealed;
}
virtual property __int64 Max
{
__int64 __clrcall get(void) sealed;
}
virtual property __int64 Min
{
__int64 __clrcall get(void) sealed;
}
virtual property SpinnakerNET::GenApi::Representation Representation
{
SpinnakerNET::GenApi::Representation __clrcall get(void) sealed;
}
virtual property __int64 Value
{
__int64 __clrcall get(void) sealed;
void __clrcall set(__int64 value) sealed;
}
#pragma endregion
#pragma region Value Operators
public:
static operator __int64 (IntReg ^obj) { return obj->Value; }
IntReg ^ operator = (__int64 value) { Value = value; return this; }
#pragma endregion
#pragma region Member
private:
::Spinnaker::GenApi::IInteger * integerNodeHandle;
bool asBoolean;
#pragma endregion
};
}
}