XMLDICOMDataSet.hpp 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. class DMarkup;
  3. class DString;
  4. #ifdef XMLDDS_EXPORTS
  5. #define XMLDDS_API __declspec(dllexport)
  6. #else
  7. #define XMLDDS_API __declspec(dllimport)
  8. #endif
  9. class XMLDDS_API XMLDICOMDataSet
  10. {
  11. public:
  12. XMLDICOMDataSet (void);
  13. ~XMLDICOMDataSet (void);
  14. protected:
  15. DMarkup * xml;
  16. public:
  17. bool SetDoc (LPCTSTR string);
  18. bool SetDoc (DString & string);
  19. DString GetDoc (void) const;
  20. bool ReadFile (LPCTSTR szFileName);
  21. bool WriteFile (LPCTSTR szFileName);
  22. public:
  23. DString Get (USHORT g, USHORT e);
  24. DString GetSequence (USHORT g, USHORT e, int Index);
  25. void Set (USHORT g, USHORT e, const DString & string);
  26. void Set (USHORT g, USHORT e, LPCTSTR string);
  27. bool SetSequence (USHORT g, USHORT e, const DString & string);
  28. bool SetSequence (USHORT g, USHORT e, LPCTSTR string);
  29. bool Remove (USHORT g, USHORT e);
  30. bool IsExist (USHORT g, USHORT e);
  31. const char * GetVersion (void) const;
  32. };