diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-04-18 11:37:12 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-04-18 18:46:08 +0200 |
commit | ffc06b27d083c905788c12c21e26e03cfb15543b (patch) | |
tree | 0f0d339538798da1749b5b727137c2ede01bfed5 /src/common/DataStores/DB2FileLoader.h | |
parent | c603c9d9e0d641826514e7413d45e918f58a2c85 (diff) |
Core/DataStores: Minor db2 loader cleanup
Diffstat (limited to 'src/common/DataStores/DB2FileLoader.h')
-rw-r--r-- | src/common/DataStores/DB2FileLoader.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/common/DataStores/DB2FileLoader.h b/src/common/DataStores/DB2FileLoader.h index 9e3f7c465f3..46692708bdf 100644 --- a/src/common/DataStores/DB2FileLoader.h +++ b/src/common/DataStores/DB2FileLoader.h @@ -95,6 +95,12 @@ enum class DB2EncryptedSectionHandling struct TC_COMMON_API DB2FileSource { + DB2FileSource(); + DB2FileSource(DB2FileSource const& other) = delete; + DB2FileSource(DB2FileSource&& other) noexcept = delete; + DB2FileSource& operator=(DB2FileSource const& other) = delete; + DB2FileSource& operator=(DB2FileSource&& other) noexcept = delete; + virtual ~DB2FileSource(); // Returns true when the source is open for reading @@ -120,9 +126,13 @@ class TC_COMMON_API DB2Record { public: DB2Record(DB2FileLoaderImpl const& db2, uint32 recordIndex, std::size_t* fieldOffsets); + DB2Record(DB2Record const& other); + DB2Record(DB2Record&& other) noexcept; + DB2Record& operator=(DB2Record const& other) = delete; + DB2Record& operator=(DB2Record&& other) noexcept = delete; ~DB2Record(); - operator bool(); + explicit operator bool() const; uint32 GetId() const; @@ -176,6 +186,10 @@ class TC_COMMON_API DB2FileLoader { public: DB2FileLoader(); + DB2FileLoader(DB2FileLoader const& other) = delete; + DB2FileLoader(DB2FileLoader&& other) noexcept = delete; + DB2FileLoader& operator=(DB2FileLoader const& other) = delete; + DB2FileLoader& operator=(DB2FileLoader&& other) noexcept = delete; ~DB2FileLoader(); // loadInfo argument is required when trying to read data from the file |