コード例 #1
0
NAMESPACE_OSGEO_FDO_SCHEMA::ClassDefinition^ NAMESPACE_OSGEO_FDO_XML::XmlFeaturePropertyWriter::ClassDefinition::get()
{
	FdoClassDefinition* result;

	EXCEPTION_HANDLER(result = GetImpObj()->GetClassDefinition())

	return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateClassDefinition(IntPtr(result), true);
}
コード例 #2
0
NAMESPACE_OSGEO_FDO_SCHEMA::AssociationPropertyDefinition^ NAMESPACE_OSGEO_FDO_SCHEMA::NetworkFeatureClass::ParentNetworkFeatureProperty::get()
{
	FdoAssociationPropertyDefinition* result;

	EXCEPTION_HANDLER(result = GetImpObj()->GetParentNetworkFeatureProperty())

	return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateAssociationPropertyDefinition(IntPtr(result), true);
}
コード例 #3
0
NAMESPACE_OSGEO_FDO_COMMANDS_SQL::ISQLDataReader^ NAMESPACE_OSGEO_FDO_COMMANDS_SQL::ISQLCommandImp::ExecuteReader()
{
	FdoISQLDataReader* result;

	EXCEPTION_HANDLER(result = GetImpObj()->ExecuteReader())

    return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateISQLDataReader(IntPtr(result), true);
}
コード例 #4
0
NAMESPACE_OSGEO_FDO_SCHEMA::DataPropertyDefinition^ NAMESPACE_OSGEO_FDO_SCHEMA::NetworkFeatureClass::CostProperty::get()
{
	FdoDataPropertyDefinition* result;

	EXCEPTION_HANDLER(result = GetImpObj()->GetCostProperty())

	return NAMESPACE_OSGEO_FDO::ObjectFactory::CreateDataPropertyDefinition(IntPtr(result), true);
}
コード例 #5
0
NAMESPACE_OSGEO_COMMON_XML::XmlWriter^ NAMESPACE_OSGEO_FDO_XML::XmlFeaturePropertyWriter::GetXmlWriter()
{
	FdoXmlWriter* result;

	EXCEPTION_HANDLER(result = GetImpObj()->GetXmlWriter())

    return NAMESPACE_OSGEO_COMMON::ObjectFactory::CreateXmlWriter(IntPtr(result), true);
}
コード例 #6
0
    cli::array<float>^ VowpalWabbitTopicPredictionFactory::Create(vw* vw, example* ex)
    {
        if (ex == nullptr)
            throw gcnew ArgumentNullException("ex");

        auto values = gcnew cli::array<float>(vw->lda);
        Marshal::Copy(IntPtr(ex->pred.scalars.begin()), values, 0, vw->lda);

        return values;
    }
