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

#include <import.hh>

+ Inheritance diagram for CASM::ImportCommand:

Detailed Description

'casm import' command

Definition at line 44 of file import.hh.

Public Types

using ImplBase = ImportCommandImplBase
 
template<typename ConfigType >
using Impl = ImportCommandImpl< ConfigType >
 
typedef Completer::ImportOption OptionType
 

Public Member Functions

 ImportCommand (const CommandArgs &_args, Completer::ImportOption &_opt)
 
 ~ImportCommand ()
 
int vm_count_check () const override
 
int help () const override
 
int desc () const override
 
int run () const override
 
ImportCommandImplBaseimpl () 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 = "import"
 

Private Attributes

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

Member Typedef Documentation

◆ Impl

template<typename ConfigType >
using CASM::ImportCommand::Impl = ImportCommandImpl<ConfigType>

Definition at line 48 of file import.hh.

◆ ImplBase

Definition at line 46 of file import.hh.

◆ OptionType

Constructor & Destructor Documentation

◆ ImportCommand()

CASM::ImportCommand::ImportCommand ( const CommandArgs _args,
Completer::ImportOption _opt 
)

Definition at line 160 of file import.cc.

◆ ~ImportCommand()

CASM::ImportCommand::~ImportCommand ( )

Definition at line 164 of file import.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::ImportOption >::count ( std::string  s) const
inlineinherited

Definition at line 57 of file APICommand.hh.

◆ desc()

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

Implements CASM::APICommandBase.

Definition at line 179 of file import.cc.

◆ help()

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

Implements CASM::APICommandBase.

Definition at line 177 of file import.cc.

◆ impl()

ImportCommandImplBase & CASM::ImportCommand::impl ( ) const

Definition at line 183 of file import.cc.

◆ in_project()

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

Definition at line 15 of file APICommand.cc.

◆ input()

jsonParser CASM::ImportCommand::input ( ) const

Definition at line 211 of file import.cc.

◆ opt()

const OptionType& CASM::APICommand< Completer::ImportOption >::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::ImportCommand::print_names ( std::ostream &  sout) const

Definition at line 203 of file import.cc.

◆ root()

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

Definition at line 13 of file APICommand.cc.

◆ run()

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

Implements CASM::APICommandBase.

Definition at line 181 of file import.cc.

◆ vm()

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

Definition at line 59 of file APICommand.hh.

◆ vm_count_check()

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

Implements CASM::APICommandBase.

Definition at line 166 of file import.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<ImportCommandImplBase> CASM::ImportCommand::m_impl
mutableprivate

Definition at line 73 of file import.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::ImportCommand::name = "import"
static

Definition at line 50 of file import.hh.


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