diff options
author | David Cole <david.cole@kitware.com> | 2008-07-09 17:38:56 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-07-09 17:38:56 (GMT) |
commit | 71f61636b6abfe5f243374b5575019098418b4c6 (patch) | |
tree | d6ca84ec6701ed19ae98b8dfbeb321aafa81495e /Source/CPack/cmCPackComponentGroup.h | |
parent | 3366e6c2cd8bb2d9e30d2deb5637c840d52221a3 (diff) | |
download | CMake-71f61636b6abfe5f243374b5575019098418b4c6.zip CMake-71f61636b6abfe5f243374b5575019098418b4c6.tar.gz CMake-71f61636b6abfe5f243374b5575019098418b4c6.tar.bz2 |
ENH: One more patch from Doug Gregor including PackageMaker functionality for componentized-for-the-end-user and download-some-bit-on-demand installers.
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 |