29#ifndef NOMLIB_SERIALIZERS_JSON_CONFIG_FILE_HPP
30#define NOMLIB_SERIALIZERS_JSON_CONFIG_FILE_HPP
34#include "nomlib/config.hpp"
35#include "nomlib/serializers/IConfigFile.hpp"
49 typedef self_type* raw_ptr;
50 typedef std::unique_ptr<self_type> unique_ptr;
51 typedef std::shared_ptr<self_type> shared_ptr;
IConfigFile(void)
Default constructor.
Abstract interface for loading nom::Value objects.
Abstract interface for saving nom::Value objects.
bool load(void)
Re-implements IConfigFile::load.
~JsonConfigFile(void)
Destructor.
std::unique_ptr< IValueSerializer > serializer_
Object pointer to an object deriving from nom::IValueSerializer.
IValueDeserializer * deserializer(void) const
Re-implements IConfigFile::deserializer.
void set_deserializer(IValueDeserializer *fp)
Set the configuration loader.
void set_serializer(IValueSerializer *fp)
Set the configuration saver.
bool save(void)
Re-implements IConfigFile::save.
std::unique_ptr< IValueDeserializer > deserializer_
Object pointer to an object deriving from nom::IValueDeserializer.
bool initialize(void)
Internal helper method for initializing the object state.
bool flush(void)
Re-implements IConfigFile::flush.
JsonConfigFile(void)
Default constructor; initialize the loader and saver interfaces necessary for JSON I/O.
IValueSerializer * serializer(void) const
Re-implements IConfigFile::serializer.