CASM  1.1.0
A Clusters Approach to Statistical Mechanics
info.hh
Go to the documentation of this file.
1 #ifndef CASM_info
2 #define CASM_info
3 
4 #include "casm/app/APICommand.hh"
8 
9 namespace CASM {
10 
38 class InfoCommand : public APICommand<Completer::InfoOption> {
39  public:
40  static const std::string name;
41 
42  InfoCommand(const CommandArgs &_args, Completer::InfoOption &_opt);
43 
44  int vm_count_check() const override;
45 
46  int help() const override;
47 
48  int desc() const override;
49 
50  int run() const override;
51 
52  // -- custom --
53 
54  InfoInterfaceVector const &info_methods() const;
55 
56  void print_names(std::ostream &sout,
57  InfoInterfaceVector const &info_methods) const;
58 
59  private:
62 };
63 
64 } // namespace CASM
65 
66 #endif
int help() const override
Definition: info.cc:77
InfoInterfaceVector m_standard_info_methods
Definition: info.hh:60
int run() const override
Definition: info.cc:129
int vm_count_check() const override
Definition: info.cc:60
static const std::string name
Definition: info.hh:40
InfoInterfaceVector const & info_methods() const
Definition: info.cc:193
int desc() const override
Definition: info.cc:87
InfoCommand(const CommandArgs &_args, Completer::InfoOption &_opt)
Definition: info.cc:56
InfoInterfaceVector const * m_info_method_vector
Definition: info.hh:61
void print_names(std::ostream &sout, InfoInterfaceVector const &info_methods) const
Definition: info.cc:203
Main CASM namespace.
Definition: APICommand.hh:8
std::vector< notstd::cloneable_ptr< InfoInterfaceBase > > InfoInterfaceVector
Data structure holding basic CASM command info.