mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-15 00:07:08 +01:00
Update POCO library.
This commit is contained in:
1 parent
8d15f4b6e9
commit
233fc103f9
2521 files changed
+257092
-72789
No files matched your search
+13
-13
@@ -33,7 +33,7 @@ class ArchiveImpl;
|
||||
|
||||
|
||||
class SevenZip_API Archive
|
||||
/// This class represents a 7-Zip archive.
|
||||
/// This class represents a 7-Zip archive.
|
||||
///
|
||||
/// The Archive class can be used to enumerate entries in a
|
||||
/// 7-Zip archive, and to extract files or directories from
|
||||
@@ -43,42 +43,42 @@ public:
|
||||
typedef std::vector<ArchiveEntry> EntryVec;
|
||||
typedef EntryVec::iterator Iterator;
|
||||
typedef EntryVec::const_iterator ConstIterator;
|
||||
|
||||
|
||||
struct ExtractedEventArgs
|
||||
{
|
||||
ArchiveEntry entry;
|
||||
std::string extractedPath;
|
||||
};
|
||||
|
||||
|
||||
struct FailedEventArgs
|
||||
{
|
||||
ArchiveEntry entry;
|
||||
Poco::Exception* pException;
|
||||
};
|
||||
|
||||
|
||||
Poco::BasicEvent<const ExtractedEventArgs> extracted;
|
||||
/// Fired when an archive entry has been successfully extracted.
|
||||
|
||||
|
||||
Poco::BasicEvent<const FailedEventArgs> failed;
|
||||
/// Fired when extracting an archive entry failed.
|
||||
|
||||
Archive(const std::string& path);
|
||||
/// Creates an Archive object for the 7-Zip archive
|
||||
/// with the given path.
|
||||
|
||||
/// with the given path.
|
||||
|
||||
~Archive();
|
||||
/// Destroys the Archive.
|
||||
|
||||
|
||||
const std::string& path() const;
|
||||
/// Returns the path of the archive in the filesystem.
|
||||
|
||||
|
||||
std::size_t size() const;
|
||||
/// Returns the number of entries in the archive.
|
||||
|
||||
|
||||
ConstIterator begin() const;
|
||||
/// Returns an iterator for iterating over the
|
||||
/// file or directory entries in the archive.
|
||||
|
||||
|
||||
ConstIterator end() const;
|
||||
/// Returns the end iterator.
|
||||
|
||||
@@ -90,10 +90,10 @@ public:
|
||||
///
|
||||
/// Progress and errors for single entries will be reported
|
||||
/// via the extracted and failed events.
|
||||
|
||||
|
||||
std::string extract(const ArchiveEntry& entry, const std::string& destPath);
|
||||
/// Extracts a specific entry to the given path.
|
||||
///
|
||||
///
|
||||
/// Directories will be created as necessary. File attributes
|
||||
/// will not be restored.
|
||||
///
|
||||
|
||||
+15
-15
@@ -40,7 +40,7 @@ public:
|
||||
ENTRY_FILE = 0, /// The entry represents an ordinary file.
|
||||
ENTRY_DIRECTORY = 1 /// The entry represents a directory.
|
||||
};
|
||||
|
||||
|
||||
enum EntryAttributes
|
||||
{
|
||||
ATTR_READONLY = 0x01, /// The file or directory is read-only.
|
||||
@@ -55,25 +55,25 @@ public:
|
||||
|
||||
ArchiveEntry(const ArchiveEntry& entry);
|
||||
/// Creates an ArchiveEntry by copying another one.
|
||||
|
||||
|
||||
~ArchiveEntry();
|
||||
/// Destroys the ArchiveEntry.
|
||||
|
||||
|
||||
ArchiveEntry& operator = (const ArchiveEntry& entry);
|
||||
/// Assignment operator.
|
||||
|
||||
void swap(ArchiveEntry& entry);
|
||||
|
||||
void swap(ArchiveEntry& entry) noexcept;
|
||||
/// Swaps the entry with another one.
|
||||
|
||||
|
||||
EntryType type() const;
|
||||
/// Returns the type of the entry.
|
||||
|
||||
/// Returns the type of the entry.
|
||||
|
||||
const std::string& path() const;
|
||||
/// Return the UTF-8 encoded path.
|
||||
|
||||
|
||||
Poco::UInt64 size() const;
|
||||
/// Returns the original size of the file.
|
||||
|
||||
|
||||
Poco::Timestamp lastModified() const;
|
||||
/// Returns the date and time of last modification.
|
||||
|
||||
@@ -81,10 +81,10 @@ public:
|
||||
/// Returns the entry attributes as a bitmask.
|
||||
///
|
||||
/// See the EntryAttributes enumeration for valid values.
|
||||
|
||||
|
||||
bool isFile() const;
|
||||
/// Returns true iff the entry represents a file.
|
||||
|
||||
|
||||
bool isDirectory() const;
|
||||
/// Returns true iff the entry represents a directory.
|
||||
|
||||
@@ -102,7 +102,7 @@ private:
|
||||
Poco::Timestamp _lastModified;
|
||||
Poco::UInt32 _attributes;
|
||||
Poco::UInt32 _index;
|
||||
|
||||
|
||||
friend class ArchiveImpl;
|
||||
};
|
||||
|
||||
@@ -121,13 +121,13 @@ inline const std::string& ArchiveEntry::path() const
|
||||
return _path;
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline Poco::UInt64 ArchiveEntry::size() const
|
||||
{
|
||||
return _size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline Poco::Timestamp ArchiveEntry::lastModified() const
|
||||
{
|
||||
return _lastModified;
|
||||
|
||||
Reference in new issue
Block a user