Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.0 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: filespec.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef ESPUTIL_FILESPEC_H
  11. #define ESPUTIL_FILESPEC_H
  12. #pragma warning(disable: 4275) // non dll-interface class 'foo' used
  13. // as base for dll-interface class 'bar'
  14. class LTAPIENTRY CFileSpec : public CObject
  15. {
  16. public:
  17. NOTHROW CFileSpec();
  18. NOTHROW CFileSpec(const CFileSpec &);
  19. NOTHROW CFileSpec(const CPascalString &, const DBID &);
  20. void AssertValid(void) const;
  21. NOTHROW void SetFileName(const CPascalString &);
  22. NOTHROW void SetFileId(const DBID &);
  23. NOTHROW const CPascalString & GetFileName(void) const;
  24. NOTHROW const DBID & GetFileId(void) const;
  25. NOTHROW const CFileSpec & operator=(const CFileSpec &);
  26. ~CFileSpec();
  27. private:
  28. CPascalString m_pasFileName;
  29. DBID m_didFileId;
  30. };
  31. #pragma warning(default: 4275)
  32. #endif