1
0

structures.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //---------------------------------------------------------------------------
  2. #include "stdafx.h"
  3. AFX_COMDAT int _afxInitDataA[] = { -1, 0, 0, 0 };
  4. AFX_COMDAT CStringDataA* _afxDataNilA = (CStringDataA*)&_afxInitDataA;
  5. AFX_COMDAT LPCSTR _afxPchNilA = (LPCSTR)(((BYTE*)&_afxInitDataA)+sizeof(CStringDataA));
  6. t_directory::t_directory()
  7. {
  8. direntry=0;
  9. num=0;
  10. }
  11. t_directory::~t_directory()
  12. {
  13. if (direntry)
  14. delete [] direntry;
  15. }
  16. t_directory& t_directory::operator=(const t_directory &a)
  17. {
  18. if (&a==this)
  19. return *this;
  20. if (direntry)
  21. delete [] direntry;
  22. direntry=0;
  23. path=a.path;
  24. num=a.num;
  25. server=a.server;
  26. if (num)
  27. direntry=new t_directory::t_direntry[num];
  28. for (int i=0;i<num;i++)
  29. direntry[i]=a.direntry[i];
  30. return *this;
  31. }
  32. t_directory::t_direntry::t_direntry()
  33. {
  34. dir=FALSE;
  35. size=0;
  36. bUnsure=TRUE;
  37. bLink=FALSE;
  38. }
  39. t_directory::t_direntry::t_date::t_date()
  40. {
  41. year=month=day=hour=minute=second=0;
  42. hasdate=hastime=hasyear=hasseconds=utc=FALSE;
  43. }