20#include <nlohmann/json.hpp>
21using json = nlohmann::json;
63 bool guiConfig(
const char* vFilters,
const std::vector<std::string>& extensions,
size_t id,
const std::string& nameId);
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Parent class for other data loggers which manages the output filestream.
Definition FileWriter.hpp:27
std::string _path
Path to the file.
Definition FileWriter.hpp:82
FileWriter()=default
Default constructor.
FileWriter(const FileWriter &)=delete
Copy constructor.
FileType _fileType
File Type.
Definition FileWriter.hpp:88
FileType
File Type.
Definition FileWriter.hpp:31
FileWriter & operator=(FileWriter &&)=delete
Move assignment operator.
static const char * to_string(FileType type)
Converts the provided type into string.
~FileWriter()=default
Destructor.
FileWriter(FileWriter &&)=delete
Move constructor.
void deinitialize()
Deinitialize the file reader.
FileWriter & operator=(const FileWriter &)=delete
Copy assignment operator.
bool guiConfig(const char *vFilters, const std::vector< std::string > &extensions, size_t id, const std::string &nameId)
ImGui config.
std::filesystem::path getFilepath()
Returns the path of the file.
void restore(const json &j)
Restores the node from a json object.
json save() const
Saves the node into a json object.
bool initialize()
Initialize the file reader.
std::ofstream _filestream
File stream to write the file.
Definition FileWriter.hpp:85