Fast RTPS  Version 2.14.3
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#include <cstdint>
24
25namespace eprosima {
26namespace fastdds {
27namespace dds {
28namespace utils {
29
35inline void to_uppercase(
36 std::string& st) noexcept;
37
46 std::string& value,
47 std::string units);
48
49} /* namespace utils */
50} /* namespace dds */
51} /* namespace fastdds */
52} /* namespace eprosima */
53#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