//---------------------------------------------------------------------------

#ifndef CDSProcessFH
#define CDSProcessFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <stdio.h>
#include <ADODB.hpp>
#include <DB.hpp>
//---------------------------------------------------------------------------
#include "ITSLibF.h"
#include "CDSItsObjectF.h"
//---------------------------------------------------------------------------

/*
*  Process class
*/
class TCDSProcess
{
public:
    TCDSProcess();
    virtual ~TCDSProcess();

public:
    AnsiString SYST_ID;
    AnsiString SYST_TYPE;
    AnsiString SYST_NMBR;
    AnsiString SYST_NM;
    AnsiString SYST_IP_1;
    AnsiString SYST_IP_2;
    AnsiString PRGM_PORT;
    AnsiString HOST_NM;
    AnsiString OS_NM;
    AnsiString DEL_YN;
    AnsiString STTS_DSPL_YN;
};
//---------------------------------------------------------------------------

/*
* Process Manager
*/
class TCDSProcessManager : public TCDSItsObject
{
public:
    TCDSProcessManager();
    virtual ~TCDSProcessManager();

public:
    int FUnitStts5Min;

public:
    TItsMap<String, TCDSProcess*>    FLists;

public:
    int LoadUnitInfo(TADOConnection *ADbConn);
    int SaveUnitStts(TADOConnection *ADbConn);
#if 0
    int SaveUnitSttsHs(TADOConnection *ADbConn);
#endif
};
//---------------------------------------------------------------------------
extern TCDSProcessManager *CDSProcessManager;
//---------------------------------------------------------------------------

#endif
