12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #pragma once
- #include "MsrParams.h"
- #include "OTSFileSys.h"
- #include "OTSHelper.h"
- namespace OTSMODEL {
- using namespace OTSDATA;
- // measurement parameters file mark
- const int MRS_PARAM_FILE_MARK = 'M' + 'E' + 'A' + 'S' + 'U' + 'R' + 'E' +'P' + 'A'+ 'R' + 'A' + 'M';
- // measurement parameters file version string
- const CString MRS_PARAM_FILE_VERSION = _T("1.1.1");
- // measurement parameters file
- const CString MESUREMENT_PARAM_FILE_EXT = _T(".mrp");
- const CString MESUREMENT_PARAM_FILE_FILTER = _T("Measurement Parmeters Files (*.mrp)|*.mrp||");
- class __declspec(dllexport) CMsrParamFileMrg : public xmls::ISlo
- {
-
- public:
- CMsrParamFileMrg(); // constructor
- virtual ~CMsrParamFileMrg(); // destructor
-
- // serialization
-
- void Serialize(bool isStoring, tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode);
- // Load/Save
- BOOL Load(CString a_strPathName = _T(""), BOOL a_bClear = TRUE);
- BOOL Save(CString a_strPathName = _T(""));
- // file pathname
- CString GetPathName() { return m_strPathName; }
- void SetPathName(CString a_strPathName) { m_strPathName = a_strPathName; }
- // measurement parameters file
- CMsrParamsPtr GetMsrParams() { return m_poMsrParams; }
- void SetMsrParamFile(CMsrParamsPtr a_poMsrParams);
- protected:
- // cleanup
- void Cleanup();
- // initialization
- void Init();
- // duplication
- void Duplicate(const CMsrParamFileMrg& a_oSource);
- // file pathname
- CString m_strPathName;
- // measurement parameters
- CMsrParamsPtr m_poMsrParams;
- };
- typedef std::shared_ptr<CMsrParamFileMrg> __declspec(dllexport) CMsrParamFileMgrPtr;
- }
|