openPSTD  2.0
Open source simulation for sound propagation in urban environments
main.h
1 //
2 // Created by michiel on 19-1-2016.
3 //
4 
5 #ifndef OPENPSTD_MAIN_CLI_H_H
6 #define OPENPSTD_MAIN_CLI_H_H
7 
8 #include <string>
9 #include <memory>
10 #include <shared/export/Export.h>
11 
12 namespace OpenPSTD
13 {
14  namespace CLI
15  {
16  class Command
17  {
18  public:
19  virtual std::string GetName() = 0;
20 
21  virtual std::string GetDescription() = 0;
22 
23  virtual int execute(int argc, const char *argv[]) = 0;
24  };
25 
26  class CreateCommand : public Command
27  {
28  public:
29  std::string GetName() override;
30 
31  std::string GetDescription() override;
32 
33  int execute(int argc, const char *argv[]) override;
34  };
35 
36  class ListCommand : public Command
37  {
38  private:
39  void Print(const std::string &filename, bool debug);
40 
41  public:
42  std::string GetName() override;
43 
44  std::string GetDescription() override;
45 
46  int execute(int argc, const char *argv[]) override;
47  };
48 
49  class EditCommand : public Command
50  {
51  public:
52  std::string GetName() override;
53 
54  std::string GetDescription() override;
55 
56  int execute(int argc, const char *argv[]) override;
57  };
58 
59  class RunCommand : public Command
60  {
61  public:
62  std::string GetName() override;
63 
64  std::string GetDescription() override;
65 
66  int execute(int argc, const char *argv[]) override;
67  };
68 
69  class ExportCommand : public Command
70  {
71  public:
72  std::string GetName() override;
73 
74  std::string GetDescription() override;
75 
76  int execute(int argc, const char *argv[]) override;
77  };
78  }
79 }
80 #endif //OPENPSTD_MAIN_CLI_H_H
This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Definition: main.h:26
Definition: main.h:36
Definition: main.h:69
Definition: main.h:49
Definition: main.h:59
Definition: main.h:16