Sierra Toolkit  Version of the Day
stk_classic::diag::WriterParser Class Reference

Class WriterParser implements a parser a Writer PrintMask string. More...

#include <WriterParser.hpp>

Inheritance diagram for stk_classic::diag::WriterParser:
Collaboration diagram for stk_classic::diag::WriterParser:

Public Types

typedef OptionMaskParser::Mask Mask
 Typedef Mask bring the OptionMaskParser Mask definition into this namespace.
 
- Public Types inherited from stk_classic::diag::OptionMaskParser
typedef OptionMask Mask
 Mask for this option.
 

Public Member Functions

 WriterParser ()
 Creates a new WriterParser instance containing the lowerest level PrintMask names.
 
Mask parse (const char *mask_string) const
 Member function parse returns the mask which results from parsing the mask_string. More...
 
virtual void parseArg (const std::string &name, const std::string &arg) const
 Member function parseArg parses the argument and its argument values. More...
 
- Public Member Functions inherited from stk_classic::diag::OptionMaskParser
 OptionMaskParser ()
 
virtual ~OptionMaskParser ()
 
const OptionMaskNameMapgetOptionMaskNameMap () const
 
Maskoperator[] (const std::string &name)
 
void mask (const std::string &name, const Mask l_mask, const std::string &description)
 
std::ostream & describe (std::ostream &os) const
 
- Public Member Functions inherited from stk_classic::diag::OptionDescription
virtual ~OptionDescription ()
 

Additional Inherited Members

- Protected Attributes inherited from stk_classic::diag::OptionMaskParser
OptionMaskNameMap m_optionMaskNameMap
 Mask name vector.
 
OptionMask m_optionMask
 Most recently parsed mask.
 
bool m_status
 Result of most recent parse.
 

Detailed Description

Class WriterParser implements a parser a Writer PrintMask string.

Definition at line 18 of file WriterParser.hpp.

Member Function Documentation

◆ parse()

OptionMaskParser::Mask stk_classic::diag::WriterParser::parse ( const char *  mask_string) const
virtual

Member function parse returns the mask which results from parsing the mask_string.

Parameters
mask_stringa std::string const reference to the string to be parsed.
Returns
a Mask value of the result from parsing the mask string.

Reimplemented from stk_classic::diag::OptionMaskParser.

Definition at line 26 of file WriterParser.cpp.

◆ parseArg()

void stk_classic::diag::WriterParser::parseArg ( const std::string &  name,
const std::string &  arg 
) const
virtual

Member function parseArg parses the argument and its argument values.

Parameters
namea std::string const reference to the argument name.
arga std::string const reference to the argument values.

Reimplemented from stk_classic::diag::OptionMaskParser.

Definition at line 35 of file WriterParser.cpp.


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