OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimProcessProgressEvent.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: LGPL
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 // Description: Event for process progress.
11 //
12 // $Id: ossimProcessProgressEvent.cpp 9094 2006-06-13 19:12:40Z dburken $
13 //----------------------------------------------------------------------------
15 
16 RTTI_DEF1(ossimProcessProgressEvent, "ossimProcessProgressEvent", ossimEvent);
17 
19  double percentComplete,
20  const ossimString message,
21  bool outputMessageFlag)
22  :
24  thePercentComplete(percentComplete),
25  theMessage(message),
26  theOutputMessageFlag(outputMessageFlag)
27 {
28 }
29 
31 {
32  return new ossimProcessProgressEvent(*this);
33 }
34 
36 {
37  return thePercentComplete;
38 }
39 
41 {
42  return theMessage;
43 }
44 
46 {
47  message = theMessage;
48 }
49 
51 {
52  thePercentComplete = percentComplete;
53 }
54 
56 {
57  theMessage = message;
58 }
59 
61 {
62  theOutputMessageFlag = flag;
63 }
64 
66 {
67  return theOutputMessageFlag;
68 }
ossimProcessProgressEvent(ossimObject *owner=NULL, double percentComplete=0.0, const ossimString message="", bool outputMessageFlag=false)
void setPercentComplete(double percentComplete)
void setMessage(const ossimString &message)
RTTI_DEF1(ossimProcessProgressEvent, "ossimProcessProgressEvent", ossimEvent)
virtual ossimObject * dup() const
#define OSSIM_EVENT_PROCESS_PROGRESS_ID
Definition: ossimEventIds.h:25