Sierra Toolkit  Version of the Day
sierra::Diag::TimerParser Class Reference

Class TimerParser implements the bit mask parser for the timer's bit masks. More...

#include <Timer.hpp>

Inheritance diagram for sierra::Diag::TimerParser:
Collaboration diagram for sierra::Diag::TimerParser:

Public Member Functions

 TimerParser ()
 
Mask parse (const char *mask_string) const
 Member function parse parses the mask string and generates the corresponding bit mask. More...
 
virtual void parseArg (const std::string &name, const std::string &arg) const
 
- 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 ()
 

Public Attributes

stk_classic::diag::MetricsMask m_metricsSetMask
 
stk_classic::diag::MetricsMask m_metricsMask
 

Additional Inherited Members

- Public Types inherited from stk_classic::diag::OptionMaskParser
typedef OptionMask Mask
 Mask for this option.
 
- 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 TimerParser implements the bit mask parser for the timer's bit masks.

Definition at line 790 of file Timer.hpp.

Constructor & Destructor Documentation

◆ TimerParser()

sierra::Diag::TimerParser::TimerParser ( )

Creates a new TimerParser instance.

Definition at line 1111 of file Timer.cpp.

Member Function Documentation

◆ parse()

OptionMaskParser::Mask sierra::Diag::TimerParser::parse ( const char *  mask_string) const
virtual

Member function parse parses the mask string and generates the corresponding bit mask.

Parameters
mask_stringa std::string const reference to the mask string.
Returns
a Mask value of the bitmask corresponding to the mask string.

Reimplemented from stk_classic::diag::OptionMaskParser.

Definition at line 1151 of file Timer.cpp.

◆ parseArg()

void sierra::Diag::TimerParser::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 1173 of file Timer.cpp.


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