Created
September 13, 2018 00:10
-
-
Save jean-airoldie/f564920ced116f6a780c9a3b3c567c55 to your computer and use it in GitHub Desktop.
foo_bar.fbs generated cpp code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// automatically generated by the FlatBuffers compiler, do not modify | |
#ifndef FLATBUFFERS_GENERATED_FOOBAR_FOO__BAR_H_ | |
#define FLATBUFFERS_GENERATED_FOOBAR_FOO__BAR_H_ | |
#include "flatbuffers/flatbuffers.h" | |
namespace Foo { | |
namespace Bar { | |
struct Foo; | |
} // namespace Bar | |
} // namespace Foo | |
namespace Foo_Bar { | |
struct Foo; | |
} // namespace Foo_Bar | |
namespace Foo__Bar { | |
struct Foo; | |
} // namespace Foo__Bar | |
namespace Foo { | |
namespace Bar { | |
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Foo FLATBUFFERS_FINAL_CLASS { | |
private: | |
float bar_; | |
public: | |
Foo() { | |
memset(this, 0, sizeof(Foo)); | |
} | |
Foo(float _bar) | |
: bar_(flatbuffers::EndianScalar(_bar)) { | |
} | |
float bar() const { | |
return flatbuffers::EndianScalar(bar_); | |
} | |
}; | |
FLATBUFFERS_STRUCT_END(Foo, 4); | |
} // namespace Bar | |
} // namespace Foo | |
namespace Foo_Bar { | |
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Foo FLATBUFFERS_FINAL_CLASS { | |
private: | |
float bar_; | |
public: | |
Foo() { | |
memset(this, 0, sizeof(Foo)); | |
} | |
Foo(float _bar) | |
: bar_(flatbuffers::EndianScalar(_bar)) { | |
} | |
float bar() const { | |
return flatbuffers::EndianScalar(bar_); | |
} | |
}; | |
FLATBUFFERS_STRUCT_END(Foo, 4); | |
} // namespace Foo_Bar | |
namespace Foo__Bar { | |
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) Foo FLATBUFFERS_FINAL_CLASS { | |
private: | |
float bar_; | |
public: | |
Foo() { | |
memset(this, 0, sizeof(Foo)); | |
} | |
Foo(float _bar) | |
: bar_(flatbuffers::EndianScalar(_bar)) { | |
} | |
float bar() const { | |
return flatbuffers::EndianScalar(bar_); | |
} | |
}; | |
FLATBUFFERS_STRUCT_END(Foo, 4); | |
} // namespace Foo__Bar | |
#endif // FLATBUFFERS_GENERATED_FOOBAR_FOO__BAR_H_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment