home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 5257 / source.7z / x_gamebryo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2012-01-01  |  697 b   |  53 lines

  1. #include "xentax.h"
  2.  
  3. namespace Gamebryo {
  4.  
  5. class extractor {
  6.  private :
  7.   std::string pathname;
  8.  private :
  9.  public :
  10.   bool extract(void);
  11.   void clear(void);
  12.  public :
  13.   extractor(const char* path);
  14.  ~extractor();
  15. };
  16.  
  17. extractor::extractor(const char* path) : pathname(path)
  18. {
  19. }
  20.  
  21. extractor::~extractor()
  22. {
  23. }
  24.  
  25. bool extractor::extract(void)
  26. {
  27.  // clear previous
  28.  clear();
  29.  
  30.  return true;
  31. }
  32.  
  33. void extractor::clear(void)
  34. {
  35. }
  36.  
  37. };
  38.  
  39. namespace Gamebryo {
  40.  
  41. bool extract(void)
  42. {
  43.  char pathname[MAX_PATH];
  44.  GetModulePathname(pathname, MAX_PATH);
  45.  return extract(pathname);
  46. }
  47.  
  48. bool extract(const char* pathname)
  49. {
  50.  return extractor(pathname).extract();
  51. }
  52.  
  53. };