ProgressResource Class Reference

This is a Resource class that manages Progress objects. More...

#include <ProgressResource.h>

Inheritance diagram for ProgressResource:

Inheritance graph

List of all members.

Public Member Functions

 ProgressResource (const std::string &caption=std::string(), bool threadSafe=false)
 ProgressResource (Progress &progress, const std::string &caption=std::string())


Detailed Description

This is a Resource class that manages Progress objects.

This resource creates a Progress objects and destroys it when going out of scope. Optionally, a ProgressDialog will be created for the Progress object. The second form of this resource takes ownership of an existing Progress object.

Definition at line 78 of file ProgressResource.h.


Constructor & Destructor Documentation

ProgressResource::ProgressResource ( const std::string &  caption = std::string(),
bool  threadSafe = false 
) [explicit]

Constructs a Resource object that manages a Progress object.

This creates a new Progress object and optionally associates a ProgressDialog with it.

Parameters:
caption If this is not empty, a ProgressDialog will be created with this caption.
threadSafe If true, a thread-safe Progress object is created.

Definition at line 93 of file ProgressResource.h.

ProgressResource::ProgressResource ( Progress progress,
const std::string &  caption = std::string() 
) [explicit]

Constructs a Resource object that manages a Progress object.

This takes ownership of an existing Progress object and optionally associates a ProgressDialog with it.

Parameters:
progress The exisiting Progress object.
caption If this is not empty, a ProgressDialog will be created with this caption.

Definition at line 108 of file ProgressResource.h.


Software Development Kit - Opticks 4.9.0 Build 16218