ManaPlus
Public Member Functions | Private Member Functions | Private Attributes
doctest::Context Class Reference

#include <doctest.h>

Public Member Functions

 Context (int argc=0, const char *const *argv=0)
 
 Context (const Context &)=delete
 
Contextoperator= (const Context &)=delete
 
 ~Context ()
 
void applyCommandLine (int argc, const char *const *argv)
 
void addFilter (const char *filter, const char *value)
 
void clearFilters ()
 
void setOption (const char *option, int value)
 
void setOption (const char *option, const char *value)
 
bool shouldExit ()
 
int run ()
 

Private Member Functions

void parseArgs (int argc, const char *const *argv, bool withDefaults=false)
 

Private Attributes

detail::ContextState * p
 

Detailed Description

Definition at line 1703 of file doctest.h.

Constructor & Destructor Documentation

◆ Context() [1/2]

doctest::Context::Context ( int  argc = 0,
const char *const *  argv = 0 
)
explicit

◆ Context() [2/2]

doctest::Context::Context ( const Context )
delete

◆ ~Context()

doctest::Context::~Context ( )

Member Function Documentation

◆ addFilter()

void doctest::Context::addFilter ( const char *  filter,
const char *  value 
)

◆ applyCommandLine()

void doctest::Context::applyCommandLine ( int  argc,
const char *const *  argv 
)

◆ clearFilters()

void doctest::Context::clearFilters ( )

◆ operator=()

Context& doctest::Context::operator= ( const Context )
delete

◆ parseArgs()

void doctest::Context::parseArgs ( int  argc,
const char *const *  argv,
bool  withDefaults = false 
)
private

◆ run()

int doctest::Context::run ( )

◆ setOption() [1/2]

void doctest::Context::setOption ( const char *  option,
const char *  value 
)

◆ setOption() [2/2]

void doctest::Context::setOption ( const char *  option,
int  value 
)

◆ shouldExit()

bool doctest::Context::shouldExit ( )

Field Documentation

◆ p

detail::ContextState* doctest::Context::p
private

Definition at line 1705 of file doctest.h.


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