WSYS_StdFileSystem.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. ** Command & Conquer Generals Zero Hour(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. //----------------------------------------------------------------------------=
  19. //
  20. // Westwood Studios Pacific.
  21. //
  22. // Confidential Information
  23. // Copyright(C) 2001 - All Rights Reserved
  24. //
  25. //----------------------------------------------------------------------------
  26. //
  27. // Project: WSYS Library
  28. //
  29. // Module: IO
  30. //
  31. // File name: wsys/StdFileSystem.h
  32. //
  33. // Created:
  34. //
  35. //----------------------------------------------------------------------------
  36. #pragma once
  37. #ifndef __WSYS_STDFILESYSTEM_H
  38. #define __WSYS_STDFILESYSTEM_H
  39. //----------------------------------------------------------------------------
  40. // Includes
  41. //----------------------------------------------------------------------------
  42. #ifndef __WSYS_FILE_H
  43. #include "wsys_File.h"
  44. #endif
  45. #ifndef __WSYS_FILESYSTEM_H
  46. #include "wsys_FileSystem.h"
  47. #endif
  48. //----------------------------------------------------------------------------
  49. // Forward References
  50. //----------------------------------------------------------------------------
  51. //----------------------------------------------------------------------------
  52. // Type Defines
  53. //----------------------------------------------------------------------------
  54. //===============================
  55. // StdFileSystem
  56. //===============================
  57. /**
  58. * FileSystem that maps directly to StdFile files.
  59. */
  60. //===============================
  61. class StdFileSystem : public FileSystem
  62. {
  63. public:
  64. virtual ~StdFileSystem();
  65. virtual File* open( const Char *filename, Int access = 0 ); ///< Creates a StdFile object and opens the file with it: See FileSystem::open
  66. };
  67. //----------------------------------------------------------------------------
  68. // Inlining
  69. //----------------------------------------------------------------------------
  70. #endif // __WSYS_STDFILESYSTEM_H