aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/deal_parser.h
blob: 1394f2503f301d0e87bfeb549fa12f5a514c6107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Created by thecharlesblake on 10/21/17.
//

#ifndef SOLVITAIRE_DEAL_PARSER_H
#define SOLVITAIRE_DEAL_PARSER_H

#include <vector>

#include <boost/optional.hpp>
#include <rapidjson/document.h>
#include <rapidjson/schema.h>

#include "game/card.h"
#include "game/sol_rules.h"
#include "game/game_state.h"

class deal_parser {
public:
    explicit deal_parser(const sol_rules& rules);
    game_state parse(const std::string&) const;
private:
    const sol_rules& rules;

    static rapidjson::Document read_file(const std::string&);
};

#endif //SOLVITAIRE_DEAL_PARSER_H