// ReadDbWriteFile.h: interface for the CReadDbWriteFile class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_READDBWRITEFILE_H__92F7FD1C_56FA_468F_B76C_69D520E7A8E6__INCLUDED_)
#define AFX_READDBWRITEFILE_H__92F7FD1C_56FA_468F_B76C_69D520E7A8E6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifdef  BUILD_GUIDLL
#define     DLLCLASS    __declspec(dllexport)
#else
#define     DLLCLASS    __declspec(dllimport)
#endif

class DLLCLASS CReadDbWriteFile
{
public:
//  Default constructor that will call ReadDbWriteFile()
    CReadDbWriteFile(const char *ccDb, const char *ccFile, const char *ccTable,
                     const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);

//  Default constructor that will call ReadDbWriteFile()
    CReadDbWriteFile(CDaoDatabase &db, const char *ccFile, const char *ccTable,
                     const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);

//  Destructor
    virtual ~CReadDbWriteFile();

//  Read all field values from database file and write to file. The keyname in file will
//  correspond to field name in database.
    static bool ReadDbWriteFile(const char *ccDb, const char *ccFile, const char *ccTable,
                                const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);

    static bool ReadAllDbWriteFile(CDaoDatabase &db, const char *ccFile, const char *ccTable,
                                   const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);

    static bool ReadDbWriteFile(CDaoDatabase &db, const char *ccFile, const char *ccTable,
                                const char *ccFieldName, const char *ccFieldValue, const char *ccSectionName);
};

#endif // !defined(AFX_READDBWRITEFILE_H__92F7FD1C_56FA_468F_B76C_69D520E7A8E6__INCLUDED_)
