Into

Modules

Documentation

classPiiProgressController

#include <PiiProgressController.h>

An interface for objects that control the functioning of operations that take a long time.

Inherited by PiiClassifierOperation, PiiHttpProtocol::TimeLimiter, PiiNetworkServerThread, PiiRemoteObjectClient

Description

Constructors and destructor

virtual

Public member functions

virtual bool
(
  • double progressPercentage = NAN
)  = 0

Check if the slow operation is still allowed to continue.

Function details

  • virtual ~PiiProgressController

    ()
    [virtual]
  • virtual bool canContinue

    (
    • double progressPercentage = NAN
    )
    [pure virtual]

    Check if the slow operation is still allowed to continue.

    The implementation should return true if the operation is still allowed to run and false otherwise.

    Parameters
    progressPercentage

    an estimate of the current state of progress as a percentage (0.0 - 1.0). If the value is NaN, the current state of progress is not known to the caller.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.