JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
JSONInterface.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 13/03/2019.
3 //
4 
5 #ifndef JODA_JSONINTERFACE_H
6 #define JODA_JSONINTERFACE_H
7 
8 #include <joda/misc/RJFwd.h>
10 #include <memory>
11 #include "CursesFWD.h"
12 
13 namespace joda::cli {
18  public:
22  explicit JSONInterface();
23 
27  virtual ~JSONInterface();
28 
34  void showJSON(const std::shared_ptr<JSONStorage>& store, size_t index);
35 
36  private:
37  void browse();
38  WINDOW* jsonwin{};
39  WINDOW* bg{};
40 
41  int y = 0;
42  int maxX = 0;
43  int maxY = 0;
44 
45  void createWindows();
46  void refreshAll();
47  void destroyWindows();
48  void destroyWindow(WINDOW* local_win);
49  static std::wstring getWString(std::string& str);
50 };
51 } // namespace joda::cli
52 
53 #endif // JODA_JSONINTERFACE_H
Definition: JSONInterface.h:17
virtual ~JSONInterface()
Definition: JSONInterface.cpp:16
JSONInterface()
Definition: JSONInterface.cpp:14
void showJSON(const std::shared_ptr< JSONStorage > &store, size_t index)
Definition: JSONInterface.cpp:75
Definition: CLI.h:19