diff options
Diffstat (limited to 'Source/CPack/cmCPackComponentGroup.h')
-rw-r--r-- | Source/CPack/cmCPackComponentGroup.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackComponentGroup.h b/Source/CPack/cmCPackComponentGroup.h index d080a87..e17b1b7 100644 --- a/Source/CPack/cmCPackComponentGroup.h +++ b/Source/CPack/cmCPackComponentGroup.h @@ -49,7 +49,7 @@ public: class cmCPackComponent { public: - cmCPackComponent() : Group(0) { } + cmCPackComponent() : Group(0), TotalSize(0) { } /// The name of the component (used to reference the component). std::string Name; @@ -95,6 +95,18 @@ public: /// The list of installed directories that are part of this component. std::vector<std::string> Directories; + + /// Get the total installed size of all of the files in this + /// component, in bytes. installDir is the directory into which the + /// component was installed. + unsigned long GetInstalledSize(const char* installDir) const; + + /// Identical to GetInstalledSize, but returns the result in + /// kilobytes. + unsigned long GetInstalledSizeInKbytes(const char* installDir) const; + + private: + mutable unsigned long TotalSize; }; /** \class cmCPackComponentGroup |