nlib
NativePathMapper.h
[詳解]
1 
2 #pragma once
3 #ifndef INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_
4 #define INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_
5 
6 #include "nn/nlib/Config.h"
7 
8 NLIB_NAMESPACE_BEGIN
9 
11  public:
12  NativePathMapper() NLIB_NOEXCEPT : prv_(NULL) {}
14  errno_t AddMap(const char* native_prefix,
15  const char* uri_prefix) NLIB_NOEXCEPT;
16  errno_t ResolvePath(
17  size_t* count,
18  char* native,
19  size_t n,
20  const char* uri_path) const NLIB_NOEXCEPT;
21  template <size_t N>
23  size_t* count,
24  char (&native)[N],
25  const char* uri_path) const NLIB_NOEXCEPT {
26  return ResolvePath(count, native, N, uri_path);
27  }
28 
29  private:
30  struct NativePathMapperPrivate;
31  NativePathMapperPrivate* prv_;
33 };
34 
35 NLIB_NAMESPACE_END
36 
37 #endif // INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
TypeName で指定されたクラスのコピーコンストラクタと代入演算子を禁止します。
Definition: Config.h:145
NativePathMapper() noexcept
コンストラクタです。
#define NLIB_VIS_PUBLIC
関数やクラス等のシンボルをライブラリの外部に公開します。
Definition: Platform_unix.h:61
機種依存しないURIによるパス記述からネイティブのパス文字列を得るためのクラスです。 ...
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
Definition: Config.h:86
開発環境別の設定が書かれるファイルです。
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:24