Subversion Repositories DevTools

Rev

Rev 2263 | Blame | Compare with Previous | Last modification | View Log | RSS feed

//## begin module%1.7%.codegen_version preserve=yes
//   Read the documentation to learn more about C++ code generator
//   versioning.
//## end module%1.7%.codegen_version

//## begin module%4211C91D02DE.cm preserve=no
//## end module%4211C91D02DE.cm

//## begin module%4211C91D02DE.cp preserve=no
//      C O P Y R I G H T   N O T I C E
//      This material is confidential to ERG and may not be disclosed in whole
//      or in part to any third party nor used in any manner whatsoever other
//      than for the purposes expressly consented to by ERG in writing.
//
//      This material is also copyright and may not be reproduced, stored in a
//      retrieval system or transmitted in any form or by any means in whole or
//      in part without the express written consent of ERG.
//## end module%4211C91D02DE.cp

//## Module: TimeEstimate%4211C91D02DE; Pseudo Package specification
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TimeEstimate.h

#ifndef TimeEstimate_h
#define TimeEstimate_h 1

//## begin module%4211C91D02DE.additionalIncludes preserve=no
//## end module%4211C91D02DE.additionalIncludes

//## begin module%4211C91D02DE.includes preserve=yes
#include <vcl.h>
#pragma hdrstop

#include <ComCtrls.hpp>
//## end module%4211C91D02DE.includes

//## begin module%4211C91D02DE.additionalDeclarations preserve=yes
//## end module%4211C91D02DE.additionalDeclarations


//## begin TimeEstimate%4211C91D02DE.preface preserve=yes
//## end TimeEstimate%4211C91D02DE.preface

//## Class: TimeEstimate%4211C91D02DE; private
//      This class computes time estimates.
//## Category: TransactionTestManager::Progress Bar%42007E0B0178
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
//## Persistence: Transient
//## Cardinality/Multiplicity: n



class TimeEstimate 
{
  //## begin TimeEstimate%4211C91D02DE.initialDeclarations preserve=yes
  //## end TimeEstimate%4211C91D02DE.initialDeclarations

  public:
    //## Constructors (specified)
      //## Operation: TimeEstimate%4211CC9F029D
      //        The only constructor.
      TimeEstimate (TStatusPanel &panel // The panel that contains this estimate.
      );

    //## Destructor (generated)
      virtual ~TimeEstimate();


    //## Other Operations (specified)
      //## Operation: increment%4211CA05001F
      //        Increment the position by the given amount.
      void increment (const unsigned int &delta = 1     // The amount by which to increment, which must be in the range 0..total.
      );

      //## Operation: start%4211C99F032C
      //        Start the estimate.
      void start (const unsigned int &total     // The total number of steps in our task.
      );

      //## Operation: stop%4211C99F031C
      //        Stop the estimate.
      void stop ();

      //## Operation: update%4211CA05002E
      //        Update the position of this instance.
      void update (const unsigned int &position // The new position, which must be in the range 0..total.
      );

    // Additional Public Declarations
      //## begin TimeEstimate%4211C91D02DE.public preserve=yes
      //## end TimeEstimate%4211C91D02DE.public

  protected:
    // Additional Protected Declarations
      //## begin TimeEstimate%4211C91D02DE.protected preserve=yes
      //## end TimeEstimate%4211C91D02DE.protected

  private:
    //## Constructors (generated)
      TimeEstimate();

      TimeEstimate(const TimeEstimate &right);

    //## Assignment Operation (generated)
      TimeEstimate & operator=(const TimeEstimate &right);

    // Data Members for Class Attributes

      //## Attribute: panel%4211CC6201F1
      //        The panel that contains the time estimate.
      //## begin TimeEstimate::panel%4211CC6201F1.attr preserve=no  private: TStatusPanel {RA} 0
      TStatusPanel *m_panel;
      //## end TimeEstimate::panel%4211CC6201F1.attr

      //## Attribute: position%4211CA710138
      //        The current position.
      //## begin TimeEstimate::position%4211CA710138.attr preserve=no  private: unsigned int {VA} 0
      unsigned int m_position;
      //## end TimeEstimate::position%4211CA710138.attr

      //## Attribute: start%4211C94301D4
      //        The time at which the task began.
      //## begin TimeEstimate::start%4211C94301D4.attr preserve=no  private: TDateTime {VA} 
      TDateTime m_start;
      //## end TimeEstimate::start%4211C94301D4.attr

      //## Attribute: step%4211CBB602FB
      //        The time that must elapse between updates.
      //## begin TimeEstimate::step%4211CBB602FB.attr preserve=no  private: TDateTime {VAC} ( 0, 0, 2, 500 )
      const TDateTime m_step;
      //## end TimeEstimate::step%4211CBB602FB.attr

      //## Attribute: total%4211CA710148
      //        The total number of steps in our task.
      //## begin TimeEstimate::total%4211CA710148.attr preserve=no  private: unsigned int {VA} 0
      unsigned int m_total;
      //## end TimeEstimate::total%4211CA710148.attr

      //## Attribute: update%4211C96400EA
      //        The last time that we updated our estimate.
      //## begin TimeEstimate::update%4211C96400EA.attr preserve=no  private: TDateTime {VA} 
      TDateTime m_update;
      //## end TimeEstimate::update%4211C96400EA.attr

    // Additional Private Declarations
      //## begin TimeEstimate%4211C91D02DE.private preserve=yes
      //## end TimeEstimate%4211C91D02DE.private

  private: //## implementation
    // Additional Implementation Declarations
      //## begin TimeEstimate%4211C91D02DE.implementation preserve=yes
      //## end TimeEstimate%4211C91D02DE.implementation

};

//## begin TimeEstimate%4211C91D02DE.postscript preserve=yes
//## end TimeEstimate%4211C91D02DE.postscript

// Class TimeEstimate 

//## begin module%4211C91D02DE.epilog preserve=yes
//## end module%4211C91D02DE.epilog


#endif