29#ifndef NOMLIB_SERIALIZERS_SEARCH_PATH_HPP
30#define NOMLIB_SERIALIZERS_SEARCH_PATH_HPP
36#include "nomlib/config.hpp"
51 typedef self_type* raw_ptr;
52 typedef std::unique_ptr<self_type> unique_ptr;
53 typedef std::shared_ptr<self_type> shared_ptr;
77 bool load_file(
const std::string& filename,
const std::string& node =
"resources" );
83 std::unique_ptr<IValueDeserializer>
fp_;
Abstract interface for loading nom::Value objects.
const std::string & path()
Get the resolved path.
std::string path_
The resolved path.
std::vector< std::string > search_prefix_
List of path prefixes to scan through with the given path.
bool load_file(const std::string &filename, const std::string &node="resources")
Parse a file into memory.
SearchPath()
Default constructor; initialize the parser to NULL.
std::unique_ptr< IValueDeserializer > fp_
Parser object to use.
void set_deserializer(std::unique_ptr< IValueDeserializer > fp)
Set a custom parser.