CodeDumper.hpp
Go to the documentation of this file.
1 /*
2  * Original work Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
3  * Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/PlayRho
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any damages
7  * arising from the use of this software.
8  * Permission is granted to anyone to use this software for any purpose,
9  * including commercial applications, and to alter it and redistribute it
10  * freely, subject to the following restrictions:
11  * 1. The origin of this software must not be misrepresented; you must not
12  * claim that you wrote the original software. If you use this software
13  * in a product, an acknowledgment in the product documentation would be
14  * appreciated but is not required.
15  * 2. Altered source versions must be plainly marked as such, and must not be
16  * misrepresented as being the original software.
17  * 3. This notice may not be removed or altered from any source distribution.
18  */
19 
20 #ifndef PLAYRHO_COMMON_CODEDUMPER_HPP
21 #define PLAYRHO_COMMON_CODEDUMPER_HPP
22 
24 
25 namespace playrho {
26 namespace d2 {
27 
28  class World;
29  class Body;
30  class Joint;
31  class Fixture;
32  class DistanceJoint;
33  class FrictionJoint;
34  class GearJoint;
35  class MotorJoint;
36  class TargetJoint;
37  class PrismaticJoint;
38  class PulleyJoint;
39  class RevoluteJoint;
40  class RopeJoint;
41  class WeldJoint;
42  class WheelJoint;
43 
46  void Dump(const World& world);
47 
49  void Dump(const Body& body, std::size_t bodyIndex);
50 
52  void Dump(const Joint& joint, std::size_t index);
53 
55  void Dump(const Fixture& fixture, std::size_t bodyIndex);
56 
58  void Dump(const DistanceJoint& joint, std::size_t index);
59 
61  void Dump(const FrictionJoint& joint, std::size_t index);
62 
64  void Dump(const GearJoint& joint, std::size_t index);
65 
67  void Dump(const MotorJoint& joint, std::size_t index);
68 
70  void Dump(const TargetJoint& joint, std::size_t index);
71 
73  void Dump(const PrismaticJoint& joint, std::size_t index);
74 
76  void Dump(const PulleyJoint& joint, std::size_t index);
77 
79  void Dump(const RevoluteJoint& joint, std::size_t index);
80 
82  void Dump(const RopeJoint& joint, std::size_t index);
83 
85  void Dump(const WeldJoint& joint, std::size_t index);
86 
88  void Dump(const WheelJoint& joint, std::size_t index);
89 
90 } // namespace d2
91 } // namespace playrho
92 
93 #endif // PLAYRHO_COMMON_CODEDUMPER_HPP