Fast DDS
Version 3.6.1.0
Fast DDS
Toggle main menu visibility
Loading...
Searching...
No Matches
GuardCondition.hpp
1
// Copyright 2021 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
20
#ifndef FASTDDS_DDS_CORE_CONDITION__GUARDCONDITION_HPP
21
#define FASTDDS_DDS_CORE_CONDITION__GUARDCONDITION_HPP
22
23
#include <atomic>
24
25
#include <fastdds/dds/core/condition/Condition.hpp>
26
#include <fastdds/dds/core/ReturnCode.hpp>
27
#include <fastdds/fastdds_dll.hpp>
28
29
namespace
eprosima
{
30
namespace
fastdds
{
31
namespace
dds
{
32
42
class
GuardCondition
:
public
Condition
43
{
44
public
:
45
46
FASTDDS_EXPORTED_API
GuardCondition
();
47
48
FASTDDS_EXPORTED_API
~GuardCondition
();
49
50
FASTDDS_EXPORTED_API
bool
get_trigger_value
()
const override
;
51
57
FASTDDS_EXPORTED_API
ReturnCode_t
set_trigger_value
(
58
bool
value);
59
60
private
:
61
62
std::atomic<bool> trigger_value_;
63
64
};
65
66
}
// namespace dds
67
}
// namespace fastdds
68
}
// namespace eprosima
69
70
#endif
// FASTDDS_DDS_CORE_CONDITION__GUARDCONDITION_HPP
eprosima::fastdds::dds::Condition::Condition
Condition()
eprosima::fastdds::dds::GuardCondition::set_trigger_value
FASTDDS_EXPORTED_API ReturnCode_t set_trigger_value(bool value)
Set the trigger_value.
eprosima::fastdds::dds::GuardCondition::get_trigger_value
FASTDDS_EXPORTED_API bool get_trigger_value() const override
Retrieves the trigger_value of the Condition.
eprosima::fastdds::dds::GuardCondition::~GuardCondition
FASTDDS_EXPORTED_API ~GuardCondition()
eprosima::fastdds::dds::GuardCondition::GuardCondition
FASTDDS_EXPORTED_API GuardCondition()
eprosima::fastdds::dds
Definition
BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::ReturnCode_t
int32_t ReturnCode_t
Definition
DDSReturnCode.hpp:59
eprosima::fastdds
eprosima
eProsima namespace.
include
fastdds
dds
core
condition
GuardCondition.hpp
Generated on
for