53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
// DWFFile.h : Declaration of the CDWFFile
|
|
|
|
#pragma once
|
|
#include "resource.h" // main symbols
|
|
#include "EPlotSectionsImpl.h"
|
|
|
|
//#include "SLNKDWF.h"
|
|
|
|
#include "Whiptk/whip_toolkit.h"
|
|
#include "Dwf/Toolkit.h"
|
|
|
|
// CDWFFile
|
|
|
|
class CDWFFileImpl
|
|
{
|
|
public:
|
|
CDWFFileImpl()
|
|
: m_DWF(NULL),m_oReader(NULL), m_isOpen(FALSE)
|
|
#ifndef DWFTK_READ_ONLY
|
|
,m_oWriter(NULL)
|
|
#endif
|
|
{
|
|
}
|
|
~CDWFFileImpl();
|
|
|
|
public:
|
|
bool get_PropertiesXML(CString & pVal);
|
|
CEPlotSectionsImpl *get_EPlotSections();
|
|
#ifndef DWFTK_READ_ONLY
|
|
bool Create(const CString &DWFPath, CDWFFileImpl *DWFFileTemplate );
|
|
LONG CreateEPlotSection(const CString &W2DPath, CEPlotSectionImpl *ePlotTemplate);
|
|
bool Save();
|
|
#endif
|
|
bool Open(const CString &DWFPath);
|
|
|
|
public:
|
|
CEPlotSectionsImpl m_EPlotSections;
|
|
DWFPackageReader::tPackageInfo m_tInfo;
|
|
|
|
private:
|
|
DWFCore::DWFFile *m_DWF;
|
|
#ifndef DWFTK_READ_ONLY
|
|
DWFToolkit::DWFPackageWriter* m_oWriter;
|
|
#endif
|
|
DWFToolkit::DWFPackageReader* m_oReader;
|
|
|
|
WT_File m_DWFFile;
|
|
BOOL m_isOpen;
|
|
|
|
DWFString m_W2DFileName;
|
|
|
|
};
|