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); }
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); }
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); }
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); }
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); }
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; }
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 }
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); } }
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; }
VolumeDescription::VolumeDescription() { Data = IntPtr( nullptr ); NumVoxelsX = -1; NumVoxelsY = -1; NumVoxelsZ = -1; DxgiFormat = SlimDX::DXGI::Format::Unknown; NumBytesPerVoxel = -1; IsSigned = false; }
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; }
IntPtr NAMESPACE_OSGEO_GEOMETRY::IRingAbstractImp::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
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_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); }
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvPropertyMappingDefinition::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyDefinitionCollection::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
#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()));
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); }
IntPtr NAMESPACE_OSGEO_FDO_EXPRESSION::IExpressionProcessorImp::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
#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;
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_FILTER::ComparisonCondition::ComparisonCondition() : SearchCondition(IntPtr::Zero, false) { EXCEPTION_HANDLER(Attach(IntPtr(FdoComparisonCondition::Create()), true)) }
IntPtr NAMESPACE_OSGEO_FDO_COMMANDS_DATASTORE::ICreateDataStoreImp::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
IntPtr NAMESPACE_OSGEO_FDO_FILTER::ComparisonCondition::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
IntPtr NAMESPACE_OSGEO_GEOMETRY::IMultiPolygonImp::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
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)); }
AutomationControl::AutomationControl(const HWND windowHandle) { _control = AutomationElement::FromHandle(IntPtr(windowHandle)); }
GCHandle getHandleFromJSObjectRef(JSObjectRef object) { void * ptr = JSObjectGetPrivate(object); return GCHandle::FromIntPtr(IntPtr(ptr)); }
IntPtr NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE::OvReadOnlyClassCollection::GetDisposableObject() { return IntPtr(static_cast<FdoIDisposable*>(GetImpObj())); }
#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()));