PropSetSimple.h 781 B

123456789101112131415161718192021222324252627282930313233
  1. // Scintilla source code edit control
  2. /** @file PropSetSimple.h
  3. ** A basic string to string map.
  4. **/
  5. // Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org>
  6. // The License.txt file describes the conditions under which this software may be distributed.
  7. #ifndef PROPSETSIMPLE_H
  8. #define PROPSETSIMPLE_H
  9. #ifdef SCI_NAMESPACE
  10. namespace Scintilla {
  11. #endif
  12. class PropSetSimple {
  13. void *impl;
  14. void Set(const char *keyVal);
  15. public:
  16. PropSetSimple();
  17. virtual ~PropSetSimple();
  18. void Set(const char *key, const char *val, int lenKey=-1, int lenVal=-1);
  19. void SetMultiple(const char *);
  20. const char *Get(const char *key) const;
  21. int GetExpanded(const char *key, char *result) const;
  22. int GetInt(const char *key, int defaultValue=0) const;
  23. };
  24. #ifdef SCI_NAMESPACE
  25. }
  26. #endif
  27. #endif