You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB
C++

// ManufacturingTime.h: interface for the CManufacturingTime class.
//
//////////////////////////////////////////////////////////////////////
#pragma once
#include "ProductiveTime.h"
#include "StandbyTime.h"
class CManufacturingTime
{
public:
// default constructor
CManufacturingTime();
// default destructor
virtual ~CManufacturingTime();
// read all equipment substate time span from file
void ReadTimeSpanFromFile();
// save equipment substate time periodically to file
void SaveTimeInfo();
// set ProductiveTime and StandbyTime equipment state
void SetEquipState(int iEvt, int iState);
// get total ProductiveTime and StandbyTime equipment state time
LONGLONG GetTotalTime();
// get productive time in counts
LONGLONG GetProductiveTime();
// get standby time in counts
LONGLONG GetStandbyTime();
// get equipment substate time
LONGLONG GetEquipSubStateTime(int iEvt);
// check is equipment Substate timer started
virtual bool IsTimerStarted(int iEvt);
private:
CProductiveTime m_productiveTime; // productive time
CStandbyTime m_standbyTime; // standby time
};