//
//  Copyright © 2002, RESON Inc. All Rights Reserved.
//
//  No part of this file may be reproduced or transmitted in any form or by
//  any means, electronic or mechanical, including photocopy, recording, or
//  information storage or retrieval system, without permission in writing
//  from RESON Inc.
//
//  Filename:   GeneralScheduler.h
//
//  Project:    6046
//
//  Author(s):  W. Arcus
//
//  Purpose:    
//
//  Notes:      
//

#if !defined(AFX_GENERALSCHEDULER_H__8D1E6A8A_8552_45DE_8165_5CFA27C94792__INCLUDED_)
#define AFX_GENERALSCHEDULER_H__8D1E6A8A_8552_45DE_8165_5CFA27C94792__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Timer.h"

class CGeneralScheduler : public CTimer
{
public:

    ///////////////
    // Services.

                        CGeneralScheduler       (   void );
    virtual            ~CGeneralScheduler       (   void );

    bool                Start                   (   const unsigned long        &rulMilliseconds );

    bool                ScheduleNext            (   void );

private:

    ///////////////
    // Attributes.

    unsigned long       m_ulPeriodInMilliseconds;

    ///////////////
    // Services.

                        CGeneralScheduler       (   const CGeneralScheduler    &rRhs );
    CGeneralScheduler & operator =              (   const CGeneralScheduler    &rRhs );

};

#endif // !defined(AFX_GENERALSCHEDULER_H__8D1E6A8A_8552_45DE_8165_5CFA27C94792__INCLUDED_)
