Commit c057fb1bfca01603c1af7bbaecb1325071c97324

Authored by Hacene SI HADJ MOHAND
2 parents a3eb6f22 fdc384b2

Merge branch 'master' into rm_6616

src/ParamOutputImpl/Download/FileWriterASCIIAbstract.cc
... ... @@ -108,6 +108,7 @@ bool FileWriterASCIIAbstract::addParameter(ParamProperties* paramProp, AMDA::Com
108 108 //init field working structure
109 109 _fieldInfoMap[paramProp->getOutputId()].name = paramInfo->getName();
110 110 _fieldInfoMap[paramProp->getOutputId()].ucd = paramInfo->getUcd();
  111 + _fieldInfoMap[paramProp->getOutputId()].unit = paramInfo->getUnits();
111 112 _fieldInfoMap[paramProp->getOutputId()].type = type;
112 113 _fieldInfoMap[paramProp->getOutputId()].dimSize1 = dim1Size;
113 114 _fieldInfoMap[paramProp->getOutputId()].dimSize2 = dim2Size;
... ...
src/ParamOutputImpl/Download/FileWriterASCIIAbstract.hh
... ... @@ -40,6 +40,7 @@ public:
40 40 {
41 41 std::string name;
42 42 std::string ucd;
  43 + std::string unit;
43 44 FileDataType type;
44 45 int dimSize1;
45 46 int dimSize2;
... ...
src/ParamOutputImpl/Download/FileWriterASCIIVOTable.cc
... ... @@ -140,7 +140,8 @@ void FileWriterASCIIVOTable::writeFieldDescription(std::string paramId)
140 140 _outputFile << " <FIELD name=\"";
141 141 _outputFile << _fieldInfoMap[paramId].name << "\" ID=\"";
142 142 _outputFile << paramId << "\" ucd=\"";
143   - _outputFile << _fieldInfoMap[paramId].ucd << "\" datatype=\"";
  143 + _outputFile << _fieldInfoMap[paramId].ucd << "\" unit=\"";
  144 + _outputFile << _fieldInfoMap[paramId].unit << "\" datatype=\"";
144 145  
145 146 switch (_fieldInfoMap[paramId].type)
146 147 {
... ...