yum-mirror/VkFFT
git clone https://git.yummers.dev/yum-mirror/VkFFT
ba7001c
v1.3.4
1//------------------------------------------------------------------------------------------------------------------------------------------------------------- 2// 3// Foundation/NSURL.hpp 4// 5// Copyright 2020-2021 Apple Inc. 6// 7// Licensed under the Apache License, Version 2.0 (the "License"); 8// you may not use this file except in compliance with the License. 9// You may obtain a copy of the License at 10// 11// http://www.apache.org/licenses/LICENSE-2.0 12// 13// Unless required by applicable law or agreed to in writing, software 14// distributed under the License is distributed on an "AS IS" BASIS, 15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16// See the License for the specific language governing permissions and 17// limitations under the License. 18// 19//------------------------------------------------------------------------------------------------------------------------------------------------------------- 20 21#pragma once 22 23//------------------------------------------------------------------------------------------------------------------------------------------------------------- 24 25#include "NSDefines.hpp" 26#include "NSObject.hpp" 27#include "NSPrivate.hpp" 28#include "NSTypes.hpp" 29 30//------------------------------------------------------------------------------------------------------------------------------------------------------------- 31 32namespace NS 33{ 34class URL : public Copying < URL > 35{ 36public : 37static URL * fileURLWithPath ( const class String * pPath ) ; 38 39static URL * alloc () ; 40URL * init () ; 41URL * init ( const class String * pString ) ; 42URL * initFileURLWithPath ( const class String * pPath ) ; 43 44const char * fileSystemRepresentation () const ; 45} ; 46} 47 48//------------------------------------------------------------------------------------------------------------------------------------------------------------- 49 50_NS_INLINE NS :: URL * NS :: URL :: fileURLWithPath ( const String * pPath ) 51{ 52return Object :: sendMessage < URL *> ( _NS_PRIVATE_CLS ( NSURL ) , _NS_PRIVATE_SEL ( fileURLWithPath_ ) , pPath ) ; 53} 54 55//------------------------------------------------------------------------------------------------------------------------------------------------------------- 56 57_NS_INLINE NS :: URL * NS :: URL :: alloc () 58{ 59return Object :: alloc < URL > ( _NS_PRIVATE_CLS ( NSURL )) ; 60} 61 62//------------------------------------------------------------------------------------------------------------------------------------------------------------- 63 64_NS_INLINE NS :: URL * NS :: URL :: init () 65{ 66return Object :: init < URL > () ; 67} 68 69//------------------------------------------------------------------------------------------------------------------------------------------------------------- 70 71_NS_INLINE NS :: URL * NS :: URL :: init ( const String * pString ) 72{ 73return Object :: sendMessage < URL *> ( this , _NS_PRIVATE_SEL ( initWithString_ ) , pString ) ; 74} 75 76//------------------------------------------------------------------------------------------------------------------------------------------------------------- 77 78_NS_INLINE NS :: URL * NS :: URL :: initFileURLWithPath ( const String * pPath ) 79{ 80return Object :: sendMessage < URL *> ( this , _NS_PRIVATE_SEL ( initFileURLWithPath_ ) , pPath ) ; 81} 82 83//------------------------------------------------------------------------------------------------------------------------------------------------------------- 84 85_NS_INLINE const char * NS :: URL :: fileSystemRepresentation () const 86{ 87return Object :: sendMessage < const char *> ( this , _NS_PRIVATE_SEL ( fileSystemRepresentation )) ; 88} 89 90//-------------------------------------------------------------------------------------------------------------------------------------------------------------