コード例 #7
0
zDBVirtualTable<_cursor>::!zDBVirtualTable()
{
	// On finalization, it's critical to release all of the GCHandles that
	// have been allocated for overloaded functions

	for(FunctionMapIterator it = m_pFuncs->begin(); it != m_pFuncs->end(); it++)
		GCHandle::FromIntPtr(IntPtr(it->second)).Free();

	delete m_pFuncs;				// Destroy the collection
	m_pFuncs = NULL;				// Reset pointer to NULL
}
コード例 #8
0
AutomationControl::AutomationControl(const FindInformation& findInformation)
{
	try {
		auto rootElement = AutomationElement::FromHandle(IntPtr(findInformation.rootWindow));
		auto finder = gcnew AutomationFinder(rootElement);
		_control = finder->Find(findInformation);
	}
	catch(Exception^ e) {
		Debug::WriteLine("AutomationControl error:  {0}", e->Message);
	}
}
コード例 #9
0
ファイル: VolumeDescription.cpp プロジェクト: 3Scan/Mojo
VolumeDescription::VolumeDescription( const Core::VolumeDescription& volumeDescription )
{
    Data             = IntPtr( volumeDescription.data );

    NumVoxelsX       = volumeDescription.numVoxels.x;
    NumVoxelsY       = volumeDescription.numVoxels.y;
    NumVoxelsZ       = volumeDescription.numVoxels.z;

    DxgiFormat       = (SlimDX::DXGI::Format)volumeDescription.dxgiFormat;
    NumBytesPerVoxel = volumeDescription.numBytesPerVoxel;
    IsSigned         = volumeDescription.isSigned;
}
コード例 #10
0
ファイル: VolumeDescription.cpp プロジェクト: 3Scan/Mojo
VolumeDescription::VolumeDescription()
{
    Data             = IntPtr( nullptr );

    NumVoxelsX       = -1;
    NumVoxelsY       = -1;
    NumVoxelsZ       = -1;

    DxgiFormat       = SlimDX::DXGI::Format::Unknown;
    NumBytesPerVoxel = -1;
    IsSigned         = false;
}
コード例 #11
0
    cli::array<int>^ VowpalWabbitMultilabelPredictionFactory::Create(vw* vw, example* ex)
    {
        CheckExample(vw, ex, prediction_type::multilabels);

        size_t length;
        uint32_t* labels;

        try
        {
            labels = VW::get_multilabel_predictions(ex, length);
        }
        CATCHRETHROW

        if (length > Int32::MaxValue)
            throw gcnew ArgumentOutOfRangeException("Multi-label predictions too large");

        auto values = gcnew cli::array<int>((int)length);

        if (length > 0)
            Marshal::Copy(IntPtr(labels), values, 0, (int)length);

		return values;
	}
コード例 #12
0
IntPtr NAMESPACE_OSGEO_GEOMETRY::IRingAbstractImp::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #13
0
NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::OvClassCollection() : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoOdbcOvClassCollection::Create()), true))
}
コード例 #14
0
NAMESPACE_OSGEO_GEOMETRY::IPolygon^ NAMESPACE_OSGEO_GEOMETRY::IMultiPolygonImp::default::get(System::Int32 index)
{
	FdoIPolygon* ret;
	EXCEPTION_HANDLER(ret = GetImpObj()->GetItem(index))
        return NAMESPACE_OSGEO_GEOMETRY::ObjectFactory::CreateIPolygon(IntPtr(ret), true);
}
コード例 #15
0
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #16
0
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #17
0
#include "stdafx.h"
#include "Rdbms\Override\RdbmsOv.h"
#include "SQLServerSpatial\SqlServerOvPropertyDefinitionCollection.h"

#include "FDO\Providers\Rdbms\Override\SQLServerSpatial\mgOvPropertyDefinitionCollection.h"
#include "FDO\Providers\Rdbms\Override\SQLServerSpatial\mgObjectFactory.h"
#include "FDO\Providers\Rdbms\Override\SQLServerSpatial\mgOvPropertyDefinition.h"

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection() : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoSqlServerOvPropertyDefinitionCollection::Create()), true))
}

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection(NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyDefinitionCollection^ baseCollection) : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoSqlServerOvPropertyDefinitionCollection::Create((nullptr == baseCollection ? nullptr : static_cast<FdoRdbmsOvPropertyDefinitionCollection*>(baseCollection->UnmanagedObject.ToPointer())))), true))
}

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_COMMON::CollectionBase(unmanaged, autoDelete)
{

}

FdoSqlServerOvPropertyDefinitionCollection* NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetImpObj()
{
	return static_cast<FdoSqlServerOvPropertyDefinitionCollection*>(UnmanagedObject.ToPointer());
}

IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
コード例 #18
0
NAMESPACE_OSGEO_GEOMETRY::IEnvelope^ NAMESPACE_OSGEO_GEOMETRY::IRingAbstractImp::Envelope::get()
{
	FdoIEnvelope *ret;
	EXCEPTION_HANDLER(ret = GetImpObj()->GetEnvelope())
	return NAMESPACE_OSGEO_GEOMETRY::ObjectFactory::CreateIEnvelope(IntPtr(ret), true);
}
コード例 #19
0
IntPtr NAMESPACE_OSGEO_FDO_EXPRESSION::IExpressionProcessorImp::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #20
0
#include "FDO\Filter\mgIFilterProcessorImp.h"
#include "FDO\mgObjectFactory.h"

NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition(IntPtr unmanaged, Boolean autoDelete) : SearchCondition(unmanaged, autoDelete)
{

}

NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition() : SearchCondition(IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoComparisonCondition::Create()), true)) 
}

NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition( NAMESPACE_OSGEO_FDO_EXPRESSION::Expression^ leftExpression, NAMESPACE_OSGEO_FDO_FILTER::ComparisonOperations operation, NAMESPACE_OSGEO_FDO_EXPRESSION::Expression^ rightExpression) : SearchCondition(IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoComparisonCondition::Create(leftExpression->GetImpObj(), static_cast<FdoComparisonOperations>(operation), rightExpression->GetImpObj())), true))
}

FdoComparisonCondition* NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::GetImpObj()
{
	return static_cast<FdoComparisonCondition*>(UnmanagedObject.ToPointer());
}

IntPtr NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}

NAMESPACE_OSGEO_FDO_FILTER::ComparisonOperations NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::Operation::get()
{
	FdoComparisonOperations unobj;
コード例 #21
0
NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::OvPropertyDefinitionCollection() : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoSqlServerOvPropertyDefinitionCollection::Create()), true))
}
コード例 #22
0
NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::ComparisonCondition() : SearchCondition(IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoComparisonCondition::Create()), true)) 
}
コード例 #23
0
IntPtr NAMESPACE_OSGEO_FDO_COMMANDS_DATASTORE::ICreateDataStoreImp::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #24
0
IntPtr NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #25
0
IntPtr NAMESPACE_OSGEO_GEOMETRY::IMultiPolygonImp::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #26
0
NAMESPACE_OSGEO_FDO_EXPRESSION::Expression^ NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::RightExpression::get()
{
	FdoExpression* result;
	EXCEPTION_HANDLER(result = GetImpObj()->GetRightExpression())
	return static_cast<NAMESPACE_OSGEO_FDO_EXPRESSION::Expression^>(ObjectFactory::CreateExpression(IntPtr(result), true));
}
コード例 #27
0
AutomationControl::AutomationControl(const HWND windowHandle)
{
	_control = AutomationElement::FromHandle(IntPtr(windowHandle));
}
コード例 #28
0
GCHandle getHandleFromJSObjectRef(JSObjectRef object)
{
	void * ptr = JSObjectGetPrivate(object);
	return GCHandle::FromIntPtr(IntPtr(ptr));
}
コード例 #29
0
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvReadOnlyClassCollection::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));
}
コード例 #30
0
#include "Rdbms\Override\RdbmsOv.h"
#include "Rdbms\Override\ODBC\OdbcOv.h"
#include "Rdbms\Override\ODBC\ODBCOvClassCollection.h"

#include "FDO\Providers\Rdbms\Override\ODBC\mgOvClassCollection.h"
#include "FDO\Providers\Rdbms\Override\ODBC\mgObjectFactory.h"
#include "FDO\Providers\Rdbms\Override\ODBC\mgOvClassDefinition.h"

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::OvClassCollection() : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoOdbcOvClassCollection::Create()), true))
}

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::OvClassCollection(NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvClassCollection^ baseCollection) : NAMESPACE_OSGEO_COMMON::CollectionBase(System::IntPtr::Zero, false)
{
	EXCEPTION_HANDLER(Attach(IntPtr(FdoOdbcOvClassCollection::Create((nullptr == baseCollection ? nullptr : static_cast<FdoRdbmsOvClassCollection*>(baseCollection->UnmanagedObject.ToPointer())))), true))
}

NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::OvClassCollection(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_COMMON::CollectionBase(unmanaged, autoDelete)
{

}

FdoOdbcOvClassCollection* NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::GetImpObj()
{
	return static_cast<FdoOdbcOvClassCollection*>(UnmanagedObject.ToPointer());
}

IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_ODBC::OvClassCollection::GetDisposableObject()
{
    return IntPtr(static_cast<FdoIDisposable*>(GetImpObj()));