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

#include <CLIParse.hh>

+ Inheritance diagram for CASM::CLIParse:

Detailed Description

Definition at line 10 of file CLIParse.hh.

Public Member Functions

 CLIParse (int _argc, char **_argv)
 Non-owning. More...
 
 CLIParse (std::string _args)
 Owning. More...
 
 ~CLIParse ()
 
int argc () const
 
char ** argv () const
 
int parse_result () const
 

Private Attributes

int m_argc
 
char ** m_argv
 
int m_parse_result
 
bool m_free_p
 
wordexp_t m_p
 

Constructor & Destructor Documentation

◆ CLIParse() [1/2]

CASM::CLIParse::CLIParse ( int  _argc,
char **  _argv 
)

Non-owning.

Definition at line 11 of file CLIParse.cc.

◆ CLIParse() [2/2]

CASM::CLIParse::CLIParse ( std::string  _args)

Owning.

Definition at line 15 of file CLIParse.cc.

◆ ~CLIParse()

CASM::CLIParse::~CLIParse ( )

Definition at line 40 of file CLIParse.cc.

Member Function Documentation

◆ argc()

int CASM::CLIParse::argc ( ) const
inline

Definition at line 20 of file CLIParse.hh.

◆ argv()

char** CASM::CLIParse::argv ( ) const
inline

Definition at line 22 of file CLIParse.hh.

◆ parse_result()

int CASM::CLIParse::parse_result ( ) const
inline

Definition at line 24 of file CLIParse.hh.

Member Data Documentation

◆ m_argc

int CASM::CLIParse::m_argc
private

Definition at line 27 of file CLIParse.hh.

◆ m_argv

char** CASM::CLIParse::m_argv
private

Definition at line 28 of file CLIParse.hh.

◆ m_free_p

bool CASM::CLIParse::m_free_p
private

Definition at line 34 of file CLIParse.hh.

◆ m_p

wordexp_t CASM::CLIParse::m_p
private

Definition at line 35 of file CLIParse.hh.

◆ m_parse_result

int CASM::CLIParse::m_parse_result
private

stores error codes when attempting to parse std::string _args -> argc, argv

Definition at line 32 of file CLIParse.hh.


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