Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
957 B

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMEBASEIMPORTER_H
  7. #define DMEBASEIMPORTER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/idatamodel.h"
  12. class CDmeBaseImporter : public IDmLegacyUpdater
  13. {
  14. typedef IDmLegacyUpdater BaseClass;
  15. public:
  16. CDmeBaseImporter( char const *formatName, char const *nextFormatName );
  17. virtual const char *GetName() const { return m_pFormatName; }
  18. virtual bool IsLatestVersion() const;
  19. virtual bool Update( CDmElement **ppRoot );
  20. private:
  21. virtual bool DoFixup( CDmElement *pRoot ) = 0;
  22. protected:
  23. char const *m_pFormatName;
  24. char const *m_pNextSerializer;
  25. };
  26. class CSFMBaseImporter : public CDmeBaseImporter
  27. {
  28. typedef CDmeBaseImporter BaseClass;
  29. public:
  30. CSFMBaseImporter( char const *formatName, char const *nextFormatName );
  31. };
  32. #endif // DMEBASEIMPORTER_H