forked from GPUOpen-Tools/gpu_performance_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutility.h
More file actions
31 lines (25 loc) · 1.15 KB
/
Copy pathutility.h
File metadata and controls
31 lines (25 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//==============================================================================
// Copyright (c) 2014-2017 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief Utility macros, constants and function declarations
//==============================================================================
#ifndef _GPA_COMMON_UTILITY_H_
#define _GPA_COMMON_UTILITY_H_
#include <string>
namespace GPAUtil
{
/// Convert a C wide character string to string
/// \param[in] pWstr Wide character string
/// \param[out] str ASCII string
void wcstringToString(const wchar_t* pWstr, std::string& str);
/// Convert a wide character string to string
/// \param[in] wstr Wide character string
/// \param[out] str ASCII string
void wstringToString(const std::wstring& wstr, std::string& str);
/// Returns the path of the curent module
/// \param[out] currentModulePath path of the module from where it was loaded
/// \return true upon successful operation otherwise false
bool GetCurrentModulePath(std::string& currentModulePath);
} // namespace GPAUtil
#endif // _GPA_COMMON_UTILITY_H_