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)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
constexpr NativePathMapper() noexcept
Instantiates the object with default parameters (default constructor).
std::pair< errno_t, size_t > ResolvePath(char(&native)[N], const char *uri_path) const noexcept
A template overload of the above function.
~NativePathMapper() noexcept
Destructor.
The class for getting the native path string from the URI path notation that is not machine-dependent...
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_CEXPR
Defines constexpr if it is available for use. If not, holds an empty string.
A file that contains the configuration information for each development environment.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
std::pair< errno_t, size_t > ResolvePath(char *native, size_t n, const char *uri_path) const noexcept
Returns a pair of the error value and the number of bytes in the written string.