Scroom  0.14
ProgressStateInterfaceStub Class Reference

#include <progressstateinterfacestub.hh>

Inheritance diagram for ProgressStateInterfaceStub:
Inheritance graph
Collaboration diagram for ProgressStateInterfaceStub:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< ProgressStateInterfaceStub >
 
- Public Types inherited from Scroom::Utils::ProgressStateInterface
enum  State { IDLE, WAITING, WORKING, FINISHED }
 
using Ptr = boost::shared_ptr< ProgressStateInterface >
 
using WeakPtr = boost::weak_ptr< ProgressStateInterface >
 

Public Member Functions

void setProgress (State s, double d) override
 

Static Public Member Functions

static Ptr create ()
 

Public Attributes

State state {IDLE}
 
double progress {0.0}
 

Private Member Functions

 ProgressStateInterfaceStub ()=default
 

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ ProgressStateInterfaceStub()

ProgressStateInterfaceStub::ProgressStateInterfaceStub ( )
privatedefault

Referenced by create().

Here is the caller graph for this function:

Member Function Documentation

◆ create()

ProgressStateInterfaceStub::Ptr ProgressStateInterfaceStub::create ( )
static
5 { return Ptr(new ProgressStateInterfaceStub()); }

Referenced by BOOST_AUTO_TEST_CASE(), and ProgressInterfaceMultiplexer_Fixture::ProgressInterfaceMultiplexer_Fixture().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setProgress()

void ProgressStateInterfaceStub::setProgress ( State  s,
double  d 
)
overridevirtual

Implements Scroom::Utils::ProgressStateInterface.

8 {
9  state = s;
10  progress = d;
11 }

Member Data Documentation

◆ progress

double ProgressStateInterfaceStub::progress {0.0}

Referenced by setProgress().

◆ state

State ProgressStateInterfaceStub::state {IDLE}

Referenced by setProgress().


The documentation for this class was generated from the following files:
ProgressStateInterfaceStub::state
State state
Definition: progressstateinterfacestub.hh:18
ProgressStateInterfaceStub::ProgressStateInterfaceStub
ProgressStateInterfaceStub()=default
ProgressStateInterfaceStub::progress
double progress
Definition: progressstateinterfacestub.hh:19
ProgressStateInterfaceStub::Ptr
boost::shared_ptr< ProgressStateInterfaceStub > Ptr
Definition: progressstateinterfacestub.hh:15