Skip to content

Commit

Permalink
Added description field to datafile table. Refs #8742.
Browse files Browse the repository at this point in the history
- Although some datafiles do not have a description, once users begin to publish datafiles it will be a lot easier to differentiate between datafiles (if there are many) based on the description.
  • Loading branch information
jawrainey committed Jan 23, 2014
1 parent 8309477 commit 148d782
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp
Expand Up @@ -548,6 +548,7 @@ namespace Mantid
outputws->addColumn("long64","Id");
outputws->addColumn("long64","File size(bytes)");
outputws->addColumn("str","File size");
outputws->addColumn("str","Description");

std::vector<xsd__anyType*>::const_iterator iter;
for(iter = response.begin(); iter != response.end(); ++iter)
Expand All @@ -570,6 +571,8 @@ namespace Mantid

std::string fileSize = bytesToString(*datafile->fileSize);
savetoTableWorkspace(&fileSize, table);

if (datafile->description) savetoTableWorkspace(datafile->description, table);
}
catch(std::runtime_error&)
{
Expand Down

0 comments on commit 148d782

Please sign in to comment.