void InteriorsExplorerCLIMethods::Dismiss(System::IntPtr nativeObjectPtr) { InteriorsExplorer::View::InteriorsExplorerView* view = reinterpret_cast<InteriorsExplorer::View::InteriorsExplorerView*>(nativeObjectPtr.ToPointer()); view->Dismiss(); }
NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::IOvPropertyMappingDefinition^ NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::ObjectFactory::CreateIOvPropertyMappingDefinition(System::IntPtr ptr, System::Boolean autoDispose) { if (ptr == IntPtr::Zero) return nullptr; FdoSqlServerOvPropertyMappingDefinition* p = (FdoSqlServerOvPropertyMappingDefinition*)ptr.ToPointer(); NAMESPACE_OSGEO_RUNTIME::Disposable^ wrap; // Note: // Here we need keep dynamic_cast to decide the real type of "ptr" if(wrap = CHECK<FdoSqlServerOvPropertyMappingClass, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingClass>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingClass^>(wrap); if(wrap = CHECK<FdoSqlServerOvPropertyMappingConcrete, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingConcrete>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingConcrete^>(wrap); if(wrap = CHECK<FdoSqlServerOvPropertyMappingRelation, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingRelation>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingRelation^>(wrap); if(wrap = CHECK<FdoSqlServerOvPropertyMappingSingle, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingSingle>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingSingle^>(wrap); if(wrap = CHECK<FdoSqlServerOvPropertyMappingDefinition, NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingDefinition>(p, autoDispose)) return static_cast<NAMESPACE_OSGEO_FDO_PROVIDERS_RDBMS_OVERRIDE_SQLSERVERSPATIAL::OvPropertyMappingDefinition^>(wrap); return nullptr; }
void InteriorsExplorerCLIMethods::SelectFloor(System::IntPtr nativeObjectPtr, int index) { InteriorsExplorer::View::InteriorsExplorerView* view = reinterpret_cast<InteriorsExplorer::View::InteriorsExplorerView*>(nativeObjectPtr.ToPointer()); view->SelectFloor(index); }
Flood::GeometryBuffer::GeometryBuffer(System::IntPtr native) { auto __native = (::GeometryBuffer*)native.ToPointer(); NativePtr = __native; }
void Flood::GeometryBuffer::SetIndex(System::IntPtr data, unsigned int size) { auto arg0 = (uint8*)data.ToPointer(); auto arg1 = (uint32)size; ((::GeometryBuffer*)NativePtr)->setIndex(arg0, arg1); }
Flood::RayQueryResult::RayQueryResult(System::IntPtr native) { auto __native = (::RayQueryResult*)native.ToPointer(); NativePtr = __native; }
* <*****@*****.**> and licensed under the MIT/X11 License. * For more information, see * http://geographiclib.sourceforge.net/ **********************************************************************/ #include "stdafx.h" #include "GeographicLib/Config.h" #include "GeographicLib/Utility.hpp" #include "NETGeographicLib.h" using namespace System::Runtime::InteropServices; using namespace NETGeographicLib; //***************************************************************************** std::string StringConvert::ManagedToUnmanaged( System::String^ s ) { System::IntPtr buffer = Marshal::StringToHGlobalAnsi(s); std::string output( reinterpret_cast<const char*>(buffer.ToPointer()) ); Marshal::FreeHGlobal(buffer); return output; } //***************************************************************************** System::String^ VersionInfo::GetString() { return gcnew System::String(GEOGRAPHICLIB_VERSION_STRING); } //***************************************************************************** int VersionInfo::MajorVersion() { return GEOGRAPHICLIB_VERSION_MAJOR;
// Static const char* MarshalStringToUnmanaged(System::String* inputString) { System::IntPtr strPtr = System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(inputString); return (const char*)strPtr.ToPointer(); }
void Flood::GeometryBuffer::Add(System::IntPtr data, unsigned int size) { auto arg0 = (::uint8*)data.ToPointer(); auto arg1 = (::uint32)(::uint32_t)size; ((::GeometryBuffer*)NativePtr)->add(arg0, arg1); }
CLROBS::Texture::Texture(System::IntPtr texture) { this->texture = (::Texture *)(texture.ToPointer()); }
CppSharp::Parser::ParserOptions::ParserOptions(System::IntPtr native) { auto __native = (::CppSharp::CppParser::ParserOptions*)native.ToPointer(); NativePtr = __native; }
void CLROBS::Texture::SetImage(System::IntPtr data, GSImageFormat imageFormat, unsigned int pitch) { texture->SetImage(data.ToPointer(), static_cast<::GSImageFormat>(imageFormat), pitch); }
#include "stdafx.h" #include "Marshaling.h" Marsh::Marsh(void) { } Marsh::~Marsh(void) { } char* Marsh::Str2Char(System::String^Str){ System::IntPtr ptr = System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(Str); char * Chars = (char*)ptr.ToPointer(); return Chars; }; System::String^ Marsh::Char2Str(const char* in){ std::string str = in; System::String^ Str = gcnew System::String(str.c_str()); return Str; }; System::String^ Marsh::s2S(std::string str){ System::String^ Str = gcnew System::String(str.c_str()); return Str; }; std::string Marsh::S2s(System::String^Str) { return (Marsh::Str2Char(Str)); };
CppSharp::Parser::SourceLocation^ CppSharp::Parser::SourceLocation::__CreateInstance(::System::IntPtr native) { return gcnew ::CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*) native.ToPointer()); }
CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::ParserTargetInfo::__CreateInstance(::System::IntPtr native) { return gcnew ::CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*) native.ToPointer()); }
CppSharp::Parser::ParserOptions^ CppSharp::Parser::ParserOptions::__CreateInstance(::System::IntPtr native, bool __ownsNativeInstance) { ::CppSharp::Parser::ParserOptions^ result = gcnew ::CppSharp::Parser::ParserOptions((::CppSharp::CppParser::ParserOptions*) native.ToPointer()); result->__ownsNativeInstance = __ownsNativeInstance; return result; }
CppSharp::Parser::CppParserOptions^ CppSharp::Parser::CppParserOptions::__CreateInstance(::System::IntPtr native) { return gcnew ::CppSharp::Parser::CppParserOptions((::CppSharp::CppParser::CppParserOptions*) native.ToPointer()); }
Flood::Type::Type(System::IntPtr native) { NativePtr = (::Type*)native.ToPointer(); }