remove unused var from deleted stuff
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
8f9b3965ed
commit
fafe999c6e
@ -98,7 +98,7 @@ class TaskFactory {
|
||||
static TaskFactory& instance();
|
||||
|
||||
//! Prevent copy construction: not implemented.
|
||||
TaskFactory(const TaskFactory& rhs) = delete;
|
||||
TaskFactory(const TaskFactory&) = delete;
|
||||
|
||||
//! Destructor
|
||||
void cleanup();
|
||||
|
||||
@ -116,7 +116,7 @@ class Params : public Util::Getopt {
|
||||
static Params& instance();
|
||||
|
||||
//! Prevent copy-construction: not implemented.
|
||||
Params(const Params& rhs) = delete;
|
||||
Params(const Params&) = delete;
|
||||
|
||||
//! Enumerates print modes
|
||||
enum PrintMode {
|
||||
|
||||
@ -79,7 +79,7 @@ class EXIV2API BasicIo {
|
||||
@return Number of bytes written to IO source successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
virtual size_t write(const byte *data, size_t wcount) = 0;
|
||||
virtual size_t write(const byte* data, size_t wcount) = 0;
|
||||
/*!
|
||||
@brief Write data that is read from another BasicIo instance to
|
||||
the IO source. Current IO position is advanced by the number
|
||||
@ -89,7 +89,7 @@ class EXIV2API BasicIo {
|
||||
@return Number of bytes written to IO source successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
virtual size_t write(BasicIo &src) = 0;
|
||||
virtual size_t write(BasicIo& src) = 0;
|
||||
/*!
|
||||
@brief Write one byte to the IO source. Current IO position is
|
||||
advanced by one byte.
|
||||
@ -121,7 +121,7 @@ class EXIV2API BasicIo {
|
||||
@return Number of bytes read from IO source successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
virtual size_t read(byte *buf, size_t rcount) = 0;
|
||||
virtual size_t read(byte* buf, size_t rcount) = 0;
|
||||
/*!
|
||||
@brief Safe version of `read()` that checks for errors and throws
|
||||
an exception if the read was unsuccessful.
|
||||
@ -132,7 +132,7 @@ class EXIV2API BasicIo {
|
||||
read if \em rcount bytes are not available.
|
||||
@param err Error code to use if an exception is thrown.
|
||||
*/
|
||||
void readOrThrow(byte *buf, size_t rcount, ErrorCode err);
|
||||
void readOrThrow(byte* buf, size_t rcount, ErrorCode err);
|
||||
/*!
|
||||
@brief Read one byte from the IO source. Current IO position is
|
||||
advanced by one byte.
|
||||
@ -153,7 +153,7 @@ class EXIV2API BasicIo {
|
||||
invalidated by the method.
|
||||
@throw Error In case of failure
|
||||
*/
|
||||
virtual void transfer(BasicIo &src) = 0;
|
||||
virtual void transfer(BasicIo& src) = 0;
|
||||
/*!
|
||||
@brief Move the current IO position.
|
||||
@param offset Number of bytes to move the position relative
|
||||
@ -183,7 +183,7 @@ class EXIV2API BasicIo {
|
||||
@return A pointer to the mapped area.
|
||||
@throw Error In case of failure.
|
||||
*/
|
||||
virtual byte *mmap(bool isWriteable = false) = 0;
|
||||
virtual byte* mmap(bool isWriteable = false) = 0;
|
||||
/*!
|
||||
@brief Remove a mapping established with mmap(). If the mapped area
|
||||
is writeable, this ensures that changes are written back.
|
||||
@ -219,7 +219,7 @@ class EXIV2API BasicIo {
|
||||
comprehensive error messages where only a BasicIo instance is
|
||||
available.
|
||||
*/
|
||||
[[nodiscard]] virtual const std::string &path() const noexcept = 0;
|
||||
[[nodiscard]] virtual const std::string& path() const noexcept = 0;
|
||||
|
||||
/*!
|
||||
@brief Mark all the bNone blocks to bKnow. This avoids allocating memory
|
||||
@ -233,7 +233,7 @@ class EXIV2API BasicIo {
|
||||
/*!
|
||||
@brief this is allocated and populated by mmap()
|
||||
*/
|
||||
byte *bigBlock_{};
|
||||
byte* bigBlock_{};
|
||||
|
||||
//@}
|
||||
}; // class BasicIo
|
||||
@ -249,7 +249,7 @@ class EXIV2API IoCloser {
|
||||
//! @name Creators
|
||||
//@{
|
||||
//! Constructor, takes a BasicIo reference
|
||||
explicit IoCloser(BasicIo &bio) : bio_(bio) {
|
||||
explicit IoCloser(BasicIo& bio) : bio_(bio) {
|
||||
}
|
||||
//! Destructor, closes the BasicIo reference
|
||||
virtual ~IoCloser() {
|
||||
@ -268,13 +268,13 @@ class EXIV2API IoCloser {
|
||||
|
||||
// DATA
|
||||
//! The BasicIo reference
|
||||
BasicIo &bio_;
|
||||
BasicIo& bio_;
|
||||
|
||||
// Not implemented
|
||||
//! Copy constructor
|
||||
IoCloser(const IoCloser &) = delete;
|
||||
IoCloser(const IoCloser&) = delete;
|
||||
//! Assignment operator
|
||||
IoCloser &operator=(const IoCloser &) = delete;
|
||||
IoCloser& operator=(const IoCloser&) = delete;
|
||||
}; // class IoCloser
|
||||
|
||||
/*!
|
||||
@ -291,7 +291,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
therefore never fails.
|
||||
@param path The full path of a file
|
||||
*/
|
||||
explicit FileIo(const std::string &path);
|
||||
explicit FileIo(const std::string& path);
|
||||
|
||||
//! Destructor. Flushes and closes an open file.
|
||||
~FileIo() override;
|
||||
@ -312,7 +312,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
@return 0 if successful;<BR>
|
||||
Nonzero if failure.
|
||||
*/
|
||||
int open(const std::string &mode);
|
||||
int open(const std::string& mode);
|
||||
/*!
|
||||
@brief Open the file using the default access mode of "rb".
|
||||
This method can also be used to "reopen" a file which will flush
|
||||
@ -337,7 +337,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
@return Number of bytes written to the file successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t write(const byte *data, size_t wcount) override;
|
||||
size_t write(const byte* data, size_t wcount) override;
|
||||
/*!
|
||||
@brief Write data that is read from another BasicIo instance to
|
||||
the file. The file position is advanced by the number
|
||||
@ -347,7 +347,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
@return Number of bytes written to the file successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t write(BasicIo &src) override;
|
||||
size_t write(BasicIo& src) override;
|
||||
/*!
|
||||
@brief Write one byte to the file. The file position is
|
||||
advanced by one byte.
|
||||
@ -379,7 +379,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
@return Number of bytes read from the file successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t read(byte *buf, size_t rcount) override;
|
||||
size_t read(byte* buf, size_t rcount) override;
|
||||
/*!
|
||||
@brief Read one byte from the file. The file position is
|
||||
advanced by one byte.
|
||||
@ -405,7 +405,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
invalidated by the method.
|
||||
@throw Error In case of failure
|
||||
*/
|
||||
void transfer(BasicIo &src) override;
|
||||
void transfer(BasicIo& src) override;
|
||||
|
||||
int seek(int64_t offset, Position pos) override;
|
||||
|
||||
@ -420,7 +420,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
@return A pointer to the mapped area.
|
||||
@throw Error In case of failure.
|
||||
*/
|
||||
byte *mmap(bool isWriteable = false) override;
|
||||
byte* mmap(bool isWriteable = false) override;
|
||||
/*!
|
||||
@brief Remove a mapping established with mmap(). If the mapped area is
|
||||
writeable, this ensures that changes are written back to the
|
||||
@ -432,7 +432,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
/*!
|
||||
@brief close the file source and set a new path.
|
||||
*/
|
||||
virtual void setPath(const std::string &path);
|
||||
virtual void setPath(const std::string& path);
|
||||
|
||||
//@}
|
||||
//! @name Accessors
|
||||
@ -457,7 +457,7 @@ class EXIV2API FileIo : public BasicIo {
|
||||
//! Returns true if the file position has reached the end, otherwise false.
|
||||
[[nodiscard]] bool eof() const override;
|
||||
//! Returns the path of the file
|
||||
[[nodiscard]] const std::string &path() const noexcept override;
|
||||
[[nodiscard]] const std::string& path() const noexcept override;
|
||||
|
||||
/*!
|
||||
@brief Mark all the bNone blocks to bKnow. This avoids allocating memory
|
||||
@ -471,9 +471,9 @@ class EXIV2API FileIo : public BasicIo {
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
//! Copy constructor
|
||||
FileIo(FileIo &rhs) = delete;
|
||||
FileIo(const FileIo&) = delete;
|
||||
//! Assignment operator
|
||||
FileIo &operator=(const FileIo &rhs) = delete;
|
||||
FileIo& operator=(const FileIo&) = delete;
|
||||
|
||||
private:
|
||||
// Pimpl idiom
|
||||
@ -507,7 +507,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
@param data Pointer to data. Data must be at least \em size bytes long
|
||||
@param size Number of bytes to copy.
|
||||
*/
|
||||
MemIo(const byte *data, size_t size);
|
||||
MemIo(const byte* data, size_t size);
|
||||
//! Destructor. Releases all managed memory
|
||||
~MemIo() override;
|
||||
//@}
|
||||
@ -536,7 +536,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
@return Number of bytes written to the memory block successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t write(const byte *data, size_t wcount) override;
|
||||
size_t write(const byte* data, size_t wcount) override;
|
||||
/*!
|
||||
@brief Write data that is read from another BasicIo instance to
|
||||
the memory block. If needed, the size of the internal memory
|
||||
@ -547,7 +547,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
@return Number of bytes written to the memory block successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t write(BasicIo &src) override;
|
||||
size_t write(BasicIo& src) override;
|
||||
/*!
|
||||
@brief Write one byte to the memory block. The IO position is
|
||||
advanced by one byte.
|
||||
@ -579,7 +579,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
@return Number of bytes read from the memory block successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t read(byte *buf, size_t rcount) override;
|
||||
size_t read(byte* buf, size_t rcount) override;
|
||||
/*!
|
||||
@brief Read one byte from the memory block. The IO position is
|
||||
advanced by one byte.
|
||||
@ -602,7 +602,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
invalidated by the method.
|
||||
@throw Error In case of failure
|
||||
*/
|
||||
void transfer(BasicIo &src) override;
|
||||
void transfer(BasicIo& src) override;
|
||||
|
||||
int seek(int64_t offset, Position pos) override;
|
||||
|
||||
@ -614,7 +614,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
returned pointer remains valid and allocated as long as the
|
||||
MemIo object exists.
|
||||
*/
|
||||
byte *mmap(bool /*isWriteable*/ = false) override;
|
||||
byte* mmap(bool /*isWriteable*/ = false) override;
|
||||
int munmap() override;
|
||||
//@}
|
||||
|
||||
@ -638,7 +638,7 @@ class EXIV2API MemIo : public BasicIo {
|
||||
//! Returns true if the IO position has reached the end, otherwise false.
|
||||
[[nodiscard]] bool eof() const override;
|
||||
//! Returns a dummy path, indicating that memory access is used
|
||||
[[nodiscard]] const std::string &path() const noexcept override;
|
||||
[[nodiscard]] const std::string& path() const noexcept override;
|
||||
|
||||
/*!
|
||||
@brief Mark all the bNone blocks to bKnow. This avoids allocating memory
|
||||
@ -653,9 +653,9 @@ class EXIV2API MemIo : public BasicIo {
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
//! Copy constructor
|
||||
MemIo(MemIo &rhs) = delete;
|
||||
MemIo(const MemIo&) = delete;
|
||||
//! Assignment operator
|
||||
MemIo &operator=(const MemIo &rhs) = delete;
|
||||
MemIo& operator=(const MemIo&) = delete;
|
||||
|
||||
private:
|
||||
// Pimpl idiom
|
||||
@ -673,7 +673,7 @@ class EXIV2API XPathIo : public MemIo {
|
||||
//! @name Creators
|
||||
//@{
|
||||
//! Default constructor
|
||||
XPathIo(const std::string &path);
|
||||
XPathIo(const std::string& path);
|
||||
//@}
|
||||
private:
|
||||
/*!
|
||||
@ -686,7 +686,7 @@ class EXIV2API XPathIo : public MemIo {
|
||||
@param path The data uri.
|
||||
@throw Error if no base64 data in path.
|
||||
*/
|
||||
void ReadDataUri(const std::string &path);
|
||||
void ReadDataUri(const std::string& path);
|
||||
}; // class XPathIo
|
||||
#else
|
||||
class EXIV2API XPathIo : public FileIo {
|
||||
@ -705,7 +705,7 @@ class EXIV2API XPathIo : public FileIo {
|
||||
//! @name Creators
|
||||
//@{
|
||||
//! Default constructor that reads data from stdin/data uri path and writes them to the temp file.
|
||||
explicit XPathIo(const std::string &orgPath);
|
||||
explicit XPathIo(const std::string& orgPath);
|
||||
|
||||
//! Destructor. Releases all managed memory and removes the temp file.
|
||||
~XPathIo() override;
|
||||
@ -717,7 +717,7 @@ class EXIV2API XPathIo : public FileIo {
|
||||
@brief Change the name of the temp file and make it untemporary before
|
||||
calling the method of superclass FileIo::transfer.
|
||||
*/
|
||||
void transfer(BasicIo &src) override;
|
||||
void transfer(BasicIo& src) override;
|
||||
|
||||
//@}
|
||||
|
||||
@ -729,7 +729,7 @@ class EXIV2API XPathIo : public FileIo {
|
||||
@return the name of the new file.
|
||||
@throw Error if it fails.
|
||||
*/
|
||||
static std::string writeDataToFile(const std::string &orgPath);
|
||||
static std::string writeDataToFile(const std::string& orgPath);
|
||||
//@}
|
||||
|
||||
private:
|
||||
@ -774,7 +774,7 @@ class EXIV2API RemoteIo : public BasicIo {
|
||||
@brief Not support this method.
|
||||
@return 0 means failure
|
||||
*/
|
||||
size_t write(const byte *data, size_t wcount) override;
|
||||
size_t write(const byte* data, size_t wcount) override;
|
||||
/*!
|
||||
@brief Write data that is read from another BasicIo instance to the remote file.
|
||||
|
||||
@ -789,7 +789,7 @@ class EXIV2API RemoteIo : public BasicIo {
|
||||
|
||||
@note The write access is only supported by http, https, ssh.
|
||||
*/
|
||||
size_t write(BasicIo &src) override;
|
||||
size_t write(BasicIo& src) override;
|
||||
|
||||
/*!
|
||||
@brief Not support
|
||||
@ -823,7 +823,7 @@ class EXIV2API RemoteIo : public BasicIo {
|
||||
@return Number of bytes read from the memory block successfully;<BR>
|
||||
0 if failure;
|
||||
*/
|
||||
size_t read(byte *buf, size_t rcount) override;
|
||||
size_t read(byte* buf, size_t rcount) override;
|
||||
/*!
|
||||
@brief Read one byte from the memory blocks. The IO position is
|
||||
advanced by one byte.
|
||||
@ -847,7 +847,7 @@ class EXIV2API RemoteIo : public BasicIo {
|
||||
|
||||
@note The write access is only supported by http, https, ssh.
|
||||
*/
|
||||
void transfer(BasicIo &src) override;
|
||||
void transfer(BasicIo& src) override;
|
||||
|
||||
int seek(int64_t offset, Position pos) override;
|
||||
|
||||
@ -855,7 +855,7 @@ class EXIV2API RemoteIo : public BasicIo {
|
||||
@brief Not support
|
||||
@return NULL
|
||||
*/
|
||||
byte *mmap(bool /*isWriteable*/ = false) override;
|
||||
byte* mmap(bool /*isWriteable*/ = false) override;
|
||||
/*!
|
||||
@brief Not support
|
||||
@return 0
|
||||
@ -882,7 +882,7 @@ class EXIV2API RemoteIo : public BasicIo {
|
||||
//! Returns true if the IO position has reached the end, otherwise false.
|
||||
[[nodiscard]] bool eof() const override;
|
||||
//! Returns the URL of the file.
|
||||
[[nodiscard]] const std::string &path() const noexcept override;
|
||||
[[nodiscard]] const std::string& path() const noexcept override;
|
||||
|
||||
/*!
|
||||
@brief Mark all the bNone blocks to bKnow. This avoids allocating memory
|
||||
@ -918,13 +918,13 @@ class EXIV2API HttpIo : public RemoteIo {
|
||||
divided into the memory blocks. These blocks are populated
|
||||
on demand from the server, so it avoids copying the complete file.
|
||||
*/
|
||||
explicit HttpIo(const std::string &url, size_t blockSize = 1024);
|
||||
explicit HttpIo(const std::string& url, size_t blockSize = 1024);
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
//! Copy constructor
|
||||
HttpIo(HttpIo &rhs) = delete;
|
||||
HttpIo(const HttpIo&) = delete;
|
||||
//! Assignment operator
|
||||
HttpIo &operator=(const HttpIo &rhs) = delete;
|
||||
HttpIo& operator=(const HttpIo&) = delete;
|
||||
|
||||
private:
|
||||
// Pimpl idiom
|
||||
@ -949,26 +949,26 @@ class EXIV2API CurlIo : public RemoteIo {
|
||||
on demand from the server, so it avoids copying the complete file.
|
||||
@throw Error if it is unable to init curl pointer.
|
||||
*/
|
||||
explicit CurlIo(const std::string &url, size_t blockSize = 0);
|
||||
explicit CurlIo(const std::string& url, size_t blockSize = 0);
|
||||
|
||||
/*!
|
||||
@brief Write access is only available for some protocols. This method
|
||||
will call RemoteIo::write(const byte* data, long wcount) if the write
|
||||
access is available for the protocol. Otherwise, it throws the Error.
|
||||
*/
|
||||
size_t write(const byte *data, size_t wcount) override;
|
||||
size_t write(const byte* data, size_t wcount) override;
|
||||
/*!
|
||||
@brief Write access is only available for some protocols. This method
|
||||
will call RemoteIo::write(BasicIo& src) if the write access is available
|
||||
for the protocol. Otherwise, it throws the Error.
|
||||
*/
|
||||
size_t write(BasicIo &src) override;
|
||||
size_t write(BasicIo& src) override;
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
//! Copy constructor
|
||||
CurlIo(CurlIo &rhs) = delete;
|
||||
CurlIo(const CurlIo&) = delete;
|
||||
//! Assignment operator
|
||||
CurlIo &operator=(const CurlIo &rhs) = delete;
|
||||
CurlIo& operator=(const CurlIo&) = delete;
|
||||
|
||||
protected:
|
||||
// Pimpl idiom
|
||||
@ -984,18 +984,18 @@ class EXIV2API CurlIo : public RemoteIo {
|
||||
@return Buffer containing the file.
|
||||
@throw Error In case of failure.
|
||||
*/
|
||||
EXIV2API DataBuf readFile(const std::string &path);
|
||||
EXIV2API DataBuf readFile(const std::string& path);
|
||||
/*!
|
||||
@brief Write DataBuf \em buf to file \em path.
|
||||
@return Return the number of bytes written.
|
||||
@throw Error In case of failure.
|
||||
*/
|
||||
EXIV2API size_t writeFile(const DataBuf &buf, const std::string &path);
|
||||
EXIV2API size_t writeFile(const DataBuf& buf, const std::string& path);
|
||||
#ifdef EXV_USE_CURL
|
||||
/*!
|
||||
@brief The callback function is called by libcurl to write the data
|
||||
*/
|
||||
EXIV2API size_t curlWriter(char *data, size_t size, size_t nmemb, std::string *writerData);
|
||||
EXIV2API size_t curlWriter(char* data, size_t size, size_t nmemb, std::string* writerData);
|
||||
#endif
|
||||
} // namespace Exiv2
|
||||
#endif // #ifndef BASICIO_HPP_
|
||||
|
||||
@ -29,9 +29,9 @@ class EXIV2API BmpImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
BmpImage(const BmpImage& rhs) = delete;
|
||||
BmpImage(const BmpImage&) = delete;
|
||||
//! Assignment operator
|
||||
BmpImage& operator=(const BmpImage& rhs) = delete;
|
||||
BmpImage& operator=(const BmpImage&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Creators
|
||||
|
||||
@ -74,9 +74,9 @@ class EXIV2API Cr2Image : public Image {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
Cr2Image(const Cr2Image& rhs) = delete;
|
||||
Cr2Image(const Cr2Image&) = delete;
|
||||
//! Assignment operator
|
||||
Cr2Image& operator=(const Cr2Image& rhs) = delete;
|
||||
Cr2Image& operator=(const Cr2Image&) = delete;
|
||||
//@}
|
||||
|
||||
}; // class Cr2Image
|
||||
|
||||
@ -76,9 +76,9 @@ class EXIV2API CrwImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
CrwImage(const CrwImage& rhs) = delete;
|
||||
CrwImage(const CrwImage&) = delete;
|
||||
//! Assignment operator
|
||||
CrwImage& operator=(const CrwImage& rhs) = delete;
|
||||
CrwImage& operator=(const CrwImage&) = delete;
|
||||
//@}
|
||||
|
||||
}; // class CrwImage
|
||||
|
||||
@ -132,12 +132,10 @@ class EXIV2API IptcDataSets {
|
||||
static constexpr uint16_t Preview = 202;
|
||||
//@}
|
||||
|
||||
//! Prevent construction: not implemented.
|
||||
IptcDataSets() = delete;
|
||||
//! Prevent copy-construction: not implemented.
|
||||
IptcDataSets(const IptcDataSets& rhs) = delete;
|
||||
IptcDataSets(const IptcDataSets&) = delete;
|
||||
//! Prevent assignment: not implemented.
|
||||
IptcDataSets& operator=(const IptcDataSets& rhs) = delete;
|
||||
IptcDataSets& operator=(const IptcDataSets&) = delete;
|
||||
|
||||
/*!
|
||||
@brief Return the name of the dataset.
|
||||
@ -265,7 +263,7 @@ class EXIV2API IptcKey : public Key {
|
||||
IptcKey(uint16_t tag, uint16_t record);
|
||||
//! Copy constructor
|
||||
IptcKey(const IptcKey& rhs);
|
||||
IptcKey& operator=(const IptcKey& rhs) = delete;
|
||||
IptcKey& operator=(const IptcKey&) = delete;
|
||||
//! Destructor
|
||||
~IptcKey() override = default;
|
||||
//@}
|
||||
|
||||
@ -76,9 +76,9 @@ class EXIV2API EpsImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
EpsImage(const EpsImage& rhs) = delete;
|
||||
EpsImage(const EpsImage&) = delete;
|
||||
//! Assignment operator
|
||||
EpsImage& operator=(const EpsImage& rhs) = delete;
|
||||
EpsImage& operator=(const EpsImage&) = delete;
|
||||
//@}
|
||||
|
||||
}; // class EpsImage
|
||||
|
||||
@ -24,9 +24,9 @@ class EXIV2API GifImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
GifImage(const GifImage& rhs) = delete;
|
||||
GifImage(const GifImage&) = delete;
|
||||
//! Assignment operator
|
||||
GifImage& operator=(const GifImage& rhs) = delete;
|
||||
GifImage& operator=(const GifImage&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Creators
|
||||
|
||||
@ -453,9 +453,9 @@ class EXIV2API Image {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
Image(const Image& rhs) = delete;
|
||||
Image(const Image&) = delete;
|
||||
//! Assignment operator
|
||||
Image& operator=(const Image& rhs) = delete;
|
||||
Image& operator=(const Image&) = delete;
|
||||
//@}
|
||||
|
||||
protected:
|
||||
@ -656,10 +656,9 @@ class EXIV2API ImageFactory {
|
||||
|
||||
//! @name Creators
|
||||
//@{
|
||||
//! Prevent construction: not implemented.
|
||||
ImageFactory() = delete;
|
||||
//! Prevent copy construction: not implemented.
|
||||
ImageFactory(const ImageFactory& rhs) = delete;
|
||||
ImageFactory(const ImageFactory&) = delete;
|
||||
ImageFactory& operator=(const ImageFactory&) = delete;
|
||||
//@}
|
||||
|
||||
}; // class ImageFactory
|
||||
|
||||
@ -50,7 +50,7 @@ class EXIV2API Jp2Image : public Image {
|
||||
not valid (does not look like data of the specific image type).
|
||||
@warning This function is not thread safe and intended for exiv2 -pS for debugging.
|
||||
*/
|
||||
void printStructure(std::ostream &out, PrintStructureOption option, int depth) override;
|
||||
void printStructure(std::ostream& out, PrintStructureOption option, int depth) override;
|
||||
|
||||
/*!
|
||||
@brief Todo: Not supported yet(?). Calling this function will throw
|
||||
@ -67,9 +67,9 @@ class EXIV2API Jp2Image : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
Jp2Image(const Jp2Image &rhs) = delete;
|
||||
Jp2Image(const Jp2Image&) = delete;
|
||||
//! Assignment operator
|
||||
Jp2Image &operator=(const Jp2Image &rhs) = delete;
|
||||
Jp2Image& operator=(const Jp2Image&) = delete;
|
||||
|
||||
private:
|
||||
/*!
|
||||
@ -79,14 +79,14 @@ class EXIV2API Jp2Image : public Image {
|
||||
|
||||
@return 4 if opening or writing to the associated BasicIo fails
|
||||
*/
|
||||
void doWriteMetadata(BasicIo &outIo);
|
||||
void doWriteMetadata(BasicIo& outIo);
|
||||
|
||||
/*!
|
||||
@brief reformats the Jp2Header to store iccProfile
|
||||
@param oldData DataBufRef to data in the file.
|
||||
@param newData DataBufRef with updated data
|
||||
*/
|
||||
void encodeJp2Header(const DataBuf &boxBuf, DataBuf &outBuf);
|
||||
void encodeJp2Header(const DataBuf& boxBuf, DataBuf& outBuf);
|
||||
//@}
|
||||
|
||||
}; // class Jp2Image
|
||||
@ -104,7 +104,7 @@ class EXIV2API Jp2Image : public Image {
|
||||
EXIV2API Image::UniquePtr newJp2Instance(BasicIo::UniquePtr io, bool create);
|
||||
|
||||
//! Check if the file iIo is a JPEG-2000 image.
|
||||
EXIV2API bool isJp2Type(BasicIo &iIo, bool advance);
|
||||
EXIV2API bool isJp2Type(BasicIo& iIo, bool advance);
|
||||
|
||||
} // namespace Exiv2
|
||||
|
||||
|
||||
@ -104,12 +104,10 @@ class EXIV2API JpegBase : public Image {
|
||||
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Default constructor.
|
||||
JpegBase() = delete;
|
||||
//! Copy constructor
|
||||
JpegBase(const JpegBase& rhs) = delete;
|
||||
JpegBase(const JpegBase&) = delete;
|
||||
//! Assignment operator
|
||||
JpegBase& operator=(const JpegBase& rhs) = delete;
|
||||
JpegBase& operator=(const JpegBase&) = delete;
|
||||
//@}
|
||||
|
||||
protected:
|
||||
@ -286,12 +284,10 @@ class EXIV2API JpegImage : public JpegBase {
|
||||
//@}
|
||||
|
||||
// NOT Implemented
|
||||
//! Default constructor
|
||||
JpegImage() = delete;
|
||||
//! Copy constructor
|
||||
JpegImage(const JpegImage& rhs) = delete;
|
||||
JpegImage(const JpegImage&) = delete;
|
||||
//! Assignment operator
|
||||
JpegImage& operator=(const JpegImage& rhs) = delete;
|
||||
JpegImage& operator=(const JpegImage&) = delete;
|
||||
|
||||
protected:
|
||||
//! @name Accessors
|
||||
@ -347,12 +343,10 @@ class EXIV2API ExvImage : public JpegBase {
|
||||
//@}
|
||||
|
||||
// NOT Implemented
|
||||
//! Default constructor
|
||||
ExvImage() = delete;
|
||||
//! Copy constructor
|
||||
ExvImage(const ExvImage& rhs) = delete;
|
||||
ExvImage(const ExvImage&) = delete;
|
||||
//! Assignment operator
|
||||
ExvImage& operator=(const ExvImage& rhs) = delete;
|
||||
ExvImage& operator=(const ExvImage&) = delete;
|
||||
|
||||
protected:
|
||||
//! @name Accessors
|
||||
|
||||
@ -77,7 +77,7 @@ class EXIV2API Key {
|
||||
@brief Assignment operator. Protected so that it can only be used
|
||||
by subclasses but not directly.
|
||||
*/
|
||||
Key& operator=(const Key& rhs) = default;
|
||||
Key& operator=(const Key&) = default;
|
||||
//@}
|
||||
|
||||
private:
|
||||
@ -102,7 +102,7 @@ class EXIV2API Metadatum {
|
||||
//! Default Constructor
|
||||
Metadatum() = default;
|
||||
//! Copy constructor
|
||||
Metadatum(const Metadatum& rhs) = default;
|
||||
Metadatum(const Metadatum&) = default;
|
||||
//! Destructor
|
||||
virtual ~Metadatum() = default;
|
||||
//@}
|
||||
@ -259,7 +259,7 @@ class EXIV2API Metadatum {
|
||||
@brief Assignment operator. Protected so that it can only be used
|
||||
by subclasses but not directly.
|
||||
*/
|
||||
Metadatum& operator=(const Metadatum& rhs) = default;
|
||||
Metadatum& operator=(const Metadatum&) = default;
|
||||
//@}
|
||||
|
||||
}; // class Metadatum
|
||||
|
||||
@ -24,9 +24,9 @@ class EXIV2API MrwImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
MrwImage(const MrwImage& rhs) = delete;
|
||||
MrwImage(const MrwImage&) = delete;
|
||||
//! Assignment operator
|
||||
MrwImage& operator=(const MrwImage& rhs) = delete;
|
||||
MrwImage& operator=(const MrwImage&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Creators
|
||||
|
||||
@ -24,9 +24,9 @@ class EXIV2API OrfImage : public TiffImage {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
OrfImage(const OrfImage& rhs) = delete;
|
||||
OrfImage(const OrfImage&) = delete;
|
||||
//! Assignment operator
|
||||
OrfImage& operator=(const OrfImage& rhs) = delete;
|
||||
OrfImage& operator=(const OrfImage&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Creators
|
||||
|
||||
@ -57,9 +57,9 @@ class EXIV2API PgfImage : public Image {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
PgfImage(const PgfImage& rhs) = delete;
|
||||
PgfImage(const PgfImage&) = delete;
|
||||
//! Assignment operator
|
||||
PgfImage& operator=(const PgfImage& rhs) = delete;
|
||||
PgfImage& operator=(const PgfImage&) = delete;
|
||||
|
||||
private:
|
||||
bool bSwap_; // true for bigEndian hardware, else false
|
||||
|
||||
@ -63,9 +63,9 @@ class EXIV2API PngImage : public Image {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
PngImage(const PngImage& rhs) = delete;
|
||||
PngImage(const PngImage&) = delete;
|
||||
//! Assignment operator
|
||||
PngImage& operator=(const PngImage& rhs) = delete;
|
||||
PngImage& operator=(const PngImage&) = delete;
|
||||
|
||||
private:
|
||||
/*!
|
||||
|
||||
@ -71,12 +71,10 @@ class EXIV2API XmpProperties {
|
||||
static const XmpNsInfo* lookupNsRegistryUnsafe(const XmpNsInfo::Prefix& prefix);
|
||||
|
||||
public:
|
||||
//! Prevent construction: not implemented.
|
||||
XmpProperties() = delete;
|
||||
//! Prevent copy-construction: not implemented.
|
||||
XmpProperties(const XmpProperties&) = delete;
|
||||
//! Prevent assignment: not implemented.
|
||||
XmpProperties& operator=(const XmpProperties& rhs) = delete;
|
||||
XmpProperties& operator=(const XmpProperties&) = delete;
|
||||
|
||||
/*!
|
||||
@brief Return the title (label) of the property.
|
||||
|
||||
@ -23,9 +23,9 @@ class EXIV2API PsdImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
PsdImage(const PsdImage& rhs) = delete;
|
||||
PsdImage(const PsdImage&) = delete;
|
||||
//! Assignment operator
|
||||
PsdImage& operator=(const PsdImage& rhs) = delete;
|
||||
PsdImage& operator=(const PsdImage&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Creators
|
||||
|
||||
@ -77,9 +77,9 @@ class EXIV2API RafImage : public Image {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
RafImage(const RafImage& rhs) = delete;
|
||||
RafImage(const RafImage&) = delete;
|
||||
//! Assignment operator
|
||||
RafImage& operator=(const RafImage& rhs) = delete;
|
||||
RafImage& operator=(const RafImage&) = delete;
|
||||
//@}
|
||||
|
||||
}; // class RafImage
|
||||
|
||||
@ -75,9 +75,9 @@ class EXIV2API Rw2Image : public Image {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
Rw2Image(const Rw2Image& rhs) = delete;
|
||||
Rw2Image(const Rw2Image&) = delete;
|
||||
//! Assignment operator
|
||||
Rw2Image& operator=(const Rw2Image& rhs) = delete;
|
||||
Rw2Image& operator=(const Rw2Image&) = delete;
|
||||
//@}
|
||||
|
||||
}; // class Rw2Image
|
||||
|
||||
@ -63,12 +63,10 @@ struct EXIV2API TagInfo {
|
||||
//! Access to Exif group and tag lists and misc. tag reference methods, implemented as a static class.
|
||||
class EXIV2API ExifTags {
|
||||
public:
|
||||
//! Prevent construction: not implemented.
|
||||
ExifTags() = delete;
|
||||
//! Prevent copy-construction: not implemented.
|
||||
ExifTags(const ExifTags& rhs) = delete;
|
||||
ExifTags(const ExifTags&) = delete;
|
||||
//! Prevent assignment: not implemented.
|
||||
ExifTags& operator=(const ExifTags& rhs) = delete;
|
||||
ExifTags& operator=(const ExifTags&) = delete;
|
||||
|
||||
//! Return read-only list of built-in groups
|
||||
static const GroupInfo* groupList();
|
||||
|
||||
@ -23,9 +23,9 @@ class EXIV2API TgaImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
TgaImage(const TgaImage& rhs) = delete;
|
||||
TgaImage(const TgaImage&) = delete;
|
||||
//! Assignment operator
|
||||
TgaImage& operator=(const TgaImage& rhs) = delete;
|
||||
TgaImage& operator=(const TgaImage&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Creators
|
||||
|
||||
@ -71,9 +71,9 @@ class EXIV2API TiffImage : public Image {
|
||||
//! @name NOT Implemented
|
||||
//@{
|
||||
//! Copy constructor
|
||||
TiffImage(const TiffImage& rhs) = delete;
|
||||
TiffImage(const TiffImage&) = delete;
|
||||
//! Assignment operator
|
||||
TiffImage& operator=(const TiffImage& rhs) = delete;
|
||||
TiffImage& operator=(const TiffImage&) = delete;
|
||||
//@}
|
||||
|
||||
private:
|
||||
|
||||
@ -117,12 +117,10 @@ using Blob = std::vector<byte>;
|
||||
//! Type information lookup functions. Implemented as a static class.
|
||||
class EXIV2API TypeInfo {
|
||||
public:
|
||||
//! Prevent construction: not implemented.
|
||||
TypeInfo() = delete;
|
||||
//! Prevent copy-construction: not implemented.
|
||||
TypeInfo(const TypeInfo& rhs) = delete;
|
||||
TypeInfo(const TypeInfo&) = delete;
|
||||
//! Prevent assignment: not implemented.
|
||||
TypeInfo& operator=(const TypeInfo& rhs) = delete;
|
||||
TypeInfo& operator=(const TypeInfo&) = delete;
|
||||
|
||||
//! Return the name of the type, 0 if unknown.
|
||||
static const char* typeName(TypeId typeId);
|
||||
|
||||
@ -225,7 +225,7 @@ class EXIV2API Value {
|
||||
@brief Assignment operator. Protected so that it can only be used
|
||||
by subclasses but not directly.
|
||||
*/
|
||||
Value& operator=(const Value& rhs) = default;
|
||||
Value& operator=(const Value&) = default;
|
||||
// DATA
|
||||
mutable bool ok_; //!< Indicates the status of the previous to<Type> conversion
|
||||
|
||||
@ -323,7 +323,7 @@ class EXIV2API StringValueBase : public Value {
|
||||
//! Constructor for subclasses
|
||||
StringValueBase(TypeId typeId, const std::string& buf);
|
||||
//! Copy constructor
|
||||
StringValueBase(const StringValueBase& rhs) = default;
|
||||
StringValueBase(const StringValueBase&) = default;
|
||||
//! Virtual destructor.
|
||||
~StringValueBase() override = default;
|
||||
//@}
|
||||
@ -365,7 +365,7 @@ class EXIV2API StringValueBase : public Value {
|
||||
|
||||
protected:
|
||||
//! Assignment operator.
|
||||
StringValueBase& operator=(const StringValueBase& rhs);
|
||||
StringValueBase& operator=(const StringValueBase&);
|
||||
//! Internal virtual copy constructor.
|
||||
StringValueBase* clone_() const override = 0;
|
||||
|
||||
@ -485,8 +485,6 @@ class EXIV2API CommentValue : public StringValueBase {
|
||||
//! Charset information lookup functions. Implemented as a static class.
|
||||
class EXIV2API CharsetInfo {
|
||||
public:
|
||||
//! Prevent construction: not implemented.
|
||||
CharsetInfo() = delete;
|
||||
//! Prevent copy-construction: not implemented.
|
||||
CharsetInfo(const CharsetInfo&) = delete;
|
||||
//! Prevent assignment: not implemented.
|
||||
|
||||
@ -55,9 +55,9 @@ class EXIV2API WebPImage : public Image {
|
||||
//@}
|
||||
|
||||
//! Copy constructor
|
||||
WebPImage(const WebPImage& rhs) = delete;
|
||||
WebPImage(const WebPImage&) = delete;
|
||||
//! Assignment operator
|
||||
WebPImage& operator=(const WebPImage& rhs) = delete;
|
||||
WebPImage& operator=(const WebPImage&) = delete;
|
||||
//@}
|
||||
|
||||
private:
|
||||
|
||||
@ -112,9 +112,9 @@ class FileIo::Impl {
|
||||
//! stat wrapper for internal use
|
||||
int stat(StructStat& buf) const;
|
||||
// NOT IMPLEMENTED
|
||||
Impl(const Impl& rhs) = delete; //!< Copy constructor
|
||||
Impl& operator=(const Impl& rhs) = delete; //!< Assignment
|
||||
}; // class FileIo::Impl
|
||||
Impl(const Impl&) = delete; //!< Copy constructor
|
||||
Impl& operator=(const Impl&) = delete; //!< Assignment
|
||||
};
|
||||
|
||||
FileIo::Impl::Impl(std::string path) : path_(std::move(path)) {
|
||||
}
|
||||
@ -570,9 +570,9 @@ class MemIo::Impl final {
|
||||
void reserve(size_t wcount); //!< Reserve memory
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
Impl(const Impl& rhs) = delete; //!< Copy constructor
|
||||
Impl& operator=(const Impl& rhs) = delete; //!< Assignment
|
||||
}; // class MemIo::Impl
|
||||
Impl(const Impl&) = delete; //!< Copy constructor
|
||||
Impl& operator=(const Impl&) = delete; //!< Assignment
|
||||
};
|
||||
|
||||
MemIo::Impl::Impl(const byte* data, size_t size) : data_(const_cast<byte*>(data)), size_(size) {
|
||||
}
|
||||
@ -1414,9 +1414,9 @@ class HttpIo::HttpImpl : public Impl {
|
||||
void writeRemote(const byte* data, size_t size, size_t from, size_t to) override;
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
HttpImpl(const HttpImpl& rhs) = delete; //!< Copy constructor
|
||||
HttpImpl& operator=(const HttpImpl& rhs) = delete; //!< Assignment
|
||||
}; // class HttpIo::HttpImpl
|
||||
HttpImpl(const HttpImpl&) = delete; //!< Copy constructor
|
||||
HttpImpl& operator=(const HttpImpl&) = delete; //!< Assignment
|
||||
};
|
||||
|
||||
HttpIo::HttpImpl::HttpImpl(const std::string& url, size_t blockSize) : Impl(url, blockSize) {
|
||||
hostInfo_ = Exiv2::Uri::Parse(url);
|
||||
@ -1564,8 +1564,8 @@ class CurlIo::CurlImpl : public Impl {
|
||||
void writeRemote(const byte* data, size_t size, size_t from, size_t to) override;
|
||||
|
||||
// NOT IMPLEMENTED
|
||||
CurlImpl(const CurlImpl& rhs) = delete; //!< Copy constructor
|
||||
CurlImpl& operator=(const CurlImpl& rhs) = delete; //!< Assignment
|
||||
CurlImpl(const CurlImpl&) = delete; //!< Copy constructor
|
||||
CurlImpl& operator=(const CurlImpl&) = delete; //!< Assignment
|
||||
private:
|
||||
long timeout_; //!< The number of seconds to wait while trying to connect.
|
||||
}; // class RemoteIo::Impl
|
||||
|
||||
@ -531,8 +531,8 @@ class CrwMap {
|
||||
public:
|
||||
//! @name Not implemented
|
||||
//@{
|
||||
//! Default constructor
|
||||
CrwMap() = delete;
|
||||
CrwMap(const CrwMap&) = delete;
|
||||
CrwMap& operator=(const CrwMap&) = delete;
|
||||
//@}
|
||||
|
||||
/*!
|
||||
|
||||
@ -396,7 +396,7 @@ class TiffEntryBase : public TiffComponent {
|
||||
//! @name NOT implemented
|
||||
//@{
|
||||
//! Assignment operator.
|
||||
TiffEntryBase& operator=(const TiffEntryBase& rhs) = delete;
|
||||
TiffEntryBase& operator=(const TiffEntryBase&) = delete;
|
||||
//@}
|
||||
|
||||
//! @name Manipulators
|
||||
|
||||
Loading…
Reference in New Issue
Block a user