Code forensics  0.1
Generate historical information about code changes
BoolOption Class Reference

specify boolean true/false flags on the boost command line More...

#include <cli_options.hpp>

Public Member Functions

 BoolOption (bool initialState=false)
 
bool getState () const
 
void switchState ()
 toggle stored state More...
 
 operator bool () const
 boolean conversion operator for seamless interoperability with the regular boolean types More...
 

Private Attributes

bool state
 

Detailed Description

specify boolean true/false flags on the boost command line

Constructor & Destructor Documentation

◆ BoolOption()

BoolOption::BoolOption ( bool  initialState = false)
inline

Member Function Documentation

◆ getState()

bool BoolOption::getState ( ) const
inline

◆ operator bool()

BoolOption::operator bool ( ) const
inline

boolean conversion operator for seamless interoperability with the regular boolean types

◆ switchState()

void BoolOption::switchState ( )
inline

toggle stored state

Member Data Documentation

◆ state

bool BoolOption::state
private

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