tagz.h 764 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef NULLSOFT_TAGZH
  2. #define NULLSOFT_TAGZH
  3. #include "string.h"
  4. #include "varlist.h"
  5. #include "ifc_tagprovider.h"
  6. #include "ifc_tagparams.h"
  7. class FMT
  8. {
  9. public:
  10. FMT() : vars(0), org_spec(0), spec(0), tagProvider(0), parameters(0), found(0) { }
  11. FMT(const wchar_t *p_spec, ifc_tagprovider *tagProvider, ifc_tagparams *_parameters, VarList * _vars);
  12. operator LPTSTR ();
  13. ~FMT();
  14. void Open(const wchar_t *p_spec, ifc_tagprovider *tagProvider, ifc_tagparams *_parameters, VarList * _vars);
  15. private:
  16. void run();
  17. void Error(LPTSTR e = 0);
  18. FMT(FMT *base, LPTSTR _spec);
  19. LPTSTR _FMT(LPTSTR s, size_t *f = 0);
  20. private:
  21. tagz_::string str;
  22. VarList *vars;
  23. LPTSTR org_spec, spec;
  24. ifc_tagprovider *tagProvider;
  25. ifc_tagparams *parameters;
  26. int found;
  27. };
  28. #endif