Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::TxtProgressBar

    └>Geo::IGeoProgressProxy

A simple implementation of an IGeoProgressProxy that uses printf to communicate with the user.

Functions

NameDescription
~IGeoProgressProxy()

Virtual destructor.

Cancel()

Trigger a Cancel, which the ongoing process will check at various points during execution.

ReportError(const GeoError &)

Called when an error (or warning) is encountered by the task.

ReportError(const GeoError &)

Called when an error (or warning) is encountered by the task.

SetProgressString(const char *)

Called by progress tracked tasks to inform clients of the current (sub) task.

SetProgressString(const char *)

Called by progress tracked tasks to inform clients of the current (sub) task.

SetProportionDone(float)

Called when a further chunk of work has been performed on the current (sub) task.

SetProportionDone(float)

Called when a further chunk of work has been performed on the current (sub) task.

ShouldCancel()

Request a cancel of the current task.

ShouldCancel()

Request a cancel of the current task.


Anchor
a4e3ad0ec17ba51e001e79989f210d511
a4e3ad0ec17ba51e001e79989f210d511

virtual Geo::IGeoProgressProxy::~IGeoProgressProxy

...

protected: virtual ~IGeoProgressProxy()

...

Virtual destructor.


Anchor
ab8a643ee52b02f8c850cc27e05cd9cc7
ab8a643ee52b02f8c850cc27e05cd9cc7

void Geo::TxtProgressBar::Cancel

...

public: void Cancel()

...

Trigger a Cancel, which the ongoing process will check at various points during execution.


Anchor
a414d189bf3e9eb6a147bb2f6040bc81e
a414d189bf3e9eb6a147bb2f6040bc81e

virtual void Geo::TxtProgressBar::ReportError

...

public: virtual void ReportError
(
    const GeoError & error
)

...

Called when an error (or warning) is encountered by the task.

Details of the error can be found in the Error struct. The Error struct is valid only for the lifetime of the call to ReportError and cannot be copied.


Anchor
ae7db84009b2e1d0ef00ee90aac297140
ae7db84009b2e1d0ef00ee90aac297140

virtual void Geo::IGeoProgressProxy::ReportError

...

public: void ReportError
(
    const GeoError & error
)

...

Called when an error (or warning) is encountered by the task.

Details of the error can be found in the Error struct. The Error struct is valid only for the lifetime of the call to ReportError and cannot be copied.


Anchor
a2e91232ad57c6af57c7846397b4abaf5
a2e91232ad57c6af57c7846397b4abaf5

virtual void Geo::TxtProgressBar::SetProgressString

...

public: virtual void SetProgressString
(
    const char * desc
)

...

Called by progress tracked tasks to inform clients of the current (sub) task.


Anchor
af2e5bf1ba55e08530df795a0bb060fcd
af2e5bf1ba55e08530df795a0bb060fcd

virtual void Geo::IGeoProgressProxy::SetProgressString

...

public: void SetProgressString
(
    const char * desc
)

...

Called by progress tracked tasks to inform clients of the current (sub) task.


Anchor
aead7755da1e93e5e0186624a646f8403
aead7755da1e93e5e0186624a646f8403

virtual void Geo::TxtProgressBar::SetProportionDone

...

public: virtual void SetProportionDone
(
    float globalProgress
)

...

Called when a further chunk of work has been performed on the current (sub) task.

Parameters
[in]globalProgress

The total percentage of work completed on this task [0,1].


Anchor
a03de98aa9da2249160ef2cba25553b6e
a03de98aa9da2249160ef2cba25553b6e

virtual void Geo::IGeoProgressProxy::SetProportionDone

...

public: void SetProportionDone
(
    float globalProgress
)

...

Called when a further chunk of work has been performed on the current (sub) task.

Parameters
[in]globalProgress

The total percentage of work completed on this task [0,1].


Anchor
a31aac0b39ea2db6dd2d3f48a062a398f
a31aac0b39ea2db6dd2d3f48a062a398f

virtual bool Geo::TxtProgressBar::ShouldCancel

...

public: virtual bool ShouldCancel()

...

Request a cancel of the current task.

This function will be called periodically by progress tracked tasks. Use this opportunity to request a halt to the current task.


Anchor
abe8cf09a3e673d6a191209f50d2655cb
abe8cf09a3e673d6a191209f50d2655cb

virtual bool Geo::IGeoProgressProxy::ShouldCancel

...

public: bool ShouldCancel()

...

Request a cancel of the current task.

This function will be called periodically by progress tracked tasks. Use this opportunity to request a halt to the current task.