astrog::PipelineTestTimer Class Reference

#include <libastrog_p_testtimer.h>

Inheritance diagram for astrog::PipelineTestTimer:

astrog::Pipeline List of all members.

Detailed Description

Timer test pipeline.

This pipeline tests the functionality of the Timer core class.

Definition at line 39 of file libastrog_p_testtimer.h.

Public Member Functions

 PipelineTestTimer ()
 Constructor for the Timer test pipeline.
 ~PipelineTestTimer ()
 Deconstructor for the Timer test pipeline.
int execute ()
 Execution function for the Timer test pipeline.

Private Attributes

Timertimer
 Timer object.


Constructor & Destructor Documentation

astrog::PipelineTestTimer::PipelineTestTimer  ) 
 

Constructor for the Timer test pipeline.

Definition at line 33 of file p_testtimer.cpp.

References timer.

00034 {
00035     timer = new Timer();
00036 }

astrog::PipelineTestTimer::~PipelineTestTimer  ) 
 

Deconstructor for the Timer test pipeline.

Definition at line 38 of file p_testtimer.cpp.

References timer.

00039 {
00040     delete timer;
00041 }


Member Function Documentation

int astrog::PipelineTestTimer::execute  ) 
 

Execution function for the Timer test pipeline.

Definition at line 43 of file p_testtimer.cpp.

References astrog::Timer::get_time(), astrog::Timer::start(), astrog::Timer::stop(), and timer.

00044 {
00045     int err = 0;
00046     timer->start();
00047     sleep(5);
00048     timer->stop();
00049     std::cout << timer->get_time() << std::endl;
00050     return err;
00051 }


Member Data Documentation

Timer* astrog::PipelineTestTimer::timer [private]
 

Timer object.

Definition at line 49 of file libastrog_p_testtimer.h.

Referenced by execute(), PipelineTestTimer(), and ~PipelineTestTimer().


The documentation for this class was generated from the following files:
Generated on Mon Mar 26 11:01:02 2007 for Astrog by doxygen 1.4.6 and hosted by SourceForge.net Logo