CASM  1.1.0
A Clusters Approach to Statistical Mechanics
update.hh
Go to the documentation of this file.
1 #ifndef CASM_update
2 #define CASM_update
3 
4 #include "casm/app/APICommand.hh"
6 
7 namespace CASM {
8 /*namespace Completer {
9 
10  class UpdateOption : 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  using OptionHandlerBase::selection_path;
19 
20  UpdateOption();
21 
22  private:
23 
24  void initialize() override;
25 
26  };
27 }*/
28 
29 class UpdateCommandImplBase;
30 template <typename T>
31 class UpdateCommandImpl;
32 
35 class UpdateCommand : public APICommand<Completer::UpdateOption> {
36  public:
38  template <typename ConfigType>
40 
41  static const std::string name;
42 
44 
46 
47  int vm_count_check() const override;
48 
49  int help() const override;
50 
51  int desc() const override;
52 
53  int run() const override;
54 
55  // -- custom --
56 
57  UpdateCommandImplBase &impl() const;
58 
59  void print_names(std::ostream &sout) const;
60 
61  jsonParser input() const;
62 
63  private:
64  mutable std::unique_ptr<UpdateCommandImplBase> m_impl;
65 };
66 
67 } // namespace CASM
68 
69 #endif
int help() const override
Definition: update.cc:144
int vm_count_check() const override
Definition: update.cc:142
static const std::string name
Definition: update.hh:41
int desc() const override
Definition: update.cc:146
void print_names(std::ostream &sout) const
Definition: update.cc:170
UpdateCommandImplBase & impl() const
Definition: update.cc:150
jsonParser input() const
Definition: update.cc:178
int run() const override
Definition: update.cc:148
std::unique_ptr< UpdateCommandImplBase > m_impl
Definition: update.hh:64
UpdateCommand(const CommandArgs &_args, Completer::UpdateOption &_opt)
Definition: update.cc:136
Defaults used if DataObject type doesn't matter or not given.
Definition: update.cc:40
Main CASM namespace.
Definition: APICommand.hh:8
Data structure holding basic CASM command info.