Skip to content

Commit

Permalink
Refs #21239. Refactor BuiltinTopicKey_t.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Jul 10, 2024
1 parent 13c8432 commit c46e765
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 16 deletions.
21 changes: 5 additions & 16 deletions include/fastdds/dds/builtin/topic/BuiltinTopicKey.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,21 @@

/**
* @file BuiltinTopicKey.hpp
*
*/

#ifndef FASTDDS_DDS_BUILTIN_TOPIC__BUILTINTOPICKEY_HPP
#define FASTDDS_DDS_BUILTIN_TOPIC__BUILTINTOPICKEY_HPP

#include <stdint.h>
#include <fastdds/rtps/builtin/data/BuiltinTopicKey.hpp>

namespace eprosima {
namespace fastdds {
namespace dds {
namespace builtin {

// following API definition:
// #define BUILTIN_TOPIC_KEY_TYPE_NATIVE uint32_t
using BuiltinTopicKey_t = rtps::BuiltinTopicKey_t;

struct BuiltinTopicKey_t
{
// BUILTIN_TOPIC_KEY_TYPE_NATIVE = long type
//!Value
uint32_t value[3];
};

} // builtin
} // dds
} // fastdds
} // eprosima
} // namespace dds
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_DDS_BUILTIN_TOPIC__BUILTINTOPICKEY_HPP
38 changes: 38 additions & 0 deletions include/fastdds/rtps/builtin/data/BuiltinTopicKey.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
* @file BuiltinTopicKey.hpp
*
*/

#ifndef FASTDDS_RTPS_BUILTIN_DATA__BUILTINTOPICKEY_HPP
#define FASTDDS_RTPS_BUILTIN_DATA__BUILTINTOPICKEY_HPP

#include <cstdint>

namespace eprosima {
namespace fastdds {
namespace rtps {

struct BuiltinTopicKey_t
{
uint32_t value[3];
};

} // namespace rtps
} // namespace fastdds
} // namespace eprosima

#endif // FASTDDS_RTPS_BUILTIN_DATA__BUILTINTOPICKEY_HPP

0 comments on commit c46e765

Please sign in to comment.