16 #ifndef INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_ 17 #define INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_ 21 #include "nn/nlib/Swap.h" 33 ResolvePath(
size_t* count,
char* native,
size_t n, const
char* uri_path) const
NLIB_NOEXCEPT;
36 ResolvePath(
size_t* count,
char (&native)[N], const
char* uri_path) const
NLIB_NOEXCEPT {
37 return ResolvePath(count, native, N, uri_path);
39 std::pair<errno_t, size_t>
42 errno_t e = ResolvePath(&count, native, n, uri_path);
43 return std::make_pair(e, count);
46 std::pair<errno_t, size_t>
49 errno_t e = ResolvePath(&count, native, N, uri_path);
50 return std::make_pair(e, count);
54 struct NativePathMapperPrivate;
55 NativePathMapperPrivate* prv_;
60 #ifndef __cpp_rvalue_references 63 #endif // INCLUDE_NN_NLIB_NATIVEPATHMAPPER_H_ #define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
TypeName で指定されたクラスのコピーコンストラクタと代入演算子を禁止します。
constexpr NativePathMapper() noexcept
デフォルトコンストラクタです。
std::pair< errno_t, size_t > ResolvePath(char(&native)[N], const char *uri_path) const noexcept
上記関数のテンプレートオーバーロードです。
~NativePathMapper() noexcept
デストラクタです。
機種依存しないURIによるパス記述からネイティブのパス文字列を得るためのクラスです。 ...
#define NLIB_NOEXCEPT
環境に合わせてnoexcept 又は同等の定義がされます。
#define NLIB_CEXPR
利用可能であればconstexprが定義されます。そうでない場合は空文字列です。
#define NLIB_FINAL
利用可能であればfinalが定義されます。そうでない場合は空文字列です。
std::pair< errno_t, size_t > ResolvePath(char *native, size_t n, const char *uri_path) const noexcept
エラー値と書き込まれた文字列のバイト数のペアを返します。