Skip to content

Commit 7298952

Browse files
committed
Add source and version to generated files
1 parent 61f02a5 commit 7298952

883 files changed

Lines changed: 2492 additions & 97 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/fbe.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef FBE_H
1010
#define FBE_H
1111

12+
#include "version.h"
13+
1214
#include "filesystem/directory.h"
1315
#include "filesystem/file.h"
1416
#include "string/string_utils.h"

include/generator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ namespace FBE {
1616
class Generator
1717
{
1818
public:
19-
Generator(const std::string& output, int indent, char space);
19+
Generator(const std::string& input, const std::string& output, int indent, char space);
2020

2121
virtual void Generate(const std::shared_ptr<Package>& package) = 0;
2222

2323
protected:
2424
CppCommon::File _file;
25+
std::string _input;
2526
std::string _output;
2627
int _cursor;
2728
int _indent;

include/generator.inl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
namespace FBE {
1010

11-
inline Generator::Generator(const std::string& output, int indent, char space)
12-
: _output(output),
11+
inline Generator::Generator(const std::string& input, const std::string& output, int indent, char space)
12+
: _input(input),
13+
_output(output),
1314
_cursor(0),
1415
_indent(indent),
1516
_space(space)

include/generator_cpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace FBE {
1616
class GeneratorCpp : public Generator
1717
{
1818
public:
19-
GeneratorCpp(const std::string& output, int indent, char space);
19+
GeneratorCpp(const std::string& input, const std::string& output, int indent, char space);
2020

2121
// Final protocol code generation
2222
bool Final() const noexcept { return _final; }

include/generator_cpp.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace FBE {
1010

11-
inline GeneratorCpp::GeneratorCpp(const std::string& output, int indent, char space)
12-
: Generator(output, indent, space), _final(false), _json(false), _sender(false)
11+
inline GeneratorCpp::GeneratorCpp(const std::string& input, const std::string& output, int indent, char space)
12+
: Generator(input, output, indent, space), _final(false), _json(false), _sender(false)
1313
{
1414
}
1515

include/generator_csharp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace FBE {
1616
class GeneratorCSharp : public Generator
1717
{
1818
public:
19-
GeneratorCSharp(const std::string& output, int indent, char space);
19+
GeneratorCSharp(const std::string& input, const std::string& output, int indent, char space);
2020

2121
// Final protocol code generation
2222
bool Final() const noexcept { return _final; }

include/generator_csharp.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace FBE {
1010

11-
inline GeneratorCSharp::GeneratorCSharp(const std::string& output, int indent, char space)
12-
: Generator(output, indent, space), _final(false), _json(false), _sender(false)
11+
inline GeneratorCSharp::GeneratorCSharp(const std::string& input, const std::string& output, int indent, char space)
12+
: Generator(input, output, indent, space), _final(false), _json(false), _sender(false)
1313
{
1414
}
1515

include/generator_java.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace FBE {
1616
class GeneratorJava : public Generator
1717
{
1818
public:
19-
GeneratorJava(const std::string& output, int indent, char space);
19+
GeneratorJava(const std::string& input, const std::string& output, int indent, char space);
2020

2121
// Final protocol code generation
2222
bool Final() const noexcept { return _final; }

include/generator_java.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace FBE {
1010

11-
inline GeneratorJava::GeneratorJava(const std::string& output, int indent, char space)
12-
: Generator(output, indent, space), _final(false), _json(false), _sender(false)
11+
inline GeneratorJava::GeneratorJava(const std::string& input, const std::string& output, int indent, char space)
12+
: Generator(input, output, indent, space), _final(false), _json(false), _sender(false)
1313
{
1414
}
1515

include/generator_javascript.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace FBE {
1616
class GeneratorJavaScript : public Generator
1717
{
1818
public:
19-
GeneratorJavaScript(const std::string& output, int indent, char space);
19+
GeneratorJavaScript(const std::string& input, const std::string& output, int indent, char space);
2020

2121
// Final protocol code generation
2222
bool Final() const noexcept { return _final; }

0 commit comments

Comments
 (0)