CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::UpdateCommand Class Reference

#include <update.hh>

+ Inheritance diagram for CASM::UpdateCommand:

Detailed Description

'casm update' command

Definition at line 35 of file update.hh.

Public Types

using ImplBase = UpdateCommandImplBase
 
template<typename ConfigType >
using Impl = UpdateCommandImpl< ConfigType >
 
typedef Completer::UpdateOption OptionType
 

Public Member Functions

 UpdateCommand (const CommandArgs &_args, Completer::UpdateOption &_opt)
 
 ~UpdateCommand ()
 
int vm_count_check () const override
 
int help () const override
 
int desc () const override
 
int run () const override
 
UpdateCommandImplBaseimpl () const
 
void print_names (std::ostream &sout) const
 
jsonParser input () const
 
int count (std::string s) const
 
const po::variables_map & vm () const
 
const OptionTypeopt () const
 
const CommandArgsargs () const
 
fs::path root () const
 
bool in_project () const
 
PrimClexprimclex () const
 

Static Public Attributes

static const std::string name = "update"
 

Private Attributes

std::unique_ptr< UpdateCommandImplBasem_impl
 
OptionTypem_opt
 
const CommandArgsm_args
 
bool m_in_project
 
std::unique_ptr< PrimClexm_primclex
 

Member Typedef Documentation

◆ Impl

template<typename ConfigType >
using CASM::UpdateCommand::Impl = UpdateCommandImpl<ConfigType>

Definition at line 39 of file update.hh.

◆ ImplBase

Definition at line 37 of file update.hh.

◆ OptionType

Constructor & Destructor Documentation

◆ UpdateCommand()

CASM::UpdateCommand::UpdateCommand ( const CommandArgs _args,
Completer::UpdateOption _opt 
)

Definition at line 136 of file update.cc.

◆ ~UpdateCommand()

CASM::UpdateCommand::~UpdateCommand ( )

Definition at line 140 of file update.cc.

Member Function Documentation

◆ args()

const CommandArgs & CASM::APICommandBase::args ( ) const
inherited

Definition at line 11 of file APICommand.cc.

◆ count()

int CASM::APICommand< Completer::UpdateOption >::count ( std::string  s) const
inlineinherited

Definition at line 57 of file APICommand.hh.

◆ desc()

int CASM::UpdateCommand::desc ( ) const
overridevirtual

Implements CASM::APICommandBase.

Definition at line 146 of file update.cc.

◆ help()

int CASM::UpdateCommand::help ( ) const
overridevirtual

Implements CASM::APICommandBase.

Definition at line 144 of file update.cc.

◆ impl()

UpdateCommandImplBase & CASM::UpdateCommand::impl ( ) const

Definition at line 150 of file update.cc.

◆ in_project()

bool CASM::APICommandBase::in_project ( ) const
inherited

Definition at line 15 of file APICommand.cc.

◆ input()

jsonParser CASM::UpdateCommand::input ( ) const

Definition at line 178 of file update.cc.

◆ opt()

const OptionType& CASM::APICommand< Completer::UpdateOption >::opt ( ) const
inlineinherited

Definition at line 61 of file APICommand.hh.

◆ primclex()

PrimClex & CASM::APICommandBase::primclex ( ) const
inherited

Definition at line 17 of file APICommand.cc.

◆ print_names()

void CASM::UpdateCommand::print_names ( std::ostream &  sout) const

Definition at line 170 of file update.cc.

◆ root()

fs::path CASM::APICommandBase::root ( ) const
inherited

Definition at line 13 of file APICommand.cc.

◆ run()

int CASM::UpdateCommand::run ( ) const
overridevirtual

Implements CASM::APICommandBase.

Definition at line 148 of file update.cc.

◆ vm()

const po::variables_map& CASM::APICommand< Completer::UpdateOption >::vm ( ) const
inlineinherited

Definition at line 59 of file APICommand.hh.

◆ vm_count_check()

int CASM::UpdateCommand::vm_count_check ( ) const
overridevirtual

Implements CASM::APICommandBase.

Definition at line 142 of file update.cc.

Member Data Documentation

◆ m_args

const CommandArgs& CASM::APICommandBase::m_args
privateinherited

Definition at line 41 of file APICommand.hh.

◆ m_impl

std::unique_ptr<UpdateCommandImplBase> CASM::UpdateCommand::m_impl
mutableprivate

Definition at line 64 of file update.hh.

◆ m_in_project

bool CASM::APICommandBase::m_in_project
privateinherited

Definition at line 42 of file APICommand.hh.

◆ m_opt

Definition at line 64 of file APICommand.hh.

◆ m_primclex

std::unique_ptr<PrimClex> CASM::APICommandBase::m_primclex
mutableprivateinherited

Definition at line 43 of file APICommand.hh.

◆ name

const std::string CASM::UpdateCommand::name = "update"
static

Definition at line 41 of file update.hh.


The documentation for this class was generated from the following files: