CASM  1.1.0
A Clusters Approach to Statistical Mechanics
import.hh
Go to the documentation of this file.
1 #ifndef CASM_import
2 #define CASM_import
3 
4 #include "casm/app/APICommand.hh"
6 
7 namespace CASM {
8 /*namespace Completer {
9 
10  class ImportOption : public OptionHandlerBase {
11 
12  public:
13 
14  using OptionHandlerBase::configtype;
15  using OptionHandlerBase::configtype_opts;
16  using OptionHandlerBase::settings_path;
17  using OptionHandlerBase::input_str;
18 
19 
20  ImportOption();
21 
22  const std::vector<fs::path> &pos_vec() const;
23 
24  const fs::path &batch_path() const;
25 
26 
27  private:
28 
29  void initialize() override;
30 
31  std::vector<fs::path> m_pos_vec;
32 
33  fs::path m_batch_path;
34 
35  };
36 }*/
37 
38 class ImportCommandImplBase;
39 template <typename T>
40 class ImportCommandImpl;
41 
44 class ImportCommand : public APICommand<Completer::ImportOption> {
45  public:
47  template <typename ConfigType>
49 
50  static const std::string name;
51 
53 
55 
56  int vm_count_check() const override;
57 
58  int help() const override;
59 
60  int desc() const override;
61 
62  int run() const override;
63 
64  // -- custom --
65 
66  ImportCommandImplBase &impl() const;
67 
68  void print_names(std::ostream &sout) const;
69 
70  jsonParser input() const;
71 
72  private:
73  mutable std::unique_ptr<ImportCommandImplBase> m_impl;
74 };
75 
76 } // namespace CASM
77 
78 #endif
int run() const override
Definition: import.cc:181
std::unique_ptr< ImportCommandImplBase > m_impl
Definition: import.hh:73
void print_names(std::ostream &sout) const
Definition: import.cc:203
static const std::string name
Definition: import.hh:50
ImportCommandImplBase & impl() const
Definition: import.cc:183
int desc() const override
Definition: import.cc:179
jsonParser input() const
Definition: import.cc:211
ImportCommand(const CommandArgs &_args, Completer::ImportOption &_opt)
Definition: import.cc:160
int vm_count_check() const override
Definition: import.cc:166
int help() const override
Definition: import.cc:177
Defaults used if DataObject type doesn't matter or not given.
Definition: import.cc:61
Main CASM namespace.
Definition: APICommand.hh:8
Data structure holding basic CASM command info.