xmscore  1.0
MockObserver Class Reference

Derived class used for testing use of Observer class. More...

Inheritance diagram for MockObserver:
xms::Observer

Public Attributes

double m_percentComplete
 percent complete
 
double m_remainingSeconds
 seconds remaining
 
double m_elapsedSeconds
 seconds elapsed
 
std::stringstream m_info
 string info captured by the class
 

Private Member Functions

virtual void OnProgressStatus (double a_percentComplete) override
 captures the progress of an operation More...
 
virtual void OnBeginOperationString (const std::string &a_operation) override
 
virtual void TimeElapsedInSeconds (double a_elapsedSeconds) override
 
virtual void TimeRemainingInSeconds (double a_secondsRemaining) override
 

Additional Inherited Members

- Public Member Functions inherited from xms::Observer
bool ProgressStatus (double a_percentComplete)
 Method to publish the progress status. More...
 
void BeginOperationString (const std::string &a_operation)
 Publishes the name of the operation and starts the timing of the operation. More...
 
void EndOperation ()
 Ends the operation.
 
void UpdateMessage (const std::string &a_message)
 Updates the message but not the percent complete. More...
 

Detailed Description

Derived class used for testing use of Observer class.

Definition at line 218 of file Observer.cpp.

Member Function Documentation

◆ OnBeginOperationString()

virtual void MockObserver::OnBeginOperationString ( const std::string &  a_operation)
inlineoverrideprivatevirtual
Parameters
a_operationname of the operation being monitored

Reimplemented from xms::Observer.

Definition at line 240 of file Observer.cpp.

◆ OnProgressStatus()

virtual void MockObserver::OnProgressStatus ( double  a_percentComplete)
inlineoverrideprivatevirtual

captures the progress of an operation

Parameters
a_percentCompleteThe percent complete.

Implements xms::Observer.

Definition at line 231 of file Observer.cpp.

◆ TimeElapsedInSeconds()

virtual void MockObserver::TimeElapsedInSeconds ( double  a_elapsedSeconds)
inlineoverrideprivatevirtual
Parameters
a_elapsedSecondsThe elapsed time since the operation began.

Reimplemented from xms::Observer.

Definition at line 249 of file Observer.cpp.

◆ TimeRemainingInSeconds()

virtual void MockObserver::TimeRemainingInSeconds ( double  a_secondsRemaining)
inlineoverrideprivatevirtual
Parameters
a_secondsRemainingThe time remaining for the current operation that the class is observing.

Reimplemented from xms::Observer.

Definition at line 260 of file Observer.cpp.


The documentation for this class was generated from the following file: