Gazebo Physics

API Reference

8.0.0~pre2
CanWriteData.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_CANWRITEDATA_HH_
19#define GZ_PHYSICS_CANWRITEDATA_HH_
20
22
23namespace gz
24{
25 namespace physics
26 {
31 struct GZ_PHYSICS_VISIBLE WriteOptions
32 {
37 public: bool skipMissingData;
38
42
48 public: explicit WriteOptions(const bool _skipMissing = false,
49 const bool _onlyUnqueried = true);
50 };
51
101 template <typename Derived, typename Specification>
103 {
108
113 public: template <typename CompositeType>
115 CompositeType &_data,
116 const WriteOptions &_options = WriteOptions()) const;
117 };
118
122 template <typename Derived, typename Specification>
124 {
129
138 public: template <typename CompositeType>
140 CompositeType &_data,
141 const WriteOptions &_options = WriteOptions()) const;
142 };
143 }
144}
145
146#include "gz/physics/detail/CanWriteData.hh"
147
148#endif