28 return std::make_shared<JSONParser>();
30 return std::make_shared<YAMLParser>();
32 return std::make_shared<LhaParser>();
34 throw std::invalid_argument(
"Unknown parser type");
Abstract interface for (de)serializing data as DBNode trees.
Lightweight JSON parser/serializer for DBNode trees.
Parser for LHA / FLHA-style files into LhaBlock structures and DBNode trees.
Lightweight YAML parser/serializer for DBNode trees.
Factory for creating IParser instances.
static std::shared_ptr< IParser > createParser(Type type)
Creates a parser instance of the specified type.