[C++] Refactor to conform to Google C++ style guide (#5608)
[platform/upstream/flatbuffers.git] / tests / native_type_test_impl.h
1 #ifndef NATIVE_TYPE_TEST_IMPL_H
2 #define NATIVE_TYPE_TEST_IMPL_H
3
4 namespace Native {
5 struct Vector3D {
6   float x;
7   float y;
8   float z;
9
10   Vector3D() {
11     x = 0;
12     y = 0;
13     z = 0;
14   };
15   Vector3D(float _x, float _y, float _z) {
16     this->x = _x;
17     this->y = _y;
18     this->z = _z;
19   }
20 };
21 }  // namespace Native
22
23 namespace Geometry {
24 struct Vector3D;
25 }
26
27 namespace flatbuffers {
28 Geometry::Vector3D Pack(const Native::Vector3D &obj);
29 const Native::Vector3D UnPack(const Geometry::Vector3D &obj);
30 }  // namespace flatbuffers
31
32 #endif  // VECTOR3D_PACK_H