nlib
NativePathMapper.h
[詳解]
1 
2 /*---------------------------------------------------------------------------*
3 
4  Project: CrossRoad
5  Copyright (C)2012-2016 Nintendo. All rights reserved.
6 
7  These coded instructions, statements, and computer programs contain
8  proprietary information of Nintendo of America Inc. and/or Nintendo
9  Company Ltd., and are protected by Federal copyright law. They may
10  not be disclosed to third parties or copied or duplicated in any form,
11  in whole or in part, without the prior written consent of Nintendo.
12 
13  *---------------------------------------------------------------------------*/
14 
15 #pragma once
16 #ifndef INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_
17 #define INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_
18 
19 #include "nn/nlib/Config.h"
20 
21 NLIB_NAMESPACE_BEGIN
22 
24  public:
25  NativePathMapper() NLIB_NOEXCEPT : prv_(NULL) {}
27  errno_t AddMap(const char* native_prefix,
28  const char* uri_prefix) NLIB_NOEXCEPT;
29  errno_t ResolvePath(
30  size_t* count,
31  char* native,
32  size_t n,
33  const char* uri_path) const NLIB_NOEXCEPT;
34  template <size_t N>
36  size_t* count,
37  char (&native)[N],
38  const char* uri_path) const NLIB_NOEXCEPT {
39  return ResolvePath(count, native, N, uri_path);
40  }
41 
42  private:
43  struct NativePathMapperPrivate;
44  NativePathMapperPrivate* prv_;
46 };
47 
48 NLIB_NAMESPACE_END
49 
50 #endif // INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
TypeName で指定されたクラスのコピーコンストラクタと代入演算子を禁止します。
Definition: Config.h:158
NativePathMapper() noexcept
コンストラクタです。
#define NLIB_VIS_PUBLIC
関数やクラス等のシンボルをライブラリの外部に公開します。
Definition: Platform_unix.h:87
機種依存しないURIによるパス記述からネイティブのパス文字列を得るためのクラスです。 ...
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
Definition: Config.h:99
開発環境別の設定が書かれるファイルです。
errno_t ResolvePath(size_t *count, char(&native)[N], const char *uri_path) const noexcept
ResolvePath(count, native, N, uri_path) を返します。
int errno_t
intのtypedefで、戻り値としてPOSIXのエラー値を返すことを示します。
Definition: NMalloc.h:37