Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Sep 21, 2024
1 parent 48768e8 commit ff60459
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 2 additions & 0 deletions include/flamegpu/io/JSONRunPlanReader.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef INCLUDE_FLAMEGPU_IO_JSONRUNPLANREADER_H_
#define INCLUDE_FLAMEGPU_IO_JSONRUNPLANREADER_H_

#include <string>

#include "flamegpu/simulation/RunPlanVector.h"

namespace flamegpu {
Expand Down
6 changes: 5 additions & 1 deletion include/flamegpu/io/JSONRunPlanWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

#include <rapidjson/writer.h>

#include <memory>
#include <string>


#include "flamegpu/simulation/RunPlanVector.h"

namespace flamegpu {
Expand All @@ -27,7 +31,7 @@ class JSONRunPlanWriter {
* @param output_filepath Location on disk to export the file
* @param pretty Whether the exported JSON is "prettified" or "minified"
*/
static void save(const RunPlanVector &rpv, const std::string &output_filepath, bool pretty=true);
static void save(const RunPlanVector &rpv, const std::string &output_filepath, bool pretty = true);
};
} // namespace io
} // namespace flamegpu
Expand Down
10 changes: 5 additions & 5 deletions src/flamegpu/io/JSONRunPlanReader.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "flamegpu/io/JSONRunPlanReader.h"

#include <fstream>
#include <stack>

#include <rapidjson/stream.h>
#include <rapidjson/reader.h>
#include <rapidjson/error/en.h>

#include <fstream>
#include <stack>

#include "flamegpu/model/ModelDescription.h"

namespace flamegpu {
Expand Down Expand Up @@ -231,5 +231,5 @@ RunPlanVector JSONRunPlanReader::load(const std::string &input_filepath, const M
// Return the result
return result;
}
}
}
} // namespace io
} // namespace flamegpu
9 changes: 5 additions & 4 deletions src/flamegpu/io/JSONRunPlanWriter.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#include "flamegpu/io/JSONRunPlanWriter.h"

#include <fstream>

#include <rapidjson/writer.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>

#include <fstream>

namespace flamegpu {
namespace io {
void JSONRunPlanWriter::save(const RunPlanVector& rpv, const std::string& output_filepath, const bool pretty_print) {
Expand Down Expand Up @@ -100,5 +101,5 @@ void JSONRunPlanWriter::writeRunPlan(std::unique_ptr<GenericJSONWriter> &writer,
}
writer->EndObject();
}
}
}
} // namespace io
} // namespace flamegpu

0 comments on commit ff60459

Please sign in to comment.