Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
UnitsParser.hpp
1// Copyright 2024 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
19#ifndef _FASTDDS_UTILS_UNITS_PARSER_HPP_
20#define _FASTDDS_UTILS_UNITS_PARSER_HPP_
21
22#include <string>
23
24namespace eprosima {
25namespace fastdds {
26namespace dds {
27namespace utils {
28
34inline void to_uppercase(
35 std::string& st) noexcept;
36
45 std::string& value,
46 std::string units);
47
48} /* namespace utils */
49} /* namespace dds */
50} /* namespace fastdds */
51} /* namespace eprosima */
52#endif /* _FASTDDS_UTILS_UNITS_PARSER_HPP_ */
uint32_t parse_value_and_units(std::string &value, std::string units)
Converts a numeric value with units to bytes.
void to_uppercase(std::string &st) noexcept
Converts the string to uppercase.
eProsima namespace.
Definition LibrarySettingsAttributes.h:23