source: trunk/src/Outputs/CatalogueWriter.cc @ 1050

Last change on this file since 1050 was 1050, checked in by MatthewWhiting, 12 years ago

Adding a method to write the stats information to the VOTable. Also tidying up a bit, improving the labelling of parameters and the documentation.

File size: 1.5 KB
Line 
1#include <duchamp/Outputs/CatalogueWriter.hh>
2
3namespace duchamp {
4
5  CatalogueWriter::CatalogueWriter()
6  {
7    itsName="";
8    itsOpenFlag=false;
9    this->itsParam=0;
10    this->itsStats=0;
11    this->itsHead=0;
12    this->itsObjectList=0;
13    this->itsCubeDim=0;
14  }
15
16  CatalogueWriter::CatalogueWriter(std::string name):
17    itsName(name)
18  {
19    itsOpenFlag=false;
20    this->itsParam=0;
21    this->itsStats=0;
22    this->itsHead=0;
23    this->itsObjectList=0;
24    this->itsCubeDim=0;
25  }
26 
27  CatalogueWriter::CatalogueWriter(const CatalogueWriter& other)
28  {
29    this->operator=(other);
30  }
31
32  CatalogueWriter& CatalogueWriter::operator= (const CatalogueWriter& other)
33  {
34    if(this == &other) return *this;
35    this->itsName = other.itsName;
36    this->itsOpenFlag = other.itsOpenFlag;
37    this->itsColumnSpecification = other.itsColumnSpecification;
38    this->itsParam=other.itsParam;
39    this->itsStats=other.itsStats;
40    this->itsHead=other.itsHead;
41    this->itsObjectList=other.itsObjectList;
42    this->itsCubeDim=other.itsCubeDim;
43    return *this;
44  }
45
46  void CatalogueWriter::setup(Cube *cube)
47  {
48    /// @details Defines the various pointer members to point to the
49    /// relevant information from the cube in question.
50    this->itsParam = &(cube->pars());
51    this->itsStats = &(cube->stats());
52    this->itsHead = &(cube->header());
53    this->itsObjectList = cube->pObjectList();
54    this->itsColumnSpecification = cube->pFullCols();
55    this->itsCubeDim = cube->getDimArray();
56  }
57
58
59}
Note: See TracBrowser for help on using the repository browser.