Cthulhu  0.2.10
Cthulhu compiler collection
compile.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-3.0-only
2 #pragma once
3 
5 
7 
8 typedef struct logger_t logger_t;
9 typedef struct support_t support_t;
10 typedef struct loader_t loader_t;
11 
12 namespace ed
13 {
14  class Broker
15  {
16  public:
17  Broker(loader_t *loader, const char *name);
18 
19  // run state
20  std::string name;
21 
22  // api objects
23  bool setup = false;
24  broker_t *broker = nullptr;
25  loader_t *loader = nullptr;
26  support_t *support = nullptr;
27 
33  char *parse_source(size_t index);
34 
35  void init();
36 
41  bool check_reports() const;
42 
43  private:
44  void init_support();
45  };
46 }
broker_t * broker
Definition: compile.hpp:24
bool check_reports() const
check if there are any reports
Definition: compile.cpp:87
loader_t * loader
Definition: compile.hpp:25
void init()
Definition: compile.cpp:75
bool setup
Definition: compile.hpp:23
std::string name
Definition: compile.hpp:20
Broker(loader_t *loader, const char *name)
Definition: compile.cpp:32
support_t * support
Definition: compile.hpp:26
char * parse_source(size_t index)
parse a source file
Definition: compile.cpp:43
Definition: compile.hpp:13
Definition: common.h:8
a logging sink
Definition: notify.c:14