Fast RTPS  Version 2.6.0
Fast RTPS
string_convert.hpp
1 // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
21 #ifndef FASTRTPS_UTILS_STRING_CONVERT_HPP_
22 #define FASTRTPS_UTILS_STRING_CONVERT_HPP_
23 
24 #include <string>
25 
26 #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
27 namespace eprosima {
28 namespace fastrtps {
29 
30 std::wstring wstring_from_bytes(
31  const std::string& str);
32 std::string wstring_to_bytes(
33  const std::wstring& str);
34 
35 } /* namespace fastrtps */
36 } /* namespace eprosima */
37 #endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
38 
39 #endif /* FASTRTPS_UTILS_STRING_CONVERT_HPP_ */
std::wstring wstring_from_bytes(const std::string &str)
std::string wstring_to_bytes(const std::wstring &str)
eProsima namespace.
Definition: LibrarySettingsAttributes.h:23