home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 275 / DPCS0111DVD.ISO / Toolkit / Audio-Visual / VirtualDub / Source / VirtualDub-1.9.10-src.7z / src / Asuka / h / utils.h < prev   
Encoding:
C/C++ Source or Header  |  2009-09-14  |  1.4 KB  |  50 lines

  1. //    Asuka - VirtualDub Build/Post-Mortem Utility
  2. //    Copyright (C) 2005 Avery Lee
  3. //
  4. //    This program is free software; you can redistribute it and/or modify
  5. //    it under the terms of the GNU General Public License as published by
  6. //    the Free Software Foundation; either version 2 of the License, or
  7. //    (at your option) any later version.
  8. //
  9. //    This program is distributed in the hope that it will be useful,
  10. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. //    GNU General Public License for more details.
  13. //
  14. //    You should have received a copy of the GNU General Public License
  15. //    along with this program; if not, write to the Free Software
  16. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #ifndef f_ASUKA_UTILS_H
  19. #define f_ASUKA_UTILS_H
  20.  
  21. #include <vd2/system/vdtypes.h>
  22. #include <vd2/system/VDString.h>
  23. #include <string>
  24.  
  25. void VDNORETURN help();
  26. void VDNORETURN fail(const char *format, ...);
  27.  
  28. void canonicalize_name(std::string& name);
  29. void canonicalize_name(VDStringA& name);
  30. std::string get_name();
  31. int get_version();
  32. bool read_version();
  33. void inc_version(const char *tag);
  34. bool write_version(const char *tag);
  35.  
  36. class ProjectSetup {
  37. public:
  38.     ProjectSetup();
  39.     ~ProjectSetup();
  40.  
  41.     void Query();
  42.     void Read(const wchar_t *filename);
  43.     void Write(const wchar_t *filename);
  44.  
  45.     VDStringA    mCounterTag;
  46. };
  47.  
  48.  
  49. #endif
  50.