DataString.h 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef _PARTICLE_DATA_STRING_H_
  2. #define _PARTICLE_DATA_STRING_H_
  3. #include <string.h>
  4. #include <stdarg.h>
  5. #include <stdio.h>
  6. #include "../../../common_h/core.h"
  7. #include "../../../common_h/templates.h"
  8. #include "..\..\icommon\memfile.h"
  9. class FieldList;
  10. class TextFile;
  11. #ifndef _XBOX
  12. class TiXmlElement;
  13. #endif
  14. class DataString
  15. {
  16. FieldList* Master;
  17. const char* szName;
  18. const char* szEditorName;
  19. string Value;
  20. public:
  21. //конструктор/деструктор
  22. DataString (FieldList* pMaster);
  23. virtual ~DataString ();
  24. //Получить значение
  25. const char* GetValue ();
  26. //Установить значение
  27. void SetValue (const char* val);
  28. void Load (MemFile* File);
  29. #ifndef _XBOX
  30. void LoadXML (TiXmlElement* root);
  31. void WriteXML (TextFile* xmlFile, dword level);
  32. #endif
  33. void Write (MemFile* File);
  34. void SetName (const char* szName, const char* szEditorName);
  35. const char* GetEditorName ();
  36. const char* GetName ();
  37. };
  38. #endif