-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathParser.hpp
32 lines (21 loc) · 943 Bytes
/
Parser.hpp
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
29
30
31
32
#ifndef ZENI_RETE_PARSER_HPP
#define ZENI_RETE_PARSER_HPP
#include "Zeni/Concurrency/Job_Queue.hpp"
#include "Internal/Linkage.hpp"
#include <memory>
#include <string_view>
namespace Zeni::Rete {
class Network;
class Parser : public std::enable_shared_from_this<Parser> {
Parser(const Parser &) = delete;
Parser & operator=(const Parser &) = delete;
protected:
Parser() = default;
public:
ZENI_RETE_LINKAGE virtual ~Parser() {}
ZENI_RETE_LINKAGE static std::shared_ptr<Parser> Create();
ZENI_RETE_LINKAGE virtual void parse_file(const std::shared_ptr<Network> network, const std::shared_ptr<Concurrency::Job_Queue> job_queue, const std::string &filename, const bool user_action) = 0;
ZENI_RETE_LINKAGE virtual void parse_string(const std::shared_ptr<Network> network, const std::shared_ptr<Concurrency::Job_Queue> job_queue, const std::string_view str, const bool user_action) = 0;
};
}
#endif