Gazebo Physics

API Reference

7.4.0
DataStatusMask.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef GZ_PHYSICS_DATASTATUSMASK_HH_
19 #define GZ_PHYSICS_DATASTATUSMASK_HH_
20 
22 
23 namespace gz
24 {
25  namespace physics
26  {
33  struct GZ_PHYSICS_VISIBLE DataStatusMask
34  {
37  enum Condition
38  {
40  MUST = 0,
44  EITHER
45  };
46 
50  public: Condition exist;
51 
54  public: Condition queried;
55 
67 
73  public: DataStatusMask(const Condition _e = EITHER,
74  const Condition _q = EITHER,
75  const Condition _r = EITHER);
76 
85  public: static bool ConditionSatisfied(
86  const DataStatusMask::Condition _condition,
87  const bool _value);
88 
93  public: bool Satisfied(const CompositeData::DataStatus &_status) const;
94  };
95  }
96 }
97 
98 
99 #endif