Skip to content

Commit

Permalink
Added better documentation. Refs #9186.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Apr 2, 2014
1 parent a963fb5 commit ff5c4e5
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions Code/Mantid/Framework/ICat/inc/MantidICat/CatalogHelper.h
Expand Up @@ -9,23 +9,44 @@ namespace Mantid
{
namespace ICat
{
/**
CatalogHelper is responsible for ensuring consistencies across ICAT catalogs while reducing duplication.
For example, the save* methods allow column consistencies across catalogs, which is required
for multiple catalogs to work correctly on the GUI.
@author Jay Rainey, ISIS Rutherford Appleton Laboratory
@date 02/04/2014
Copyright © 2013 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
This file is part of Mantid.
Mantid is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Mantid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
File change history is stored at: <https://github.com/mantidproject/mantid>.
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
class CatalogHelper
{
public:

CatalogHelper();

// Helper method that formats a given timestamp.
std::string formatDateTime(const time_t &timestamp, const std::string &format);

// Stores the session details for a specific catalog.
API::CatalogSession_sptr session;

private:
// Convert a file size to human readable file format.
std::string bytesToString(int64_t &fileSize);

public:
// Stores the session details for a specific catalog.
API::CatalogSession_sptr session;

/**
* Casts the container's content types from A to B.
Expand Down

0 comments on commit ff5c4e5

Please sign in to comment.