Skip to content

Commit

Permalink
Missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed May 23, 2024
1 parent 51e1f5d commit f117cb4
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/Jazz2.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@
<ClInclude Include="$(ExtensionLibraryPath)\Containers\StringConcatenable.h" />
<ClInclude Include="$(ExtensionLibraryPath)\Containers\StringStl.h" />
<ClInclude Include="$(ExtensionLibraryPath)\IO\FileAccessMode.h" />
<ClInclude Include="$(ExtensionLibraryPath)\Base\IDisposable.h" />
<ClInclude Include="simdjson\simdjson.h" />
</ItemGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions Sources/Jazz2.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,9 @@
<ClInclude Include="$(ExtensionLibraryPath)\IO\FileAccessMode.h">
<Filter>Header Files\Shared\IO</Filter>
</ClInclude>
<ClInclude Include="$(ExtensionLibraryPath)\Base\IDisposable.h">
<Filter>Header Files\Shared\Base</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Main.cpp">
Expand Down
18 changes: 18 additions & 0 deletions Sources/Shared/Base/IDisposable.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#pragma once

namespace Death {
//###==##====#=====--==~--~=~- --- -- - - - -

/**
@brief Provides base interface for releasing resources on object destruction
*/
class IDisposable
{
public:
IDisposable() {}
virtual ~IDisposable() = 0;
};

inline IDisposable::~IDisposable() {}

}
4 changes: 3 additions & 1 deletion Sources/Shared/IO/FileAccessMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
namespace Death { namespace IO {
//###==##====#=====--==~--~=~- --- -- - - - -

/** @brief Defines constants for read, write, or read/write access to a file */
/**
@brief Defines constants for read, write, or read/write access to a file
*/
enum struct FileAccessMode {
None = 0,
Read = 0x01,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Shared/IO/Stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#endif

#include "../Common.h"
#include "../IDisposable.h"
#include "../Base/IDisposable.h"

#include <cstdio> // For FILE
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions cmake/ncine_headers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set(HEADERS
${NCINE_SOURCE_DIR}/Shared/IntrinsicsSse4.h
${NCINE_SOURCE_DIR}/Shared/IntrinsicsSsse3.h
${NCINE_SOURCE_DIR}/Shared/Utf8.h
${NCINE_SOURCE_DIR}/Shared/Base/IDisposable.h
${NCINE_SOURCE_DIR}/Shared/Base/TypeInfo.h
${NCINE_SOURCE_DIR}/Shared/Base/Unaligned.h
${NCINE_SOURCE_DIR}/Shared/Containers/Array.h
Expand Down

0 comments on commit f117cb4

Please sign in to comment.